frescobaldi / python-poppler-qt5

Python binding to libpoppler-qt5
Other
42 stars 32 forks source link

Building on Mac with latest SIP fails #28

Open dliessi opened 6 years ago

dliessi commented 6 years ago

OS X El Capitan 10.11.6, dependencies provided via MacPorts, latest available versions (Python 3.6.5, Qt/PyQt 5.10.1, Poppler 0.65.0).

Building python-poppler-qt5 succeeds using SIP 4.19.8 but fails using SIP 4.19.10 with the following log:

Executing:  cd "/opt/local/var/macports/build/_opt_macports-git_macports-ports_python_py-poppler-qt5/py36-poppler-qt5/work/python-poppler-qt5-0.24.2" && /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 setup.py --no-user-cfg build 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_macports-git_macports-ports_python_py-poppler-qt5/py36-poppler-qt5/work/python-poppler-qt5-0.24.2" && /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 setup.py --no-user-cfg build 
running build
running build_ext
building 'popplerqt5' extension
/opt/local/bin/sip-3.6 -I /opt/local/share/py36-sip -t POPPLER_V0_28_0 -c build/temp.macosx-10.11-x86_64-3.6 -b build/temp.macosx-10.11-x86_64-3.6/poppler-qt5.sbf -I /opt/local/Library/Frameworks/Python.framework/Versions/3.6/share/sip/PyQt5/ -t WS_MACX -t Qt_5_10_1 poppler-qt5.sip
sip: Deprecation warning: poppler-qt5.sip:1: %Module version numbers are deprecated and ignored
error: command '/opt/local/bin/sip-3.6' terminated by signal 11
Command failed:  cd "/opt/local/var/macports/build/_opt_macports-git_macports-ports_python_py-poppler-qt5/py36-poppler-qt5/work/python-poppler-qt5-0.24.2" && /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 setup.py --no-user-cfg build 
Exit code: 1

Any ideas on how to solve or at least try to diagnose this problem?

SyrakuShaikh commented 6 years ago

same problem here. on archlinux

Looking in indexes: https://pypi.douban.com/simple
Collecting git+https://github.com/wbsoft/python-poppler-qt5.git
  Cloning https://github.com/wbsoft/python-poppler-qt5.git to /tmp/pip-req-build-ulo211xk
Installing collected packages: python-poppler-qt5
  Running setup.py install for python-poppler-qt5 ... error
    Complete output from command /home/shaikh/.pyenv/versions/3.6.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-ulo211xk/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-m7kvh3lt/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'popplerqt5' extension
    /home/shaikh/.pyenv/versions/3.6.6/bin/sip -I /home/shaikh/.pyenv/versions/3.6.6/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 /home/shaikh/.pyenv/versions/3.6.6/share/sip/PyQt5 -n PyQt5.sip -t WS_X11 -t Qt_5_11_1 poppler-qt5.sip
    sip: Deprecation warning: poppler-qt5.sip:1: %Module version numbers are deprecated and ignored
    sip: Unable to find file "QtCore/QtCoremod.sip"
    error: command '/home/shaikh/.pyenv/versions/3.6.6/bin/sip' failed with exit status 1

    ----------------------------------------
Command "/home/shaikh/.pyenv/versions/3.6.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-ulo211xk/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-m7kvh3lt/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-req-build-ulo211xk/

PyQt5 version:

Name: PyQt5
Version: 5.11.2
Summary: None
Home-page: None
Author: None
Author-email: None
License: None
Location: /home/shaikh/.pyenv/versions/3.6.6/lib/python3.6/site-packages
Requires: 
Required-by: 

sip version:

Name: sip
Version: 4.19.11
Summary: None
Home-page: None
Author: None
Author-email: None
License: None
Location: /home/shaikh/.pyenv/versions/3.6.6/lib/python3.6/site-packages
Requires: 
Required-by: 

poppler version:

local/poppler 0.64.0-1
    PDF rendering library based on xpdf 3.0
local/poppler-data 0.4.9-1
    Encoding data for the poppler PDF rendering library
local/poppler-glib 0.64.0-1
    Poppler glib bindings
local/poppler-qt5 0.64.0-1
    Poppler Qt5 bindings
dliessi commented 6 years ago

Apparently a bug in SIP, as I understand from this bug report.

iilei commented 5 years ago

Apparently a bug in SIP, as I understand from this bug report.

They claim it is fixed. I still can not build the app on mac