Closed fedelibre closed 1 year ago
For the records, I can build in a Fedora 36 container:
$ rpm -q sip6
sip6-6.5.0-2.fc36.x86_64
$ sip-install --qmake /usr/lib64/qt5/bin/qmake --target-dir ~/.local/lib/python3.10/site-packages/
Querying qmake about your Qt installation...
These bindings will be built: Poppler-Qt5.
Generating the Poppler-Qt5 bindings...
Generating the .pro file for the popplerqt5 module...
Generating the top-level .pro file...
Generating the Makefiles...
Compiling the project...
Installing the project...
The project has been installed.
FWIW, I encounter the same problem when running
pip install git+https://github.com/frescobaldi/python-poppler-qt5
in Ubuntu 22.04.
> python --version
Python 3.10.4
> pip --version
pip 22.0.2 from /home/pa/MyPyEnv/lib/python3.10/site-packages/pip (python 3.10)
@pchampin What's the output of sip-build --version
?
> sip-build --version
sip-build: pyproject.toml: unable to parse file: [Errno 2] No such file or directory: 'pyproject.toml'
:-(
(note that all the process is ran by pip in a temporary dir, so I don't have easy access to pyproject.toml
)
If that's any help:
> pip freeze | grep sip
PyQt5-sip==12.10.1
sip==5.0.0
@wbsoft Can you help?
It works for me only with sip == 6.5.0 PyQt5-sip == 12.10.1
all other version of sip don't work for me.
This works for me:
PyQt5-sip: 12.10.1
sip: 6.6.2
Sip version 6.6.0 switched to another .sip file parser.
I guess it's a bug that was fixed in version 6.6.2.
thanks @dwintergruen @Ultimator14 . Forcing sip to version 6.5.0 or 6.6.2 does indeed solves the problem above for me. However, it only reveals a further problem :cry::
> pip install git+https://github.com/frescobaldi/python-poppler-qt5
Collecting git+https://github.com/frescobaldi/python-poppler-qt5
Cloning https://github.com/frescobaldi/python-poppler-qt5 to /tmp/pip-req-build-9v1dkout
Running command git clone --filter=blob:none --quiet https://github.com/frescobaldi/python-poppler-qt5 /tmp/pip-req-build-9v1dkout
Resolved https://github.com/frescobaldi/python-poppler-qt5 to commit b9b95ae34b7892ec702fa67d1ff2e8c68ccd076a
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...
These bindings will be built: Poppler-Qt5.
Generating the Poppler-Qt5 bindings...
Generating the .pro file for the popplerqt5 module...
Generating the top-level .pro file...
Generating the Makefiles...
Compiling the project...
Installing the project...
_in_process.py: 'make install' failed returning 2
[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.
@pchampin I used these commands for installation in a local directory (absolute path names requried).
git clone https://github.com/frescobaldi/python-poppler-qt5.git
cd python-poppler-qt5
mkdir build out
sip-install --verbose --qmake /usr/bin/qmake5 --target-dir="/absolute/path/to/out" --build-dir="/absolute/path/to/build"
The installation via pip also gives me a similar error.
I'm trying to update Frescobaldi flatpak and use the recently added PyQt baseapp, which provides some dependencies I used to install within the flatpak manifest I maintain. As you can see in pull 6, the latest aarch64 build is failing with the following error:
For the records, I managed to build it after some updates. See this PR.
I'm trying to update Frescobaldi flatpak and use the recently added PyQt baseapp, which provides some dependencies I used to install within the flatpak manifest I maintain. As you can see in pull 6, the latest aarch64 build is failing with the following error:
I guess that
poppler-annotation.sip
is not compliant with the sip-install version I'm using? As I cannot control the sip version used by PyQt.BaseApp, can you upgrade this file?PyQt.BaseApp is using sip 6.6.1 and and PyQt5-sip 12.10.1.