indygreg / indygreg/PyOxidizer

The app is not built with PySide2

Open
#228 3 comments 1 reaction 0 assignees View on GitHub
compatibility
Dominant language
Rust
Stars
6.2k
Forks
256
PR merge metrics
No merged PRs in 30d

Description

Hi!
I ran into a problem when trying to build an application in Python with the GUI on PySide2. When i try to use the "pyoxidizer run" command, the following exception appears at the moment the application is launched:
```
PySide2/__init__.py: Unable to import shiboken2 from
Traceback (most recent call last):
File "eln_to_excel_gui", line 1, in
File "PySide2", line 61, in
File "PySide2", line 25, in _setupQtDirectories
File "shiboken2", line 27, in
ModuleNotFoundError: No module named 'shiboken2.shiboken2'
SystemError
error: cargo run failed

```
Can you tell me what the problem might be?

Upd.: If I change the import in __ init __ in shiboken2 from
```
from .shiboken2 import *
```
to
```
from shiboken2 import *
```
or move the file shiboken2.py from "PyCharm2019. 3\system\python_stubbs\-606356942\shiboken2" to the "\venv\Lib\site-packages\ " directory , the error will change to:
```
Traceback (most recent call last):
File "eln_to_excel_gui", line 1, in
File "PySide2", line 61, in
File "PySide2", line 33, in _setupQtDirectories
AttributeError: type object 'type' has no attribute '__signature__'
SystemError
error: cargo run failed
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with the `pyoxidizer run` command and compare the traceback from `PySide2/__init__.py` with the `shiboken2` import described in the report. Check whether the changed import or relocated `shiboken2.py` alters the result, and consider the issue resolved only when the PySide2 application launches without either exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
build-system, tooling
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.