[SciPy-dev] New numpy svn ready

Christopher Fonnesbeck chris at trichech.us
Wed Jan 4 16:56:23 CST 2006


On Jan 4, 2006, at 4:52 PM, Pearu Peterson wrote:

>>
>> Perhaps related to my error reported the other day, but numpy also  
>> breaks
>> PyMC via linalg importing:
>>
>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ 
>> site-packages/PyMC/MCMC.py
>>    27
>>    28 # Import scipy functions
>> ---> 29 from scipy import random, linalg
>>       global scipy = undefined
>>       random = None
>>       linalg = undefined
>>    30 # Generalized inverse
>>    31 inverse = linalg.pinv
>>
>> ImportError: cannot import name linalg
>
> Full scipy does not work with numpy yet. We are working on it..

numpy downloaded according to Travis' svn instructions creates  
"numpy" directory, but installs into "scipy" on site-packages.  
Replacing my error-generating import above with:

from scipy corelinalg as linalg

makes my code run perfectly.

C.

--
Christopher J. Fonnesbeck

Population Ecologist, Marine Mammal Section
Fish & Wildlife Research Institute (FWC)
St. Petersburg, FL

Adjunct Assistant Professor
Warnell School of Forest Resources
University of Georgia
Athens, GA

T: 727.235.5570
E: chris at trichech.us


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-dev/attachments/20060104/eabce7a8/attachment.bin 


More information about the Scipy-dev mailing list