Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impossible to use wandb. #376

Open
Vaillus opened this issue Sep 24, 2022 · 1 comment
Open

impossible to use wandb. #376

Vaillus opened this issue Sep 24, 2022 · 1 comment
Labels

Comments

@Vaillus
Copy link

Vaillus commented Sep 24, 2022

Hello, I'm not good enough to understand if the bug is on godot-python or wandb, but I wanted to let a note here just in case someone encounter the same problem as me.

When trying to call wandb.init(), an error occurs, saying something like IsADirectoryError: [Errno 21] Is a directory: <your-project-dir>

I finally found the solution to this problem. Before calling wandb.init(), make sure to set the variable sys.executable to the python executable in your plugin.
For example, for me on Ubuntu, it was : sys.executable = "addons/pythonscript/x11-64/bin/python3.8"

It was enough to make wandb work !

@touilleMan
Copy link
Owner

thanks @Vaillus for this report !

I'll make sure to configure sys.executable in the init of interpreter then ;-)

@touilleMan touilleMan added the bug label Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants