touilleMan / godot-python

Python support for Godot 🐍🐍🐍
Other
1.91k stars 142 forks source link

impossible to use wandb. #376

Open Vaillus opened 2 years ago

Vaillus commented 2 years ago

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 commented 2 years ago

thanks @Vaillus for this report !

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