Details
-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
None
-
6.4.2
-
None
-
Ubuntu 22.04.2
Python 3.10.10
PySide 6.4.2
Description
By default, the virtual environment does not copy libpythonX.X.so to the .venv/lib/ directory. Thus, with the venv activated, running pyside6-designer would showing the following error.
Error: ERROR: ld.so: object 'libpython3.10.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
This might affect the ability to load custom widgets in Qt Designer.
Steps to Reproduce with Poetry (to create virtual environment):
- Create a virtual environment by 'python -m venv ./test/.venv'
- Activate the virtual environment by 'source ./test/.venv/bin/activate'
- Invoke 'pyside6-designer' in the activated virtual environment
- No plugins and custom widgets are loaded
- Close the designer GUI app
- The error mentioned above shows in the terminal after the app exited
This behavior is mentioned in https://github.com/python/cpython/issues/87500 from the official repo.