Opened 4 years ago

Closed 3 years ago

#60741 closed defect (fixed)

Unable to install py38-qscintilla-qt5, py38-pyqt5-chart, py38-pyqt5-webengine from scratch (fresh installation)

Reported by: JD-Veiga Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: michaelld (Michael Dickens), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), reneeotten (Renee Otten)
Port: py38-pyqt5 py38-qscintilla-qt5 py38-pyqt5-chart py38-pyqt5-webengine py38-sip

Description (last modified by JD-Veiga)

Hi,

I am not able to install neither py38-qscintilla-qt5 nor py38-pyqt5-chart nor py38-pyqt5-webengine.

py38-pyqt5-chart fails because:

sip: Unable to find file "QtGui/QtGuimod.sip"

py38-pyqt5-webengine fails because:

sip: Unable to find file "QtCore/QtCoremod.sip"

Finally, py38-qscintilla-qt5 fails because:

sip: Unable to find file "QtCore/QtCoremod.sip"

However, QtGui/QtGuimod.sip and QtCore/QtCoremod.sip actually exists in my file system:

  • /opt/local/Library/Frameworks/Python.framework/Versions/3.8/share/sip/PyQt5/QtGui/QtGuimod.sip
  • /opt/local/Library/Frameworks/Python.framework/Versions/3.8/share/sip/PyQt5/QtCore/QtCoremod.sip

These issues emerged after upgrading qscintilla-qt5 two days ago (on 27th June, 2020). One application on my system (eric-6 IDE) failed to find Qsci.so any longer. So, after some checks and tests, I decided to re-install Qt, sip, PyQt, and Scintilla on my system. However, py38-qscintilla-qt5, py38-pyqt5-chart, and py38-pyqt5-webengine refused to be re-installed.

My computer is running:

macports: 2.6.2
macOs: 10.14.6 (Mojave)

These ports are currently installed:

py38-pyqt5 @5.15.0_0+scintilla+webkit
qt5 @5.14.2_0 
py38-sip @4.19.23_
qscintilla-qt5 @2.11.5_0

sudo port -v install py38-qscintilla-qt5 outputs:

--->  Computing dependencies for py38-qscintilla-qt5.
--->  Fetching archive for py38-qscintilla-qt5
--->  py38-qscintilla-qt5-2.11.5_0.darwin_18.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch py38-qscintilla-qt5-2.11.5_0.darwin_18.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/py38-qscintilla-qt5
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   311  100   311    0     0   1836      0 --:--:-- --:--:-- --:--:--  1840
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch py38-qscintilla-qt5-2.11.5_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/py38-qscintilla-qt5
  % 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 py38-qscintilla-qt5-2.11.5_0.darwin_18.x86_64.tbz2 from http://lil.fr.packages.macports.org/py38-qscintilla-qt5
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Configuring py38-qscintilla-qt5
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qscintilla/py38-qscintilla-qt5/work/QScintilla-2.11.5/Python" && /opt/local/bin/python3.8 configure.py --verbose --pyqt=PyQt5 --sip=/opt/local/bin/sip-3.8 --qmake=/opt/local/libexec/qt5/bin/qmake --no-dist-info --spec=macx-clang 
Error: Unable to create the C++ code.
Configuring QScintilla 2.11.5...
QScintilla 2.11.5 is being used.
The QScintilla .sip files will be installed in
/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyQt5/bindings.
QScintilla will be installed in
/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyQt5.
PyQt 5.15.0 is being used.
Qt 5.14.2 is being used.
sip 4.19.23 is being used.
The sip executable is /opt/local/bin/sip-3.8.
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.8/lib/python3.8/site-packages/PyQt5.
The QScintilla API file will be installed in
/opt/local/libexec/qt5/qsci/api/python.
Generating the C++ source for the Qsci module...
/opt/local/bin/sip-3.8 -I /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qscintilla/py38-qscintilla-qt5/work/QScintilla-2.11.5/Python/sip -I /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyQt5/bindings -n sip -t WS_MACX -t Qt_5_14_0 -B Qt_6_0_0 -y Qsci.pyi -a Qsci.api -P -o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qscintilla/py38-qscintilla-qt5/work/QScintilla-2.11.5/Python/Qsci /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qscintilla/py38-qscintilla-qt5/work/QScintilla-2.11.5/Python/sip/qscimod5.sip
sip: Deprecation warning: the -B flag is deprecated
sip: Unable to find file "QtCore/QtCoremod.sip"
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qscintilla/py38-qscintilla-qt5/work/QScintilla-2.11.5/Python" && /opt/local/bin/python3.8 configure.py --verbose --pyqt=PyQt5 --sip=/opt/local/bin/sip-3.8 --qmake=/opt/local/libexec/qt5/bin/qmake --no-dist-info --spec=macx-clang 
Exit code: 1
Error: Failed to configure py38-qscintilla-qt5: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qscintilla/py38-qscintilla-qt5/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port py38-qscintilla-qt5 failed

sudo port -v install py38-pyqt5-chart outputs:

--->  Computing dependencies for py38-pyqt5-chart.
--->  Fetching archive for py38-pyqt5-chart
--->  py38-pyqt5-chart-5.15.0_0.darwin_18.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch py38-pyqt5-chart-5.15.0_0.darwin_18.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/py38-pyqt5-chart
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   305  100   305    0     0   2462      0 --:--:-- --:--:-- --:--:--  2459
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch py38-pyqt5-chart-5.15.0_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/py38-pyqt5-chart
  % 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 py38-pyqt5-chart-5.15.0_0.darwin_18.x86_64.tbz2 from http://lil.fr.packages.macports.org/py38-pyqt5-chart
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Configuring py38-pyqt5-chart
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py38-pyqt5-chart/work/PyQtChart-5.15.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 configure.py -q /opt/local/libexec/qt5/bin/qmake --verbose --sip=/opt/local/bin/sip-3.8 --no-qsci-api --no-dist-info --spec=macx-clang 
Error: Unable to create the C++ code.
Configuring PyQtChart 5.15.0...
QtChart 5.14.2 is being used.
The QtChart .sip files will be installed in
/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyQt5/bindings.
PyQtChart will be installed in
/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyQt5.
PyQt 5.15.0 is being used.
Qt 5.14.2 is being used.
sip 4.19.23 is being used.
The sip executable is /opt/local/bin/sip-3.8.
PyQtChart is being built with 'protected' redefined as 'public'.
The PEP 484 stubs will be installed in
/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyQt5.
Generating the C++ source for the QtChart module...
/opt/local/bin/sip-3.8 -I /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py38-pyqt5-chart/work/PyQtChart-5.15.0/sip -I /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyQt5/bindings -n sip -t WS_MACX -t Qt_5_14_0 -B Qt_6_0_0 -t QtChart_5_14_0 -y QtChart.pyi -P -o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py38-pyqt5-chart/work/PyQtChart-5.15.0/QtChart /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py38-pyqt5-chart/work/PyQtChart-5.15.0/sip/QtChart/QtChartmod.sip
sip: Deprecation warning: the -B flag is deprecated
sip: Unable to find file "QtGui/QtGuimod.sip"
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py38-pyqt5-chart/work/PyQtChart-5.15.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 configure.py -q /opt/local/libexec/qt5/bin/qmake --verbose --sip=/opt/local/bin/sip-3.8 --no-qsci-api --no-dist-info --spec=macx-clang 
Exit code: 1
Error: Failed to configure py38-pyqt5-chart: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py38-pyqt5-chart/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port py38-pyqt5-chart failed

sudo port -v install py38-pyqt5-webengine outputs:

--->  Computing dependencies for py38-pyqt5-webengine.
--->  Fetching archive for py38-pyqt5-webengine
--->  py38-pyqt5-webengine-5.15.0_0.darwin_18.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch py38-pyqt5-webengine-5.15.0_0.darwin_18.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/py38-pyqt5-webengine
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   313  100   313    0     0   2456      0 --:--:-- --:--:-- --:--:--  2464
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch py38-pyqt5-webengine-5.15.0_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/py38-pyqt5-webengine
  % 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 py38-pyqt5-webengine-5.15.0_0.darwin_18.x86_64.tbz2 from http://lil.fr.packages.macports.org/py38-pyqt5-webengine
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Configuring py38-pyqt5-webengine
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py38-pyqt5-webengine/work/PyQtWebEngine-5.15.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 configure.py -q /opt/local/libexec/qt5/bin/qmake --verbose --sip=/opt/local/bin/sip-3.8 --no-qsci-api --no-dist-info --spec=macx-clang 
Error: Unable to create the C++ code.
Configuring PyQtWebEngine 5.15.0...
The PyQtWebEngine .sip files will be installed in
/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyQt5/bindings.
PyQtWebEngine will be installed in
/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyQt5.
PyQt 5.15.0 is being used.
Qt 5.14.2 is being used.
sip 4.19.23 is being used.
The sip executable is /opt/local/bin/sip-3.8.
PyQtWebEngine is being built with 'protected' redefined as 'public'.
The PEP 484 stubs will be installed in
/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyQt5.
Generating the C++ source for the QtWebEngine module...
/opt/local/bin/sip-3.8 -I /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py38-pyqt5-webengine/work/PyQtWebEngine-5.15.0/sip -I /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyQt5/bindings -n sip -t WS_MACX -t Qt_5_14_0 -B Qt_6_0_0 -t QtWebEngine_5_14_0 -y QtWebEngine.pyi -P -o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py38-pyqt5-webengine/work/PyQtWebEngine-5.15.0/QtWebEngine /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py38-pyqt5-webengine/work/PyQtWebEngine-5.15.0/sip/QtWebEngine/QtWebEnginemod.sip
sip: Deprecation warning: the -B flag is deprecated
sip: Unable to find file "QtCore/QtCoremod.sip"
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py38-pyqt5-webengine/work/PyQtWebEngine-5.15.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 configure.py -q /opt/local/libexec/qt5/bin/qmake --verbose --sip=/opt/local/bin/sip-3.8 --no-qsci-api --no-dist-info --spec=macx-clang 
Exit code: 1
Error: Failed to configure py38-pyqt5-webengine: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py38-pyqt5-webengine/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port py38-pyqt5-webengine failed

Thank you in advanced.

Change History (10)

comment:1 Changed 4 years ago by JD-Veiga

Description: modified (diff)
Port: py38-pyqt5 added

comment:2 Changed 4 years ago by JD-Veiga

Cc: JD-Veiga added

comment:3 Changed 4 years ago by JD-Veiga

Cc: JD-Veiga removed

comment:4 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: michaelld MarcusCalhoun-Lopez added

comment:5 Changed 4 years ago by JD-Veiga

I can confirm that I can upgrade py38-qscintilla-qt5, py38-pyqt5-chart, and py38-pyqt5-webengine from a previous installation but not from a fresh installation.

In my case, upgrading from previous installation was possible with these packages:

  • py38-pyqt5 @5.15.0_0+scintilla
  • qscintilla-qt5 @2.11.2_0
  • py38-pyqt5-chart @5.15.0_0
  • py38-qscintilla-qt5 @2.11.2_0

I upgraded them to:

  • qscintilla-qt5 @2.11.5_0
  • py38-qscintilla-qt5 @2.11.5_0

and installed:

  • py38-pyqt5 @5.15.0_0+scintilla+webkit
  • py38-pyqt5-webengine @5.15.0_0 (and corresponding qt5-qtwebengine @5.14.2_0)

As I said before, this was not possible from a fresh installation (without qt5, pyqt5, qscintilla-qt5, etc. installed).


Despite having being able to upgrade from previous installation, importing qscintilla with activated py38-qscintilla-qt5 @2.11.5_0 is not possible. It can only import it with py38-qscintilla-qt5 @2.11.2_0 activated.

For instance, running python -c 'import PyQt5.Qsci' with py38-qscintilla-qt5 @2.11.5_0 (active) --and qscintilla-qt5 @2.11.5_0 (active)-- fails:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyQt5/Qsci.so, 2): Library not loaded: @rpath/libqscintilla2_qt5.15.dylib
  Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyQt5/Qsci.so
  Reason: image not found

Though /opt/local/libexec/qt5/lib/libqscintilla2_qt5.15.dylib really exists.

Running python -c 'import PyQt5.Qsci' with py38-qscintilla-qt5 @2.11.2_0 (active) --and qscintilla-qt5 @2.11.5_0 (active)-- works fine. (Note that only py38-qscintilla-qt5 has been changed between tests.)

I do not know if inability to install py38-qscintilla-qt5, py38-pyqt5-chart, and py38-pyqt5-webengine from scratch and inability to import qscintilla with py38-qscintilla-qt5 @2.11.5_0 are related or not. Just providing empirical observations.

Thank you and sorry for the burden.

comment:6 Changed 4 years ago by JD-Veiga

Summary: Unable to install py38-qscintilla-qt5, py38-pyqt5-chart, py38-pyqt5-webengineUnable to install py38-qscintilla-qt5, py38-pyqt5-chart, py38-pyqt5-webengine from scratch (fresh installation)

comment:7 Changed 3 years ago by reneeotten (Renee Otten)

Cc: reneeotten added

this looks very similar to 62515; as I noted there all these ports have been updated and/or the build-system was changed to what upstream recommends. Please give it a try again and report back here; it builds locally for me on macOS 10.15 and also the buildbots seem fine with it, so hopefully this is resolved now.

comment:8 Changed 3 years ago by michaelld (Michael Dickens)

I'll send what Renee wrote: After updating to the latest dports GIT, I did updates and everything moved over to the new install method and ports correctly. I strongly believe that the recent updates will have fixed this issue. Please sudo port selfupdate or sudo port sync and clear out the old builds and try these again.

comment:9 Changed 3 years ago by JD-Veiga

FYI

I did not have any problem when upgrading to latest (current) version of pyqt5 packages. So I think that this issue has been solved with most recent commits.

Thank you.

comment:10 Changed 3 years ago by reneeotten (Renee Otten)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.