21 Jul 16:04
Re: Problems on Installing New Fipy
From: Daniel Wheeler <daniel.wheeler2@...>
Subject: Re: Problems on Installing New Fipy
Newsgroups: gmane.comp.python.fipy
Date: 2008-07-21 14:04:02 GMT
Subject: Re: Problems on Installing New Fipy
Newsgroups: gmane.comp.python.fipy
Date: 2008-07-21 14:04:02 GMT
What happens when you do "python -c 'from numpy.oldnumeric import Int8'"? What happens when you do "python -c 'from numpy import Int8'"? What happens when you do "python -c 'import numpy; print numpy.__version__'"? On Sat, Jul 19, 2008 at 11:44 AM, Zhiwen Liang <lzwpurdue@...> wrote: > Hi Jon, > When I "import pylab", I got: >>>> import pylab > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/sw/lib/python2.3/site-packages/pylab.py", line 1, in ? > from matplotlib.pylab import * > File "/sw/lib/python2.3/site-packages/matplotlib/pylab.py", line 196, in ? > import cm > File "/sw/lib/python2.3/site-packages/matplotlib/cm.py", line 5, in ? > import colors > File "/sw/lib/python2.3/site-packages/matplotlib/colors.py", line 33, in ? > from numerix import array, arange, take, put, Float, Int, where, \ > File "/sw/lib/python2.3/site-packages/matplotlib/numerix/__init__.py", > line 68, in ? > from _sp_imports import nx, infinity > File "/sw/lib/python2.3/site-packages/matplotlib/numerix/_sp_imports.py", > line 1, in ? > from numpy import Int8, UInt8, \ > ImportError: cannot import name Int8 > So I could not do "pylab.__file__". I confirmed there is only this pylab.py > in my computer because if I uninstall matplotlib, there will be no module > called pylab. > I agreed that python 2.3 is too old. Matplotlib now only releases new > versions for python 2.4 and higher. > Thanks, > Zhiwen > > On Fri, Jul 18, 2008 at 10:52 PM, Jonathan Guyer <guyer@...> wrote: >> >> >> On Jul 18, 2008, at 4:00 PM, Zhiwen Liang wrote: >> >>> So that's what Line 102-103 in viewers/__init__.py do. >> >> Yes, I know. I wrote it. Can I suggest that both of our time would be >> better spent if you sent me the specific output that I asked for rather than >> trying figure out and then explain to me how my own code works? >> >> >>> But I am not sure why "remove" will use "__nonzero__". >> >> Nor am I. Python 2.4 and 2.5 don't do this. I suspect that it was a bug, >> or at least a bad design, in Python 2.3. As Daniel has said, Python 2.3 is >> quite old (3 1/2 years, now) and you would likely benefit in many ways from >> not using something so obsolete. >> >>> I tried "vars.remove(var)" in an older version of fipy and it works fine. >> >> Variable.__nonzero__() was only introduced about a month ago. >> >>> I am still checking my other installation problems to see if I made some >>> stupid mistakes. >> >> Again. Please, Please, *PLEASE* send me the output that I asked for. What >> does >> >> >>> import pylab >> >>> pylab.__file__ >> >> output? >> >> Seriously. I want to know. >> >> > > -- -- Daniel Wheeler
RSS Feed