Zhiwen Liang | 16 Jul 23:32

Re: Problems on Installing New Fipy


Hi,

On Wed, Jul 16, 2008 at 5:04 PM, Jonathan Guyer <guyer-R3+/ord2DXQ@public.gmane.org> wrote:


On Jul 16, 2008, at 4:37 PM, Zhiwen Liang wrote:

I tried the diffusion example but got the following error:
:
:



 "matplotlibViewer: 'module' object has no attribute 'ion'"

leads me to believe that you have a module (or something) called "pylab" somewhere on your PYTHONPATH that is confusing matters. What does

 $ ls -l ~/Library/Python/2.3/site-packages/

return?
 
 $ ls -l ~/Library/Python/2.3/site-packages/ returns the following:

 -rw-r--r--    1 liangz  liangz   214 Jul 16 14:39 easy-install.pth
drwxr-xr-x   19 liangz  liangz   646 Jul 16 14:53 fipy
drwxr-xr-x   10 liangz  liangz   340 Jul 16 14:39 setuptools-0.6c8-py2.3.egg
-rw-r--r--    1 liangz  liangz    29 Jul 16 14:39 setuptools.pth
-rw-r--r--    1 liangz  liangz  2362 Jul 16 14:39 site.py
-rw-r--r--    1 liangz  liangz  2025 Jul 16 14:39 site.pyc

They are just setuptools and fipy that I just installed. But I did find "pylab.py" under another site-packages. And matplotlib is at that same directory. I don't know where it comes from. Maybe it is installed together with matplotlib. 




It would be more convenient to use "stow" to have different versions of the same application and then "stow" the version you like. This will require installing things in a stow directory.

I've never heard of "stow", but found this:

 http://www.velocityreviews.com/forums/t331589-is-there-any-way-to-make-python-play-well-with-stow.html


I've used FiPy with virtualenv and it works fine (I will do some confirmatory tests, however)


Thank you very much. I didn't know that before.

Thanks again,
Zhiwen 


Gmane