[PySide] python setup.py build fails with error: ‘class Shiboken::GilState’ has no member named ‘abandon’
Cristian.Maureira-Fredes at qt.io
Wed Sep 9 09:06:24 CEST 2020
On 9/8/20 9:00 PM, Filippo Rusconi wrote:
> Greetings, Fellow Developers,
>> Could you please share the whole output log?
>> it would be really nice if you could share a pastebin link
>> or a similar service, since usually you can see a summary of the
>> configuration before the building starts at the beginning.
> Sure, this is what I got:
I think that's the incorrect output,
since the original was Python 3.8
and the log is using Python 2.7
(which even though is supported, is already deprecated)
Not sure if debian includes 'venv' with he standard Python,
I think in ubuntu one need to install 'python-venv',
but anyway, can you try to do a small build, just to try:
python3 -m venv env
python setup.py install --module-subset=Core --verbose-build # note that
here is 'python' not 'python3' because the environment is activated.
so we only try to build QtCore.
The errors on the current build process is CMake complaining that cannot
find Python3, since that was detected:
> -- Shiboken2Config: Using default python: .cpython-38-x86_64-linux-gnu
And looking at the rest of the error:
Seems like you have shiboken2 5.15 installed in your system,
maybe as a dependency?
In any case, creating the virtual environment,
and activating it will do the job of isolating
the build process, so we avoid picking up system stuff.
and keep up updated :)
Dr. Cristian Maureira-Fredes
The Qt Company GmbH
Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin,
Charlottenburg, HRB 144331 B
More information about the PySide