[SciPy-User] Source of the error between computers (version, architecture, etc)

Warren Weckesser warren.weckesser@enthought....
Tue Sep 27 15:16:51 CDT 2011


On Tue, Sep 27, 2011 at 9:42 AM, Sergi Pons Freixes
<sponsfreixes@gmail.com>wrote:

> Hi all,
>
> I have some code that runs perfectly on:
>
> Linux Toshiba-00 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:08:37
> UTC 2011 i686 GNU/Linux
> Python 2.6.5
> Numpy 1.3.0
>
> But on this machine:
>
> Linux mirto 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011
> x86_64 Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz GenuineIntel GNU/Linux
> Python 2.7.2
> Numpy 1.6.1
>
> I'm getting this error:
>
> $ python main.py
> Traceback (most recent call last):
>  File "main.py", line 4, in <module>
>    import aldp
>  File "/home/sergi/Dropbox/doctorat/alfacs/codi/aldp.py", line 6, in
> <module>
>    from string import replace, strip
> ImportError: cannot import name replace
>
> Google hasn't helped much when searching about "ImportError: cannot
> import name replace" and similar queries. To reduce the uncertainty, I
> would like to know if the cause could be the difference in versions of
> the software, a different architecture (32 bits vs 64), or whatever.
> Any clue?
>



On the second machine, is there a file called "string.py" in
/home/sergi/Dropbox/doctorat/alfacs/coda that is not in the corresponding
directory on the first machine?

Warren



> Regards,
> Sergi
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20110927/9189778b/attachment.html 


More information about the SciPy-User mailing list