Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#64910 closed defect (invalid)

py310-spyder: Cannot mix incompatible Qt library (5.15.2) with this library (5.15.3)

Reported by: mf2k (Frank Schima) Owned by: reneeotten (Renee Otten)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: chrstphrchvz (Christopher Chavez)
Port: py-spyder

Description

Now I'm seeing this strange runtime error when attempting to launch spyder.

$ spyder
The available OpenGL surface format was either not version 3.2 or higher or not a Core Profile.
Chromium on macOS will fall back to software rendering in this case.
Hardware acceleration and features such as WebGL will not be available.
Cannot mix incompatible Qt library (5.15.2) with this library (5.15.3)
Abort trap: 6

It seems to be Qt5 related.

$ port installed qt5-*
The following ports are currently installed:
  qt5-qt3d @5.15.3_0 (active)
  qt5-qtbase @5.15.3_0+openssl (active)
  qt5-qtconnectivity @5.15.3_0 (active)
  qt5-qtdeclarative @5.15.3_0 (active)
  qt5-qtgamepad @5.15.3_0 (active)
  qt5-qtgraphicaleffects @5.15.3_0 (active)
  qt5-qtimageformats @5.15.3_0 (active)
  qt5-qtlocation @5.15.3_0 (active)
  qt5-qtmacextras @5.15.3_0 (active)
  qt5-qtmultimedia @5.15.3_0 (active)
  qt5-qtnetworkauth @5.15.3_0 (active)
  qt5-qtquickcontrols @5.15.3_0 (active)
  qt5-qtquickcontrols2 @5.15.3_0 (active)
  qt5-qtremoteobjects @5.15.3_0 (active)
  qt5-qtscript @5.15.3_0 (active)
  qt5-qtscxml @5.15.3_0 (active)
  qt5-qtsensors @5.15.3_0 (active)
  qt5-qtserialbus @5.15.3_0 (active)
  qt5-qtserialport @5.15.3_0 (active)
  qt5-qtspeech @5.15.3_0 (active)
  qt5-qtsvg @5.15.3_0 (active)
  qt5-qttools @5.15.3_0 (active)
  qt5-qttranslations @5.15.3_0 (active)
  qt5-qtwebchannel @5.15.3_0 (active)
  qt5-qtwebengine @5.15.8_0 (active)
  qt5-qtwebengine-gn @20201210_0 (active)
  qt5-qtwebsockets @5.15.3_0 (active)
  qt5-qtxmlpatterns @5.15.3_0 (active)
  qt5-sqlite-plugin @5.15.3_0 (active)

Change History (10)

comment:1 Changed 2 years ago by reneeotten (Renee Otten)

hi Frank, sorry for the trouble... but it seems to work fine for me. The only difference I can see from the list you provided is that you have qt5-qtwebengine-gn installed; I don't know what that is and why you would need it (I don't have it installed). So please try and uninstall that and give it another go. Additionally, can you please provide the output of port -v installed py310-pyqt5\*.

comment:2 Changed 2 years ago by mf2k (Frank Schima)

Hi Rene. Thank you.

$ port -v installed py310-pyqt5
The following ports are currently installed:
  py310-pyqt5 @5.15.6_0 (active) requested_variants='' platform='darwin 21' archs='x86_64' date='2022-02-14T07:50:44-0700'

I don't know why I have it installed either. I tried uninstalling it and that does not seem to help.

$ sudo port uninstall qt5-qtwebengine-gn
--->  Deactivating qt5-qtwebengine-gn @20201210_0
--->  Cleaning qt5-qtwebengine-gn
--->  Uninstalling qt5-qtwebengine-gn @20201210_0
--->  Cleaning qt5-qtwebengine-gn

$ spyder
The available OpenGL surface format was either not version 3.2 or higher or not a Core Profile.
Chromium on macOS will fall back to software rendering in this case.
Hardware acceleration and features such as WebGL will not be available.
Cannot mix incompatible Qt library (5.15.2) with this library (5.15.3)
Abort trap: 6

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

hhmm.... okay, you must have py310-pyqt5-webengine installed as well - right? Please post the output of port -v installed py310-pyqt5\* and not only py310-pyqt5. Also, it looks like you're using macOS Monterey - I'm still on Catalina and there is appears to work fine, did you rebuild the py310-pyqt5-*` from source or did you get the binaries?

Try starting it in "safe mode" and with debugging output on: spyder-3.10 --safe-mode --debug-info verbose, if that doesn't work then paste the output here.

comment:4 Changed 2 years ago by mf2k (Frank Schima)

$ port -v installed py310-pyqt5\*
The following ports are currently installed:
  py310-pyqt5 @5.15.6_0 (active) requested_variants='' platform='darwin 21' archs='x86_64' date='2022-02-14T07:50:44-0700'
  py310-pyqt5-sip @12.9.1_0 (active) requested_variants='' platform='darwin 21' archs='x86_64' date='2022-02-14T07:50:39-0700'
  py310-pyqt5-webengine @5.15.5_0 (active) requested_variants='' platform='darwin 21' archs='x86_64' date='2022-02-14T07:50:46-0700'

No go.

$ spyder-3.10 --safe-mode --debug-info verbose
The available OpenGL surface format was either not version 3.2 or higher or not a Core Profile.
Chromium on macOS will fall back to software rendering in this case.
Hardware acceleration and features such as WebGL will not be available.
Cannot mix incompatible Qt library (5.15.2) with this library (5.15.3)
Abort trap: 6

comment:5 Changed 2 years ago by mf2k (Frank Schima)

Oh yes. macOS Monterey. Xcode 12.3. I have no idea if mine built from source, but likely not.

Last edited 2 years ago by mf2k (Frank Schima) (previous) (diff)

comment:6 Changed 2 years ago by mf2k (Frank Schima)

Rebuilding all qt5 ports from source did not help.

comment:7 Changed 2 years ago by mf2k (Frank Schima)

A complete uninstall/reinstall of Xcode and Macports fixed it.

comment:8 Changed 2 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: assignedclosed

comment:9 in reply to:  1 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

Replying to reneeotten:

…you have qt5-qtwebengine-gn installed; I don't know what that is and why you would need it (I don't have it installed).

qt5-qtwebengine-gn is the version of GN bundled with qtwebengine built as a separate port, defined as a subport of gn-devel. It is only used to build qt5-qtwebengine (so someone likely only has it installed due to building qt5-qtwebengine locally). I created it to have better control over compiler selection/ccache support for the bundled GN, and to avoid qt5-qtwebengine building the bundled GN from scratch with every build. Feedback on this approach is appreciated (including whether this is a bad idea; upstream says to use Qt 6.2/6.3 if building GN separately is desired).

comment:10 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added
Note: See TracTickets for help on using tickets.