Closed sezick closed 4 years ago
Hi Stephanie, thanks for putting together a thorough bug report. I'm going to modify the title to be a little more descriptive if that's okay. This is quite an interesting bug. SHARPpy should be defaulting to PySide2 and not PySide. From the screenshot you have PySide2 installed.
I just looked at the documentation, and I think it needs to be updated. It's very likely that's the source of our problem. There's a discrepancy between the documentation on the website and the latest version that I don't understand, and might be a symptom of something breaking in our deployment workflow. Try installing SHARPpy into a new environment just doing conda install -c conda-forge sharppy
. That should get v1.4.0 installed.
From your environment, can you see if you can do a import PySide2
from the Python prompt?
Yes, I can import PySide2, but I cannot import qtpy. I get the same error regarding PySide & qtpy bindings. See attached screenshot.
Hi Stephanie, thanks for putting together a thorough bug report. I'm going to modify the title to be a little more descriptive if that's okay. This is quite an interesting bug. SHARPpy should be defaulting to PySide2 and not PySide. From the screenshot you have PySide2 installed.
I just looked at the documentation, and I think it needs to be updated. It's very likely that's the source of our problem. There's a discrepancy between the documentation on the website and the latest version that I don't understand, and might be a symptom of something breaking in our deployment workflow. Try installing SHARPpy into a new environment just doing
conda install -c conda-forge sharppy
. That should get v1.4.0 installed.From your environment, can you see if you can do a
import PySide2
from the Python prompt?
Hi Stephanie - What about installing sharppy from conda-forge into a brand new environment? Did you try that yet?
HI Greg, Sorry I should have stated that I installed sharppy into a brand new environment, and now I have v1.4.0 installed. I am still encountering the same error with qtpy shown above.
I just upgraded my OS to macOS Catalina (10.15.4) and SharpPy is working just fine... thanks for your help!
Hi,
Describe the bug I'm having an issue with running sharppy, after having installed it using anaconda package managers. I followed the installation instructions in the documentation by installing into its own Anaconda environment.
It seems as though there is an issue with the pyside version or installation, perhaps similar to the resolved issue #103, and perhaps the qtpy version as well.
To Reproduce Here is the error I get when I attempt to run sharppy from the command line:
(sharppy-env) sezick@Stephanies-MacBook-Pro-3:~$ sharppy Traceback (most recent call last): File "/opt/anaconda3/envs/sharppy-env/lib/python3.7/site-packages/qtpy/init.py", line 204, in
from PySide import version as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError: No module named 'PySide'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/anaconda3/envs/sharppy-env/bin/sharppy", line 7, in
from runsharp.full_gui import main
File "/opt/anaconda3/envs/sharppy-env/lib/python3.7/site-packages/runsharp/full_gui.py", line 1, in
from qtpy.QtGui import *
File "/opt/anaconda3/envs/sharppy-env/lib/python3.7/site-packages/qtpy/init.py", line 210, in
raise PythonQtError('No Qt bindings could be found')
Versioning Information (please complete the following information):
Attached screen shot shows (part of) the Anaconda environment.
Thanks, Stephanie