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"
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 likeIsADirectoryError: [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 variablesys.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 !