AcademySoftwareFoundation / AcademySoftwareFoundation/xstudio

xstudio python module not found, python console does not work.

Open
#113 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
769
Forks
129
Avg merge
9d 1m
Merged PRs (30d)
10

Description

Hi, I could sucessfully build xstudio on windows.

Now if I start xstudio.exe, I get these warnings:
```
[2024-08-31 14:42:51.709] [xstudio] [info] XStudio logging started.
[2024-08-31 14:42:52.069] [xstudio] [warning] void __cdecl xstudio::embedded_python::EmbeddedPython::setup(void) Failed to setup API : ModuleNotFoundError: No module named 'xstudio'
At:
(3):
[2024-08-31 14:42:52.071] [xstudio] [info] API enabled on 127.0.0.1:45500, session name default0
[2024-08-31 14:42:52.072] [xstudio] [warning] void __cdecl xstudio::embedded_python::EmbeddedPython::setup(void) Failed to setup API : ModuleNotFoundError: No module named 'xstudio'
At:
(3):
[2024-08-31 14:42:52.072] [xstudio] [warning] bool __cdecl xstudio::embedded_python::EmbeddedPython::connect(const int) Failed to init API : NameError: name 'Connection' is not defined
At:
(3):
[2024-08-31 14:42:52.073] [xstudio] [warning] Connected failed false
QObject: Cannot create children for a parent that is in a different thread.
(Parent is QApplication(0xa0f49ecfd8), parent's thread is QThread(0x26e38c67630), current thread is QThread(0x26e38c51290)
qrc:/widgets/XsLoopWidget.qml:12: TypeError: Cannot read property 'icon' of undefined
```
Looks a bit strange that the xstudio module could not be found. If I try to start a python console I get this messages:
```
NameError: name 'InteractiveSession' is not defined
At:
(2):
[2024-08-31 14:46:35.046] [xstudio] [warning] class caf::result __cdecl xstudio::embedded_python::EmbeddedPythonActor::act::::operator ()(struct xstudio::embedded_python::python_create_session_atom,const bool) const Python error NameError: name 'InteractiveSession' is not defined
At:
(2):
[2024-08-31 14:46:35.046] [xstudio] [warning] class QUuid __cdecl xstudio::ui::qml::EmbeddedPythonUI::createSession(void) error("NameError: name 'InteractiveSession' is not defined\n\nAt:\n (2): \n")
```
And the python console stays empty. The python 3.11 is the only version I have installed on my system.

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure by starting xstudio.exe on Windows with Python 3.11 and opening the Python console, then inspect EmbeddedPython::setup and connect, EmbeddedPythonActor, and EmbeddedPythonUI::createSession using the logged errors. Done means the xstudio module and InteractiveSession load successfully and the Python console is populated instead of remaining empty.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.