ImportError: cannot import name ma
Verfasst: Donnerstag 14. Juni 2012, 08:16
Hallo,
ich habe von http://code.google.com/p/pythonxy/ Pythonxy heruntergeladen und installiert.
Das bedeutet Python 2.7.2, NumPy 1.6.1, SciPy 0.10.1, Matplotlib 1.1.0 + guidata 1.4.2, guiqwt 2.1.6 sind installiert.
Das lief bis gestern auch tadellos, als Entwicklungsumgebung habe ich pythonwin verwendet. Ich weiß nicht, wie das passiert sein kann, jetzt kommt bei "import numpy" die u.a. Fehlermeldung. Ich habe mir den den Systempfad ausgeben lassen, das sieht eigentlich normal aus.
In der spyder-Umgebung läuft alles prima, allerdings muss ich mein Programm von einer anderen Anwendung aus aufrufen und dann funktioniert es nicht. Wäre toll, wenn hier jemand einen Tipp hätte.
Viele Grüße
Karin
Fehlermeldung:
print sys.path
ich habe von http://code.google.com/p/pythonxy/ Pythonxy heruntergeladen und installiert.
Das bedeutet Python 2.7.2, NumPy 1.6.1, SciPy 0.10.1, Matplotlib 1.1.0 + guidata 1.4.2, guiqwt 2.1.6 sind installiert.
Das lief bis gestern auch tadellos, als Entwicklungsumgebung habe ich pythonwin verwendet. Ich weiß nicht, wie das passiert sein kann, jetzt kommt bei "import numpy" die u.a. Fehlermeldung. Ich habe mir den den Systempfad ausgeben lassen, das sieht eigentlich normal aus.
In der spyder-Umgebung läuft alles prima, allerdings muss ich mein Programm von einer anderen Anwendung aus aufrufen und dann funktioniert es nicht. Wäre toll, wenn hier jemand einen Tipp hätte.
Viele Grüße
Karin
Fehlermeldung:
Code: Alles auswählen
Traceback (most recent call last):
File "C:\Python27\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript
exec codeObject in __main__.__dict__
File "C:\Suel\Python\text.py", line 17, in <module>
import numpy
File "C:\Suel\Python\numpy.py", line 3, in <module>
from pylab import *
File "C:\Python27\lib\site-packages\pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "C:\Python27\lib\site-packages\matplotlib\__init__.py", line 133, in <module>
from matplotlib.rcsetup import (defaultParams,
File "C:\Python27\lib\site-packages\matplotlib\rcsetup.py", line 19, in <module>
from matplotlib.colors import is_color_like
File "C:\Python27\lib\site-packages\matplotlib\colors.py", line 53, in <module>
from numpy import ma
ImportError: cannot import name ma
Code: Alles auswählen
'C:\\Suel\\Python', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27\\Lib\\site-packages\\pythonwin', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages', 'C:\\Python27\\lib\\site-packages\\PIL', 'C:\\Python27\\lib\\site-packages\\win32', 'C:\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode', 'C:\\Suel\\Python', 'C:\\Python27\\Lib\\site-packages\\matplotlib'