-
Notifications
You must be signed in to change notification settings - Fork 110
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
[BUG] name 'PYQT6' is not defined #229
Comments
Hi @jake9wi - thank you so much for providing this information and filling out the form! I'm able to help you pretty easily here. It looks like this is an issue where the qtpy library is anticipating Qt6 is available, and I haven't updated the conda recipe yet to account for that. Would you be able to show me your anaconda environment and the log files? Use the You may also find some success by telling SHARPpy to use Qt5, which can be done via |
I tried setting the env variable as suggested and got the same traceback.
|
I am experiencing the exact same issue as well. |
I was able to reproduce this problem by installing SHARPpy via conda and then running SHARPpy via "conda run sharppy". @jake9wi and @jkrasting - I got past this problem by installing an older version of qtpy (version 1.10.0). You can install version 1.10.0 of qtpy by executing the following command in your conda environment:
If you get prompted to proceed while installing the package, be sure to enter y to proceed. When the install of the older qtpy is finished, try running SHARPpy again. |
Thanks @skovic - I tried this. It no longer throws an exception, but it just hangs on startup. (FYI - I am on an Intel Mac running MacOS Monterey) |
@jkrasting If you look at the .sharppy subdirectory in your home directory, does sharppy.log have any error messages or exceptions present? Also if there is a sharppy-out.txt file, does it have any contents? |
@skovic Setting |
@skovic -Nothing pops out at me. I've attached the |
@jkrasting Looking at the log file, I don’t think that the program is hung. I think what you have is a pop up window that is notifying you that there is a new version available (see log message below); it’s just that the window hasn’t rendered properly.
I see this same message on my Windows 10 system until I select one of the options on the pop up window. Try this:
If you still get a blank window it probably means that there is some sort of incompatibility between your version of Mac OS and one of the conda/python packages. |
Thanks. I tried hitting “enter”, but it didn't work. I have the spinning
rainbow wheel in MacOS, so it appears to be hung.
|
@jkrasting I've been trying to track down this issue myself. It looks like MacOS requires an extra environment variable. A temporary fix is to set this environment variable in the shell before executing SHARPpy.
I'm working on a pull request to fix this issue more permanently. |
Nice find! I’ll give it a try …
|
@keltonhalbert - I can confirm this temporary fix works |
Before submitting an issue to Github about SHARPpy, please follow the below checklist to ensure that your issue can be resolved quickly.
The management team for SHARPpy is a small team of volunteers. Being as thorough as possible with your issue submission will help us help you!
Describe the bug
When starting sharppy it instantly returns with the traceback:
Versioning Information (please complete the following information):
The text was updated successfully, but these errors were encountered: