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

ImportError: PyQt4, PyQt5, PySide or PySide2 are not available for import #9

Closed
bartonhammond opened this issue May 15, 2019 · 1 comment

Comments

@bartonhammond
Copy link

bartonhammond commented May 15, 2019

On Mac 10.14.4

I installed pip install pyforms-gui
I created the example.py file
Am trying the ComputerVisionAlgorithm example

pyforms $ python example.py 
Traceback (most recent call last):
  File "example.py", line 1, in <module>
    from pyforms.basewidget import BaseWidget
  File "/usr/local/lib/python2.7/site-packages/pyforms/__init__.py", line 26, in <module>
    from pyforms_gui.appmanager import start_app
  File "/usr/local/lib/python2.7/site-packages/pyforms_gui/appmanager.py", line 3, in <module>
    from pyforms_gui.controls.control_dockwidget import ControlDockWidget
  File "/usr/local/lib/python2.7/site-packages/pyforms_gui/controls/control_dockwidget.py", line 4, in <module>
    from pyforms_gui.controls.control_emptywidget import ControlEmptyWidget
  File "/usr/local/lib/python2.7/site-packages/pyforms_gui/controls/control_emptywidget.py", line 6, in <module>
    from AnyQt                              import _api
  File "/usr/local/lib/python2.7/site-packages/AnyQt/_api.py", line 100, in <module>
    raise ImportError("PyQt4, PyQt5, PySide or PySide2 are not available for import")
ImportError: PyQt4, PyQt5, PySide or PySide2 are not available for import
@bartonhammond
Copy link
Author

I switched to conda env and then pip install pyforms-gui and the example now runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant