[SciPy-user] problems with python and numpy

Mike Conroy mconroy@uga....
Sat Jun 21 11:54:17 CDT 2008


All- I am having some baffling conflicts between python and numpy that  
seem to have arisen in recent installation. These seem to center around 
the tempfile in the Python Lib
directory.

What happens is that when I open python in an directory other than c:\  
or perhaps c:\python25, and then attempt to load numpy (or pymc which 
also loads numpy) I get:
the following error from tempfile.py
"from random import Random as _Random   ImportError: cannot import name 
Random"

Because things work fine in C:\ and some other directories, I am betting 
this is a path issue. Here is my path in case anyone sees the issue>

PATH=C:\Python25\;c:\Python25\Lib;c:\program 
files\miktex2.5\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;c:\python25;c:\python25\bin;c:\python24\enthought\mingw\bin;c:\python24\enthought\graphviz\bin;c:\program 
files\jedit;C:\Program Files\QuickTime\QTSystem\;C:\Program 
Files\Subversion\bin;C:\MinGW\bin;C:\Program 
Files\Intel\MKL\10.0.1.015\ia64\bin;C:\Program Files\Common 
Files\Intuit\QBPOSSDKRuntime

I have installed the following version of python and packages:

ActivePython-2.5.2.2-win32-x86
numpy-1.1.0-win32-superpack-python2.5
matplotlib-0.98.0.win32-py2.5.
scipy-0.6.0.win32-p3-py2.5
and the latest svn-updated pymc2.0

Thanks for any help. Meantime things work but what a pain to be stuck in 
one director

M




-- 
Dr. Michael J. Conroy
Adjunct Professor and Assistant Unit Leader
Georgia Cooperative Fish and Wildlife Research Unit
Warnell School of Forestry and Natural Resources
University of Georgia
Athens, GA 30602 USA
Off. 3-427 Forestry Building
tel. +706-542-1167
fax +706-542-8356

Unit web page
http://coopunit.forestry.uga.edu/unit_homepage
My web page
http://coopunit.forestry.uga.edu/unit_homepage/Conroy



More information about the SciPy-user mailing list