Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError when launching v1.4.0b1 GUI from CLI #191

Open
wblumberg opened this issue Mar 3, 2020 · 0 comments
Open

TypeError when launching v1.4.0b1 GUI from CLI #191

wblumberg opened this issue Mar 3, 2020 · 0 comments
Labels

Comments

@wblumberg
Copy link
Contributor

wblumberg commented Mar 3, 2020

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 wblumberg changed the title TypeError when launching v1.4.0b1 binary from CLI TypeError when launching v1.4.0b1 GUI from CLI Mar 3, 2020
@wblumberg wblumberg added the bug label Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant