Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Can't determine version of poppler-qt5" on Arch #27

Closed
Kyuuhachi opened this issue Jun 8, 2018 · 4 comments
Closed

"Can't determine version of poppler-qt5" on Arch #27

Kyuuhachi opened this issue Jun 8, 2018 · 4 comments

Comments

@Kyuuhachi
Copy link

I'm trying to install this (for Frescobaldi), but it won't build.

$ pacaur -S python-poppler-qt5
:: Package python-poppler-qt5 not found in repositories, trying AUR...
:: resolving dependencies...
:: looking for inter-conflicts...

AUR Packages  (1) python-poppler-qt5-0.24.2-2  

:: Proceed with installation? [Y/n] 
:: Retrieving package(s)...
:: python-poppler-qt5 build files are up-to-date -- skipping
:: Checking python-poppler-qt5 integrity...
==> Making package: python-poppler-qt5 0.24.2-2 (Fri Jun  8 13:43:56 CEST 2018)
==> Retrieving sources...
  -> Found v0.24.2.tar.gz
  -> Found python-poppler-qt5-0.24.2.patch
==> Validating source files with sha256sums...
    v0.24.2.tar.gz ... Passed
    python-poppler-qt5-0.24.2.patch ... Passed
:: Preparing python-poppler-qt5...
==> Making package: python-poppler-qt5 0.24.2-2 (Fri Jun  8 13:43:57 CEST 2018)
==> WARNING: Skipping dependency checks.
==> Retrieving sources...
  -> Found v0.24.2.tar.gz
  -> Found python-poppler-qt5-0.24.2.patch
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting v0.24.2.tar.gz with bsdtar
==> Starting prepare()...
patching file poppler-qt5.sip
patching file types.sip
==> Sources are ready.
:: Building python-poppler-qt5 package(s)...
==> Making package: python-poppler-qt5 0.24.2-2 (Fri Jun  8 13:43:57 CEST 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
running install
running build
running build_ext
building 'popplerqt5' extension
Can't determine version of poppler-qt5
/usr/bin/sip -I /usr/share/sip -t POPPLER_V0_20_0 -c build/temp.linux-x86_64-3.6 -b build/temp.linux-x86_64-3.6/poppler-qt5.sbf -I /usr/share/sip/PyQt5 -t WS_X11 -t Qt_5_10_1 poppler-qt5.sip
sip: Deprecation warning: poppler-qt5.sip:1: %Module version numbers are deprecated and ignored
sip: Poppler::LinkRendition is undefined
error: command '/usr/bin/sip' failed with exit status 1
==> ERROR: A failure occurred in package().
    Aborting...
:: failed to build python-poppler-qt5 package(s)

I think this is the same issue as #24, but a little more detailed.

@moebius1
Copy link

moebius1 commented Feb 2, 2019

Hello,
I'm running ubuntu 16.04 and want to install frescobaldi3 but buiding python-poppler-qt5 is not possible : sip error , I get that
building 'popplerqt5' extension
/usr/bin/sip -I /usr/share/sip -t POPPLER_V0_28_0 -c build/temp.linux-x86_64-3.5 -b build/temp.linux-x86_64-3.5/poppler-qt5.sbf -I /usr/share/sip/PyQt5 -n PyQt5.sip -t WS_X11 -t Qt_5_11_2 poppler-qt5.sip
sip: Usage: sip [-h] [-V] [-a file] [-b file] [-B tag] [-c dir] [-d file] [-e] [-g] [-I dir] [-j #] [-k] [-m file] [-o] [-p module] [-P] [-r] [-s suffix] [-t tag] [-w] [-x feature] [-X id:file] [-z file] [@file] [file]
error: command '/usr/bin/sip' failed with exit status 1

And my system only offers qt4 version.
Worst thing : i can install again frescobaldi 2.20, that doesn't work.
Frescobaldi3 launches but instead of the aperçu, I have the following text in the window :
impossible de charger le module popplerqt5 (fail to load popplerqt5 module)
You must notice that I do not know anything about python, just type commands.
So I'm in pain and I'm in late to write music !
So, if anyone has a solution or a module compiled for ubuntu 16.04, it would be very kind to give me some help
cordialement,

@fedelibre
Copy link
Member

I don't think you can build python-poppler-qt5 if your system is missing qt5...
If you can't upgrade your Ubuntu 16.04, use a virtual machine to run Ubuntu 18.04, where Frescobaldi 3 is packaged.

@JamesFysh-alliance
Copy link

JamesFysh-alliance commented Dec 20, 2019

Can't determine version of poppler-qt5 was causing me issues also.

I'm trying to use python-poppler-qt5 for an application targetting windows, so I'm using MSYS2. So for me, the resolution to this issue was simply:

pacman -S mingw-w64-x86_64-pkg-config

I suspect something similar may help, when installing in arch linux.

edit: .. and the resolution came about because the setup.py script was failing trying to subprocess-call pkg-config, which wasn't installed and doesn't seem to be an explicit dependency called out in the python-poppler-qt5 INSTALL documentation.

@fedelibre
Copy link
Member

edit: .. and the resolution came about because the setup.py script was failing trying to subprocess-call pkg-config, which wasn't installed and doesn't seem to be an explicit dependency called out in the python-poppler-qt5 INSTALL documentation.

Thanks, I was testing the build in a brand new ubuntu 20.04 container where pkg-config was not installed and I got the same error. After installing the package I could go on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants