On Sat, Jan 24, 2009 at 3:38 PM, Linda Chen <ch...@mit.edu> wrote:
> Dear matplotlib-users,
>
> I'm having trouble importing pylab and I hope someone can help me. The error
> message is:
>
>
>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> C:\Documents and Settings\Linda>cd desktop\python
>
> C:\Documents and Settings\Linda\Desktop\python>python readdata.py
> Traceback (most recent call last):
>  File "readdata.py", line 1, in <module>
>    import pylab
>  File "C:\Python25\Lib\site-packages\pylab.py", line 1, in <module>
>    from matplotlib.pylab import *
>  File "C:\Python25\Lib\site-packages\matplotlib\__init__.py", line 127, in
> <mod
> ule>
>    import sys, os, tempfile
>  File "C:\python25\lib\tempfile.py", line 33, in <module>
>    from random import Random as _Random
> ImportError: cannot import name Random
>


Any chance there is a directory named "random" in the directory from
which you are running python, eg what does "dir" show right before you
run python?  For example, see

http://www.mail-archive.com/numpy-discuss...@scipy.org/msg14644.html

JDH

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to