xstudio
xstudio copied to clipboard
python api setup fails
When I launch xStudio I get these errors:
2023-07-25 20:08:57.743] [xstudio] [info] API enabled on 127.0.0.1:45500, session name default0
[2023-07-25 20:08:57.745] [xstudio] [warning] void xstudio::embedded_python::EmbeddedPython::setup() Failed to setup API : ModuleNotFoundError: No module named 'xstudio'
At:
<string>(3): <module>
[2023-07-25 20:08:57.745] [xstudio] [warning] void xstudio::embedded_python::EmbeddedPython::setup() Failed to setup API : ModuleNotFoundError: No module named 'xstudio'
At:
<string>(3): <module>
[2023-07-25 20:08:57.745] [xstudio] [warning] bool xstudio::embedded_python::EmbeddedPython::connect(int) Failed to init API : NameError: name 'Connection' is not defined
At:
<string>(3): <module>
[2023-07-25 20:08:57.746] [xstudio] [warning] Connected failed false
Make sure you've set the PYTHONPATH in the shell you're launching from, to include the build dir with the python module in, it should be there in the build docs. The only thing to watchout for is the python3.10, part might be differerent.
export QV4_FORCE_INTERPRETER=1
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
export PYTHONPATH=./bin/python/lib/python3.10/site-packages:/home/xstudio/.local/lib/python3.10/site-packages:
./bin/xstudio.bin