Skip to content

Commit

Permalink
Merge pull request #75 from mwcraig/better-qt-error
Browse files Browse the repository at this point in the history
qt fails on python 3.8 and up, so raise a better error message
  • Loading branch information
mwcraig committed Feb 17, 2020
2 parents f619021 + f5c2d86 commit e6b5105
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vpython/no_notebook.py
Expand Up @@ -249,6 +249,10 @@ def onClose(self, wasClean, code, reason):
raise RuntimeError('The pyqt browser cannot be used on Windows. '
'Please use the default browser instead by '
'removing set_browser("pyqt") from your code.')
elif sys.version_info.major == 3 and sys.version_info.minor >= 7:
raise RuntimeError('The pyqt browser cannot be used on Python 3.8. '
'Please use the default browser instead by '
'removing set_browser("pyqt") from your code.')


def start_Qapp(port):
Expand Down

0 comments on commit e6b5105

Please sign in to comment.