vasole / pymca

PyMca Toolkit git repository
Other
60 stars 54 forks source link

bug in compatibility layer ... #11

Closed kif closed 10 years ago

kif commented 10 years ago

In [1]: from PyMca5.PyMca import MaskImageWidget

API 1 -> Console widget not available

ImportError Traceback (most recent call last)

in () ----> 1 from PyMca5.PyMca import MaskImageWidget /usr/lib/python2.7/dist-packages/PyMca5/PyMcaGui/plotting/MaskImageWidget.py in () 32 import numpy 33 from PyMca5.PyMcaGraph.ctools import pnpoly ---> 34 from . import RGBCorrelatorGraph 35 from . import ColormapDialog 36 qt = RGBCorrelatorGraph.qt /usr/lib/python2.7/dist-packages/PyMca5/PyMcaGui/plotting/RGBCorrelatorGraph.py in () 36 from PyMca5.PyMcaGui import PyMcaQt as qt 37 from .PyMca_Icons import IconDict ---> 38 from . import PyMcaPrintPreview 39 from PyMca5.PyMcaCore import PyMcaDirs 40 /usr/lib/python2.7/dist-packages/PyMca5/PyMcaGui/plotting/PyMcaPrintPreview.py in () 29 **copyright** = "European Synchrotron Radiation Facility, Grenoble, France" 30 import sys ---> 31 from .. import PyMcaQt as qt 32 33 DEBUG = 0 ImportError: cannot import name PyMcaQt
vasole commented 10 years ago

Thanks. Fixed. The compatibility layer for widgets was working and therefore it was not noticed before (from PyMca5.PyMcaGui import MaskImageWidget was working)