Weave crashes when calling autolog()

I am trying to use Weave with my openai assistant application. I have installed the library and called autolog as the docs describe but it crashes inside the wandb library. This is very consistent and I am guessing is a compatibility issue with something I am using. I am using python 3.11.7 . My pip packages are listed after the stack dump.

File “/Users/user_name/.pyenv/versions/tools_api_poc/lib/python3.11/site-packages/wandb/sdk/integration_utils/auto_logging.py”, line 184, in call
self.enable(init=init)
File “/Users/user_name/.pyenv/versions/tools_api_poc/lib/python3.11/site-packages/wandb/sdk/integration_utils/auto_logging.py”, line 221, in enable
self._patch_api.patch(self._run)
File “/Users/user_name/.pyenv/versions/tools_api_poc/lib/python3.11/site-packages/wandb/sdk/integration_utils/auto_logging.py”, line 139, in patch
method_factory(original),
^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/user_name/.pyenv/versions/tools_api_poc/lib/python3.11/site-packages/wandb/sdk/integration_utils/auto_logging.py”, line 128, in method_factory
return functools.wraps(original_method)(sync_method)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/user_name/.pyenv/versions/3.11.7/lib/python3.11/functools.py”, line 56, in update_wrapper
setattr(wrapper, attr, value)
TypeError: name must be set to a string object

annotated-types==0.6.0
anyio==4.3.0
appdirs==1.4.4
beautifulsoup4==4.12.3
black==24.4.1
cachetools==5.3.3
certifi==2024.2.2
cfgv==3.4.0
charset-normalizer==3.3.2
click==8.1.7
colorama==0.4.6
DateTime==5.5
distlib==0.3.8
distro==1.9.0
docker-pycreds==0.4.0
filelock==3.13.4
gitdb==4.0.11
GitPython==3.1.43
google-ai-generativelanguage==0.6.2
google-api-core==2.18.0
google-api-python-client==2.127.0
google-auth==2.29.0
google-auth-httplib2==0.2.0
google-generativeai==0.5.2
googleapis-common-protos==1.63.0
grpcio==1.62.2
grpcio-status==1.62.2
h11==0.14.0
httpcore==1.0.5
httplib2==0.22.0
httpx==0.27.0
identify==2.5.36
idna==3.7
mypy-extensions==1.0.0
nodeenv==1.8.0
numpy==1.26.4
openai==1.23.6
OpenVulnQuery==1.34
packaging==24.0
pathspec==0.12.1
platformdirs==4.2.1
polars==0.20.23
pre-commit==3.7.0
proto-plus==1.23.0
protobuf==4.25.3
psutil==5.9.8
pyasn1==0.6.0
pyasn1_modules==0.4.0
pydantic==2.7.1
pydantic_core==2.18.2
pyparsing==3.1.2
python-dotenv==1.0.1
pytz==2024.1
PyYAML==6.0.1
requests==2.31.0
rsa==4.9
sentry-sdk==2.0.1
setproctitle==1.3.3
six==1.16.0
smmap==5.0.1
sniffio==1.3.1
soupsieve==2.5
tenacity==8.2.3
tqdm==4.66.2
typing==3.7.4.3
typing_extensions==4.11.0
uritemplate==4.1.1
urllib3==2.2.1
virtualenv==20.26.0
wandb==0.16.6
xmltodict==0.13.0
zope.interface==6.3

This script reproduces the error 100% of the time for me:

from wandb.integration.openai import autolog
autolog({"project": "papy"})

It looks like in the (wandb library) code file auto_logging.py there is a function called patch() that wraps api calls to log them. However when I print the type and value of the variable named original which is passed into method_factory and later crashes with no name property found, is of type openai.lib._old_api.APIRemovedInV1Proxy. I am not 100% sure why this is happening but it looks like maybe this version of openai library does not work with wandb’s Weave autolog() feature?