Open n-elie opened 1 year ago
Fails with error:
cd /project/build/temp.linux-x86_64-cpython-37_PySide6-QtAds && /tmp/pip-build-env-e19q3ei8/overlay/lib/python3.7/site-packages/cmake/data/bin/cmake -E env /opt/python/cp37-cp37m/bin/python3.7 /project/support/generate_pyi.py PySide6QtAds --sys-path /project/build/temp.linux-x86_64-cpython-37_PySide6-QtAds
Traceback (most recent call last):
File "/project/support/generate_pyi.py", line 88, in <module>
generate_all_pyi(outpath, options=options)
File "/project/support/generate_pyi.py", line 37, in generate_all_pyi
import PySide6QtAds
ImportError: libpyside6qml.abi3.so.6.4: cannot open shared object file: No such file or directory
ninja: build stopped: subcommand failed.
PySide6QtAds
can't be imported
I tried on Windows and also got ImportError: DLL load failed while importing PySide6QtAds
. However if I install the wheel and run python support/generate_pyi.py PySide6QtAds --sys-path ./build/temp.win-amd64-cpython-310/Release_PySide6-QtAds
it actually works. How to install PySide6QtAds
then run stub generation?
I managed to generate stub in my fork.
https://github.com/wuyuanyi135/pyside6_qtads/blob/main/setup.py
I postponed the command you run in cmake for pyi generation after installation.
Add stub (.pyi) files generation in CMakeLists.txt