Hello, I’m trying to use wandb in a project I’m running on a server via SSH. I created and configured the virtual environment, but with wandb, I’m encountering the error ‘module ‘wandb’ has no attribute ‘apis’’. The server is running Python 3.6.8 and has wandb-0.15.12 installed. However, when I use ‘wandb login’ or any other wandb command, it throws the error. Could anyone help me resolve this issue?
Traceback (most recent call last):
File "/home/tcouto/mestrado_andrey/psla/venv-psla/bin/wandb", line 5, in <module>
from wandb.cli.cli import cli
File "/home/tcouto/mestrado_andrey/psla/venv-psla/lib64/python3.6/site-packages/wandb/__init__.py", line 27, in <module>
from wandb import sdk as wandb_sdk
File "/home/tcouto/mestrado_andrey/psla/venv-psla/lib64/python3.6/site-packages/wandb/sdk/__init__.py", line 4, in <module>
from .artifacts.artifact import Artifact # noqa: F401
File "/home/tcouto/mestrado_andrey/psla/venv-psla/lib64/python3.6/site-packages/wandb/sdk/artifacts/artifact.py", line 36, in <module>
from wandb.apis.normalize import normalize_exceptions
File "/home/tcouto/mestrado_andrey/psla/venv-psla/lib64/python3.6/site-packages/wandb/apis/__init__.py", line 44, in <module>
from .public import Api as PublicApi # noqa
File "/home/tcouto/mestrado_andrey/psla/venv-psla/lib64/python3.6/site-packages/wandb/apis/public.py", line 51, in <module>
from wandb.sdk.launch.errors import LaunchError
File "/home/tcouto/mestrado_andrey/psla/venv-psla/lib64/python3.6/site-packages/wandb/sdk/launch/__init__.py", line 1, in <module>
from ._launch import launch
File "/home/tcouto/mestrado_andrey/psla/venv-psla/lib64/python3.6/site-packages/wandb/sdk/launch/_launch.py", line 12, in <module>
from .agent import LaunchAgent
File "/home/tcouto/mestrado_andrey/psla/venv-psla/lib64/python3.6/site-packages/wandb/sdk/launch/agent/__init__.py", line 1, in <module>
from .agent import LaunchAgent
File "/home/tcouto/mestrado_andrey/psla/venv-psla/lib64/python3.6/site-packages/wandb/sdk/launch/agent/agent.py", line 15, in <module>
from wandb.sdk.launch._launch_add import launch_add
File "/home/tcouto/mestrado_andrey/psla/venv-psla/lib64/python3.6/site-packages/wandb/sdk/launch/_launch_add.py", line 5, in <module>
import wandb.apis.public as public
AttributeError: module 'wandb' has no attribute 'apis'
Thank you for reaching out to support. I’ll be gladly assist you with this. Can you confirm the following points to ensure that everything is properly set up:
Hello, I found that this happens due to some library dependency that ‘wandb’ has. I have a file that installs several libraries, and in the end, ‘wandb’ works without this error. I’m not sure which library it is, but this is the solution
Hi @alenakim@andreysr@u6766669@baj321, there appears to be some incompatibility issues with certain packages that use older versions of python. Note wandb will no longer support python 3.6 as of sdk release 0.16.0 releasing soon.
currently prior to wandb<0.16.0, we support the use of python version 3.6
with the release of wandb==0.16.0 we won’t support python version 3.6
if you use python 3.6 in your code, you should either update your python (if you can and want) or continue using a version before wandb==0.16.0
We recommend upgrading your python version and seeing if this addresses the import errors you are seeing.
Thank you for informing that it helps solved your concern. I’ll proceed in closing this ticket but please don’t hesitate to reach back out anytime you need more assistance.