Skip to content

Commit fdae97d

Browse files
committed
Add error message for PyPy/pyqt combination
1 parent 56cc701 commit fdae97d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vpython/no_notebook.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,12 @@ def onClose(self, wasClean, code, reason):
240240
pass
241241

242242

243+
if platform.python_implementation() == 'PyPy' and _browsertype == 'pyqt':
244+
raise RuntimeError('The pyqt browser cannot be used PyPy. Please use '
245+
'the default browser instead by removing '
246+
'set_browser("pyqt") from your code.')
247+
248+
243249
def start_Qapp(port):
244250
# creates a python browser with PyQt5
245251
# runs qtbrowser.py in a separate process

0 commit comments

Comments
 (0)