gphoton-tools / ggui

gPhoton glue user interface.
BSD 3-Clause "New" or "Revised" License
4 stars 0 forks source link

Import error in config.py #6

Closed scfleming closed 7 years ago

scfleming commented 7 years ago

ImportError: ('Error loading config file /Users/fleming/Work/GALEX/gPhoton/gphoton-tools/ggui/config.py:\nImporting PyQt5 forbidden by glue.external.qt'

In v0.2.2, in my environment I get this error. This might be related to this issue: http://glueviz.org/en/stable/developer_guide/qt_development.html

I.e., don't specify a specific PyQt in imports...

scfleming commented 7 years ago

E.g., this seems to work without error:

from qtpy.QtWidgets import QFileDialog

duytnguyendtn commented 7 years ago

QtPy appears to be an abstraction layer for API calls to PyQt. This is to maintain compatibility with any updates to the Qt libraries. Changed in local and will push after addressing Issue #7