scipy 0.8 + numpy 1.5 Problem
Verfasst: Montag 13. September 2010, 22:23
Hallo alle zusammen,
im Rahmen eines "updates" der SuSe11.3 Distribution wurde numpy 1.5 installiert (vorher numpy 1.3)
Seitdem bekommen ich beim Import von "scipy.stats" eine Fehlermeldung (siehe unten). Versuchsweise habe ich den Source Code von scipy0.8 kompiliert und installiert. Dies bring leider keine Verbesserung.
Interessant an der Fehlermeldung sind eigentlich nur die letzten beiden Zeilen, aber leider kann ich relativ wenig damit anfangen.
Das Problem ist definitv erst nach dem "update" auf numpy 1.5 entstanden.
Im Prinzip benötige ich von "scipy.stats" als einziges die Funktion "scipy.stats.linregress()". Gibt es für diese Funktion eventuell einen Ersatz. Dann könnte ich komplett auf den Import von "scipy.stats" verzichten
Traceback (most recent call last):
File "/home/spiele/Python/DQE/src/MTF_Test.py", line 6, in <module>
from DQE.Funktionen._MTF import _MTF
File "/home/spiele/Python/DQE/src/DQE/Funktionen/_MTF.py", line 94, in <module>
from DQE.Funktionen._MTF_Berechnung import _MTF_Berechnung
File "/home/spiele/Python/DQE/src/DQE/Funktionen/_MTF_Berechnung.py", line 68, in <module>
import scipy.stats as spstats
File "/usr/lib64/python2.6/site-packages/scipy/stats/__init__.py", line 7, in <module>
from stats import *
File "/usr/lib64/python2.6/site-packages/scipy/stats/stats.py", line 203, in <module>
from morestats import find_repeats #is only reference to scipy.stats
File "/usr/lib64/python2.6/site-packages/scipy/stats/morestats.py", line 7, in <module>
import distributions
File "/usr/lib64/python2.6/site-packages/scipy/stats/distributions.py", line 27, in <module>
import vonmises_cython
File "numpy.pxd", line 30, in scipy.stats.vonmises_cython (scipy/stats/vonmises_cython.c:2939)
ValueError: numpy.dtype does not appear to be the correct type object
im Rahmen eines "updates" der SuSe11.3 Distribution wurde numpy 1.5 installiert (vorher numpy 1.3)
Seitdem bekommen ich beim Import von "scipy.stats" eine Fehlermeldung (siehe unten). Versuchsweise habe ich den Source Code von scipy0.8 kompiliert und installiert. Dies bring leider keine Verbesserung.
Interessant an der Fehlermeldung sind eigentlich nur die letzten beiden Zeilen, aber leider kann ich relativ wenig damit anfangen.
Das Problem ist definitv erst nach dem "update" auf numpy 1.5 entstanden.
Im Prinzip benötige ich von "scipy.stats" als einziges die Funktion "scipy.stats.linregress()". Gibt es für diese Funktion eventuell einen Ersatz. Dann könnte ich komplett auf den Import von "scipy.stats" verzichten
Traceback (most recent call last):
File "/home/spiele/Python/DQE/src/MTF_Test.py", line 6, in <module>
from DQE.Funktionen._MTF import _MTF
File "/home/spiele/Python/DQE/src/DQE/Funktionen/_MTF.py", line 94, in <module>
from DQE.Funktionen._MTF_Berechnung import _MTF_Berechnung
File "/home/spiele/Python/DQE/src/DQE/Funktionen/_MTF_Berechnung.py", line 68, in <module>
import scipy.stats as spstats
File "/usr/lib64/python2.6/site-packages/scipy/stats/__init__.py", line 7, in <module>
from stats import *
File "/usr/lib64/python2.6/site-packages/scipy/stats/stats.py", line 203, in <module>
from morestats import find_repeats #is only reference to scipy.stats
File "/usr/lib64/python2.6/site-packages/scipy/stats/morestats.py", line 7, in <module>
import distributions
File "/usr/lib64/python2.6/site-packages/scipy/stats/distributions.py", line 27, in <module>
import vonmises_cython
File "numpy.pxd", line 30, in scipy.stats.vonmises_cython (scipy/stats/vonmises_cython.c:2939)
ValueError: numpy.dtype does not appear to be the correct type object