On Tue, Oct 13, 2009 at 7:15 AM, Mike Hansen <mhan...@gmail.com> wrote:
>
> Hello,
>
> On Tue, Oct 13, 2009 at 9:11 PM, Ajay Rawat <ajay.rawa...@gmail.com> wrote:
>> My question is can fipy run on sage?
>
> You should just be able to download fipy, extract it, and then run
> "sage -python setup.py install" on the setup.py file that comes with
> fipy.
>
> --Mike

No, those generic instructions do not work (I figured I would try
before answering that email).   The instructions don't work because
fipy has "pysparse" as a required dependency.

wget http://matforge.org/fipy/downloader/download/file/34
tar xf FiPy-2.0.2.tar.gz
cd FiPy-2.0.2
sage -python setup.py install
...
Extracting FiPy-2.0.2-py2.6.egg to
/scratch/wstein/build/sage-4.1.1/local/lib/python2.6/site-packages
SyntaxError: ('invalid syntax',
('/scratch/wstein/build/sage-4.1.1/local/lib/python2.6/site-packages/FiPy-2.0.2-py2.6.egg/fipy/viewers/gnuplotViewer/gnuplot1DViewer.py',
76, 52, "
with='lines'),)\n"))

...
!!!!!!
The required module(s) ['pysparse'] cannot be loaded.
FiPy will not work properly until these modules are installed.

--

Also, "with" is used in part of FiPY, which is a reserved word in
Python 2.6 (i.e., evidently nobody has ever installed FiPy
successfully in Python 2.6...?).

Anyway, getting pysparse:

wget 
http://downloads.sourceforge.net/project/pysparse/pysparse/1.1/pysparse-1.1.tar.gz?use_mirror=voxel

cd pysparse-1.1
sage -python setup.py install

This works.  So then I reinstall FiPY

cd ../FiPy-2.0.2

sage -python setup.py install

Then start sage:

sage: import fipy
....
ImportError: Could not import any solver package. If you are using
Trilinos, make sure you have all of the necessary Trilinos packages
installed - Epetra, EpetraExt, AztecOO, Amesos, ML, and IFPACK.

And at this point I'm giving up.

But yes, if somebody has sufficient patience I see no reason why one
couldn't use fipy with Sage.

Maybe Ondrej Certik can comment, since "FiPy is an object oriented,
partial differential equation (PDE) solver, written in Python , based
on a standard finite volume (FV) approach", and that sounds like his
sort of thing.

 -- William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to