'Wandb login permission denied python virtual environment

I am using a remote Slurm cluster from my university and want to get access to my wandb profile. I run my py project in a virtual env with python 3.7.4, where I could install successfully wandb.

However, when I try to login from command line python -m wandb login I get this error

(374_env1) [userX@peregrine ~]$ python -m wandb login
Traceback (most recent call last):
File "/software/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/software/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/data/userX/.envs/374_env1/lib/python3.7/site-packages/wandb/__main__.py", line 1, in <module>
from wandb.cli import cli
File "/data/userX/.envs/374_env1/lib/python3.7/site-packages/wandb/cli/cli.py", line 53, in <module>
datefmt="%Y-%m-%d %H:%M:%S",
File "/software/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/logging/__init__.py", line 1895, in basicConfig
h = FileHandler(filename, mode)
File "/software/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/logging/__init__.py", line 1087, in __init__
StreamHandler.__init__(self, self._open())
File "/software/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/logging/__init__.py", line 1116, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/local/tmp/debug-cli.log'

I tried also to login outside of the venv but still permission denied. Is it because as a user from the cluster I don't have enough -m permissions? I also tried python -u wandb login but still permission denied. ps. I don't have sudo permission. Any insights?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source