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

Building on Mac with latest SIP fails #28

Open
dliessi opened this issue Jun 27, 2018 · 3 comments
Open

Building on Mac with latest SIP fails #28

dliessi opened this issue Jun 27, 2018 · 3 comments

Comments

@dliessi
Copy link
Contributor

dliessi commented Jun 27, 2018

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
Copy link

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
Copy link
Contributor Author

dliessi commented Jul 5, 2018

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

@iilei
Copy link

iilei commented Aug 14, 2019

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

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

4 participants