Skip to content

Can't install, error with Sip #29

Closed
@guilhermedelyra

Description

@guilhermedelyra

I think I've installed all the pre-requisites, but I'm getting an error with sip (i guess)

$ python3 setup.py build
running build
running build_ext
building 'popplerqt5' extension

/usr/bin/sip -I /usr/share/sip -t POPPLER_V0_28_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 -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] [-D] [-e] [-f] [-g] [-I dir] [-j #] [-k] [-m file] [-o] [-p module] [-P] [-r] [-s suffix] [-t tag] [-w] [-x feature] [-X id:file] [-y file] [-z file] [@file] [file]

error: command '/usr/bin/sip' failed with exit status 1

From what I could track, the problem relay in the '-n' flag (but I have no idea if my guess is correct)

Anyway, here are some infos from my system:

OS:

running on Windows Subsystem for Linux
$ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 18.04.1 LTS
    Release:        18.04
    Codename:       bionic

SIP version:

$ sip -V
    4.19.7

poppler-qt5 [idk if this is installed correctly]:

$ dpkg -l | grep libpoppler-qt5-dev
    ii  libpoppler-qt5-dev:amd64                   0.62.0-2ubuntu2.5
                  amd64        PDF rendering library -- development files (Qt 5 interface)
$ dpkg -l | grep libpoppler-qt5-1
    ii  libpoppler-qt5-1:amd64                     0.62.0-2ubuntu2.5
                  amd64        PDF rendering library (Qt 5 based shared library)
$ dpkg -l | grep python3-poppler-qt5
    ii  python3-poppler-qt5                        0.24.2-3build3
                  amd64        Python binding to Poppler-Qt5 C++ library
(Python 3) 

QT5 and PyQt5:

>>> import inspect
>>> from PyQt5 import Qt
>>> vers = ['%s = %s' % (k,v) for k,v in vars(Qt).items() if k.lower().find('version') >= 0 and not inspect.isbuiltin(v)]
>>> print('\n'.join(sorted(vers)))PYQT_VERSION = 330499
    PYQT_VERSION_STR = 5.11.3
    QOpenGLVersionProfile = <class 'PyQt5.QtGui.QOpenGLVersionProfile'>
    QOperatingSystemVersion = <class 'PyQt5.QtCore.QOperatingSystemVersion'>
    QT_VERSION = 330498
    QT_VERSION_STR = 5.11.2
    QVersionNumber = <class 'PyQt5.QtCore.QVersionNumber'>

Another thing I've noticed is that I can't run simply 'python setup.py build' (instead of 'python3 ...'), because there is no PyQt5 package for python2 (at least I didn't found)

Let me know if there's any other relevant info i should've provided.

Activity

adibub

adibub commented on Jan 10, 2019

@adibub

Same issue, any ideas?

guilhermedelyra

guilhermedelyra commented on Jan 22, 2019

@guilhermedelyra
Author

No...

fedelibre

fedelibre commented on Jan 23, 2019

@fedelibre
Member

You don't need to build python-poppler-qt5, as you already have it in your system.
Just follow the instructions in Frescobaldi INSTALL file, i.e. run it from source or install it.

woodlandhunter

woodlandhunter commented on Jan 3, 2020

@woodlandhunter
Contributor

I know this is an old issue, but sip v4.19.7 doesn't have the -n flag, it was added in 4.19.9. Update to the latest version of sip v4 (4.19.20 as of this comment) if you want to build the extension right now.

(sip v5 has been released but it made breaking changes to the build process so is not yet supported)

jeanas

jeanas commented on Aug 9, 2023

@jeanas
Member

Closing this, since we're now on sip 5 exclusively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @wbsoft@fedelibre@woodlandhunter@guilhermedelyra@adibub

        Issue actions

          Can't install, error with Sip · Issue #29 · frescobaldi/python-poppler-qt5