Hi Phil,
Python3 version is 3.8.10 (default in several Ubuntu 20.04 distros): Not
the most recent version (slightly over 1 year old) but 3.8 is supposed
to be supported until 2024. Updating pip to 22.1.2 didn't fix the
problem although the output look was slightly modified:
Collecting QScintilla
Using cached QScintilla-2.13.3.tar.gz (1.7 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
? exit code: 1
??> [9 lines of output]
Querying qmake about your Qt installation...
/usr/local/bin/qmake -query
These bindings will be built: Qsci.
Generating the Qsci bindings...
_in_process.py:
/tmp/pip-install-uj3w968a/qscintilla_76021c69544f414d90a37edfda991938/sip/qscimodcommon.sip:
line 42 column 9: 'QtCore/QtCoremod.sip' could not be found
/tmp/pip-install-uj3w968a/qscintilla_76021c69544f414d90a37edfda991938/sip/qscimodcommon.sip:
line 43 column 9: 'QtGui/QtGuimod.sip' could not be found
/tmp/pip-install-uj3w968a/qscintilla_76021c69544f414d90a37edfda991938/sip/qscimodcommon.sip:
line 44 column 9: 'QtWidgets/QtWidgetsmod.sip' could not be found
/tmp/pip-install-uj3w968a/qscintilla_76021c69544f414d90a37edfda991938/sip/qscimodcommon.sip:
line 46 column 6: 'PyQt_Printer' is not a known qualifier
/tmp/pip-install-uj3w968a/qscintilla_76021c69544f414d90a37edfda991938/sip/qsciprinter.sip:
line 21 column 6: 'PyQt_Printer' is not a known qualifier
[end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
??> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I also tried using an older QScintilla version but same result. Thanks,
Arturo
On 2022-06-07 20:14, Phil Thompson wrote:
The fact that pip is trying to build from the sdist rather than use a
wheel suggests either that you are using an unsupported version of
Python or your version of pip is too old.
Phil
On 07/06/2022 19:42, afernandez wrote:
Hi Phil,
I had previously tried pip with a very similar outcome:
Collecting QScintilla
Using cached QScintilla-2.13.3.tar.gz (1.7 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /tmp/tmp64603wve
prepare_metadata_for_build_wheel /tmp/tmput6jv7tw
cwd: /tmp/pip-install-hbmfmvgr/QScintilla
Complete output (9 lines):
Querying qmake about your Qt installation...
/usr/local/bin/qmake -query
These bindings will be built: Qsci.
Generating the Qsci bindings...
tmp64603wve:
/tmp/pip-install-hbmfmvgr/QScintilla/sip/qscimodcommon.sip: line 42
column 9: 'QtCore/QtCoremod.sip' could not be found
/tmp/pip-install-hbmfmvgr/QScintilla/sip/qscimodcommon.sip: line 43
column 9: 'QtGui/QtGuimod.sip' could not be found
/tmp/pip-install-hbmfmvgr/QScintilla/sip/qscimodcommon.sip: line 44
column 9: 'QtWidgets/QtWidgetsmod.sip' could not be found
/tmp/pip-install-hbmfmvgr/QScintilla/sip/qscimodcommon.sip: line 46
column 6: 'PyQt_Printer' is not a known qualifier
/tmp/pip-install-hbmfmvgr/QScintilla/sip/qsciprinter.sip: line 21
column 6: 'PyQt_Printer' is not a known qualifier
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3
/tmp/tmp64603wve prepare_metadata_for_build_wheel /tmp/tmput6jv7tw
Check the logs for full command output.
Something is clearly not clicking but I'm unsure how to proceed.
Thanks,
Arturo
Phil Thompson wrote:
On 07/06/2022 13:03, afernandez wrote:
Hello,
After installing PyQt v5.15.6 with pip and QScintilla_src-2.13.3 with
qmake, the installation of the python bindings is returning the
following errors:
sip-install:
/home/ubuntu/QScintilla_src-2.13.3/Python/sip/qscimodcommon.sip: line
42 column 9: 'QtCore/QtCoremod.sip' could not be found
/home/ubuntu/QScintilla_src-2.13.3/Python/sip/qscimodcommon.sip: line
43 column 9: 'QtGui/QtGuimod.sip' could not be found
/home/ubuntu/QScintilla_src-2.13.3/Python/sip/qscimodcommon.sip: line
44 column 9: 'QtWidgets/QtWidgetsmod.sip' could not be found
/home/ubuntu/QScintilla_src-2.13.3/Python/sip/qscimodcommon.sip: line
46 column 6: 'PyQt_Printer' is not a known qualifier
/home/ubuntu/QScintilla_src-2.13.3/Python/sip/qsciprinter.sip: line 21
column 6: 'PyQt_Printer' is not a known qualifier
I'm not even sure how to begin troubleshooting any of these error
messages. Did I even install PyQt5 correctly? Thanks.
If you are installing PyQt with pip why not install QScintilla in the
same way?
Phil