SHARPpy icon indicating copy to clipboard operation
SHARPpy copied to clipboard

TypeError when launching v1.4.0b1 GUI from CLI

Open wblumberg opened this issue 5 years ago • 0 comments

A TypeError appears when launching the v1.4.0b1 GUI from the macOS command line. I'm opening this issue in until the beta is updated so others can fix their SHARPpy installation. This issue sometimes appears in Conda recipes included in the conda-forge and sharppy channels. This issue is fixed in the Andover branch, but the changes have not been propagated to the conda channels. This issue does not impact the SHARPpy Windows or macOS binaries.

Here is the screenshot showing the error: Screen Shot 2020-03-03 at 12 26 24 PM

This error is because the qtpy package SHARPpy is using isn't recognizing properly that PySide2 needs to be used instead of PyQt5. This error can be simply fixed by setting the environment variable QT_API to point to PySide2 (per https://pypi.org/project/QtPy/):

$ export QT_API=pyside2

Launching the GUI from the command line using the sharppy command should work now.

wblumberg avatar Mar 03 '20 17:03 wblumberg