Opened 6 years ago
Closed 6 years ago
#56841 closed defect (fixed)
py27-qscintilla-qt4 Command execution Failed
Reported by: | mtalluto (Matthew Talluto) | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) | |
Port: | py-qscintilla-qt4 |
Description
Trying to install qgis, the procedure fails on trying to install py27-qscintilla-qt4 with the following messages:
---> Fetching archive for py27-qscintilla-qt4 ---> Attempting to fetch py27-qscintilla-qt4-2.10.7_0.darwin_17.x86_64.tbz2 from http://nue.de.packages.macports.org/py27-qscintilla-qt4 ---> Attempting to fetch py27-qscintilla-qt4-2.10.7_0.darwin_17.x86_64.tbz2 from https://packages.macports.org/py27-qscintilla-qt4 ---> Attempting to fetch py27-qscintilla-qt4-2.10.7_0.darwin_17.x86_64.tbz2 from http://lil.fr.packages.macports.org/py27-qscintilla-qt4 ---> Fetching distfiles for py27-qscintilla-qt4 ---> Verifying checksums for py27-qscintilla-qt4 ---> Extracting py27-qscintilla-qt4 ---> Applying patches to py27-qscintilla-qt4 ---> Configuring py27-qscintilla-qt4 Error: Failed to configure py27-qscintilla-qt4: configure failure: command execution failed
The log file has 2 errors that I can see ( I can post the whole thing if necessary)
:info:configure Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_devel_qscintilla/py27-qscintilla-qt4/work/QScintilla_gpl-2.10.7/Python" && /opt/local/bin/python2.7 configure.py --verbose --pyqt=PyQt4 --sip=/opt/local/bin/sip-2.7 --qmake=/opt/local/libexec/qt4/bin/qmake --no-dist-info --spec=macx-g++ :debug:configure system: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_devel_qscintilla/py27-qscintilla-qt4/work/QScintilla_gpl-2.10.7/Python" && /opt/local/bin/python2.7 configure.py --verbose --pyqt=PyQt4 --sip=/opt/local/bin/sip-2.7 --qmake=/opt/local/libexec/qt4/bin/qmake --no-dist-info --spec=macx-g++ :info:configure Error: Unable to create the C++ code.
:info:configure Generating the C++ source for the Qsci module... :info:configure /opt/local/bin/sip-2.7 -x VendorID -t WS_MACX -x PyQt_NoPrintRangeBug -t Qt_4_8_6 -x Py_v3 -B Qt_5_0_0 -I /opt/local/Library/Frameworks/Python.framework/Versions/2.7/share/sip/PyQt4 -y Qsci.pyi -a Qsci.api -P -o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_devel_qscintilla/py27-qscintilla-qt4/work/QScintilla_gpl-2.10.7/Python/Qsci -I sip sip/qscimod4.sip :info:configure sip: Unable to find file "QtCore/QtCoremod.sip" :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_devel_qscintilla/py27-qscintilla-qt4/work/QScintilla_gpl-2.10.7/Python" && /opt/local/bin/python2.7 configure.py --verbose --pyqt=PyQt4 --sip=/opt/local/bin/sip-2.7 --qmake=/opt/local/libexec/qt4/bin/qmake --no-dist-info --spec=macx-g++ :info:configure Exit code: 1
Change History (9)
comment:1 Changed 6 years ago by mf2k (Frank Schima)
Cc: | MarcusCalhoun-Lopez added |
---|---|
Owner: | set to michaelld |
Port: | py-qscintilla-qt4 added |
Status: | new → assigned |
comment:2 Changed 6 years ago by kencu (Ken)
hmmm. py27-qscintilla-qt4
does indeed depend on py27-pyqt4
, and py27-pyqt4
does have that file:
$ port contents py27-pyqt4 | grep QtCore/QtCoremod.sip /opt/local/share/py27-sip/PyQt4/QtCore/QtCoremod.sip
but it's just not finding it.
py34-qscintalla-qt4 fails identically:
$ sudo port -v -N install py34-qscintilla-qt4 ---> Computing dependencies for py34-qscintilla-qt4. ---> Fetching archive for py34-qscintilla-qt4 ---> py34-qscintilla-qt4-2.10.7_0.darwin_17.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified ---> Attempting to fetch py34-qscintilla-qt4-2.10.7_0.darwin_17.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/py34-qscintilla-qt4 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0 ---> Attempting to fetch py34-qscintilla-qt4-2.10.7_0.darwin_17.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/py34-qscintilla-qt4 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 ---> Attempting to fetch py34-qscintilla-qt4-2.10.7_0.darwin_17.x86_64.tbz2 from https://packages.macports.org/py34-qscintilla-qt4 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 ---> Fetching distfiles for py34-qscintilla-qt4 ---> Verifying checksums for py34-qscintilla-qt4 ---> Checksumming QScintilla_gpl-2.10.7.tar.gz ---> Extracting py34-qscintilla-qt4 ---> Extracting QScintilla_gpl-2.10.7.tar.gz Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_qscintilla/py34-qscintilla-qt4/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/qscintilla/QScintilla_gpl-2.10.7.tar.gz' | /usr/bin/tar -xf - ---> Applying patches to py34-qscintilla-qt4 ---> Applying patch-configure.py.diff Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_qscintilla/py34-qscintilla-qt4/work/QScintilla_gpl-2.10.7/Python" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/qscintilla/files/patch-configure.py.diff' patching file configure.py Hunk #1 succeeded at 958 (offset 4 lines). ---> Configuring py34-qscintilla-qt4 Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_qscintilla/py34-qscintilla-qt4/work/QScintilla_gpl-2.10.7/Python" && /opt/local/bin/python3.4 configure.py --verbose --pyqt=PyQt4 --sip=/opt/local/bin/sip-3.4 --qmake=/opt/local/libexec/qt4/bin/qmake --no-dist-info --spec=macx-g++ Error: Unable to create the C++ code. Configuring QScintilla 2.10.7... QScintilla 2.10.7 is being used. The QScintilla .sip files will be installed in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/share/sip/PyQt4. QScintilla will be installed in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/PyQt4. PyQt 4.12.1 is being used. Qt 4.8.7 is being used. sip 4.19.12 is being used. The sip executable is /opt/local/bin/sip-3.4. QScintilla is being built with 'protected' redefined as 'public'. The PEP 484 stubs will be installed in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/PyQt4. The QScintilla API file will be installed in /opt/local/libexec/qt4/share/qsci/api/python. Generating the C++ source for the Qsci module... /opt/local/bin/sip-3.4 -x VendorID -t WS_MACX -x PyQt_NoPrintRangeBug -t Qt_4_8_6 -B Qt_5_0_0 -I /opt/local/Library/Frameworks/Python.framework/Versions/3.4/share/sip/PyQt4 -y Qsci.pyi -a Qsci.api -P -o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_qscintilla/py34-qscintilla-qt4/work/QScintilla_gpl-2.10.7/Python/Qsci -I sip sip/qscimod4.sip sip: Unable to find file "QtCore/QtCoremod.sip" Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_qscintilla/py34-qscintilla-qt4/work/QScintilla_gpl-2.10.7/Python" && /opt/local/bin/python3.4 configure.py --verbose --pyqt=PyQt4 --sip=/opt/local/bin/sip-3.4 --qmake=/opt/local/libexec/qt4/bin/qmake --no-dist-info --spec=macx-g++ Exit code: 1 Error: Failed to configure py34-qscintilla-qt4: configure failure: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_qscintilla/py34-qscintilla-qt4/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port py34-qscintilla-qt4 failed
Looks like we may need to add another -I to /opt/local/share/py27-sip/PyQt4
for this build to work?
comment:3 Changed 6 years ago by michaelld (Michael Dickens)
Guessing the issue is that I removed the configure argument --pyqt-sipdir=${prefix}/share/py${pver}-sip/PyQt4
in https://github.com/macports/macports-ports/commit/3790796abfef140fa0c2678d66b81430fca8ee0a -- because that's not where the Sip files were located & Qsci was finding the correct location automatically. Maybe Sip for Python 3.4 installs differently than Sip for Python 2.7 or 3.[67]?
comment:4 follow-up: 5 Changed 6 years ago by michaelld (Michael Dickens)
For me:
$ port contents py27-pyqt4 | grep QtCore/QtCoremod.sip /opt/local/Library/Frameworks/Python.framework/Versions/2.7/share/sip/PyQt4/QtCore/QtCoremod.sip
... which is really where they should be located.
So maybe this is really a PyQt4 issue?
comment:5 Changed 6 years ago by kencu (Ken)
Replying to michaelld:
For me:
$ port contents py27-pyqt4 | grep QtCore/QtCoremod.sip /opt/local/Library/Frameworks/Python.framework/Versions/2.7/share/sip/PyQt4/QtCore/QtCoremod.sip... which is really where they should be located.
So maybe this is really a PyQt4 issue?
Well that's odd ;> Perhaps PyQt4 is installing differently now than it did before and just needs a revbump...
comment:6 Changed 6 years ago by kencu (Ken)
So this is a fresh install of py27-pyqt4 on 10.7.5 from source:
$ port contents py27-pyqt4 | grep QtCore/QtCoremod.sip /opt/local/share/py27-sip/PyQt4/QtCore/QtCoremod.sip
comment:7 Changed 6 years ago by michaelld (Michael Dickens)
I see this issue now testing for Python 3.7 ... let me poke at PyQt4 & see what's going on with it. It does not seem to be just a rev-bump issue, darn it!
comment:8 Changed 6 years ago by michaelld (Michael Dickens)
Yeah this is actually a PyQt4 issue. Working on a fix now.
comment:9 Changed 6 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
In the future, please fill in the Port field and add the port maintainer(s) to Cc (
port info --maintainers py27-qscintilla-qt4
), if any.