LUK ShunTim | 17 Jul 13:08
Picon

Re: Problems on Installing New Fipy


Zhiwen Liang wrote:
> Hi,
> 
> On Wed, Jul 16, 2008 at 3:28 PM, Jonathan Guyer <guyer@... 
> <mailto:guyer@...>> wrote:
> 
> 
> 
>     On Jul 16, 2008, at 3:14 PM, Zhiwen Liang wrote:
> 
>         Thank you very much for providing the information. I used the
>         patch and now I can install fipy. I think except for the bug in
>         setuptools, my biggest problem was I tried to install fipy in a
>         directory that setuptools does not like. Please see:
> 
>         http://peak.telecommunity.com/DevCenter/EasyInstall#mac-os-x-user-installation
> 
>         However, if I install fipy in
>         ~/Library/Python/2.3/site-packages/, as required, I have problem
>         with my other modules.
> 
> 
>     What problems? What other modules?
> 
> I tried the diffusion example but got the following error:
> 
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File 
> "/Users/liangz/Library/Python/2.3/site-packages/fipy/viewers/__init__.py", 
> line 112, in make
>     raise ImportError, "Failed to import a viewer: %s" % str(errors)        
> ImportError: Failed to import a viewer: ['gistViewer: The truth value of 
> an array with more than one element is ambiguous. Use a.any() or 
> a.all()', 'gnuplotViewer: The truth value of an array with more than one 
> element is ambiguous. Use a.any() or a.all()', "matplotlibViewer: 
> 'module' object has no attribute 'ion'", 'mayaviViewer: Mayavi does not 
> display useful 1D data', "multiViewer: 'module' object has no attribute 
> 'make'", "tsvViewer: 'module' object has no attribute 'make'"]
> 
> This error will appear whenever I tried "viewers.make". This might not 
> be relevant to the installation problem but it never happened to me before. 
> 
> 
> 
>         I really hope that I can install fipy in the place I want.
> 
> 
>     Which is where?

Hello,

I've not used mac os at all but your best guide of installing python 
modules (in non-standard places) is probably

Installing Python Modules
http://docs.python.org/inst/inst.html
		
And easy install respects distutils config files. You may want to setup 
a personal config file and modify PYTHONPATH.

Regards,
ST
--


Gmane