BVP

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

BVP

lorenzo bolla
Hi all!

Is there any package to solve Boundary Value Problems with Scipy? I'm thinking to something like Matlab's bvp4c.
I found this, by Pauli Virtanen: http://www.elisanet.fi/ptvirtan/software/bvp/index.html, which is a wrapper to COLNEW, but it fails to compile/install.
Here is the installation error:

----------------------
$> python setup.py install

setup.py:17: UserWarning:                                          
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting  
    the ATLAS environment variable.                                
  warnings.warn(AtlasNotFoundError.__doc__)                        
Traceback (most recent call last):                                 
  File "setup.py", line 63, in <module>                            
    setup(**configuration(top_path='').todict())                   
  File "setup.py", line 24, in configuration                       
    info = __import__('bvp/info')                                  
ImportError: No module named bvp/info                              

----------------------

It looks like a problem with bvp/info, so I get rid of that instruction, but I have a compilation problem:

----------------------

$ python setup.py install                                                                  
setup.py:17: UserWarning:                                                                  
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.                        
    Directories to search for the libraries can be specified in the                        
    numpy/distutils/site.cfg file (section [atlas]) or by setting                          
    the ATLAS environment variable.                                                        
  warnings.warn(AtlasNotFoundError.__doc__)                                                
non-existing path in '.': 'lib/colnew.pyf'                                                 
non-existing path in '.': 'lib/mus.pyf'                                                    
Warning: Assuming default configuration (.\bvp\tests/{setup_tests,setup}.py was not found) 
Appending bvp.tests configuration to bvp                                                   
Ignoring attempt to set 'name' (from 'bvp' to 'bvp.tests')                                 
running install                                                                            
running build                                                                              
running config_cc                                                                          
unifing config_cc, config, build_clib, build_ext, build commands --compiler options        
running config_fc                                                                          
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options       
running build_src                                                                          
building extension "bvp._colnew" sources                                                   
  target build\src.win32-2.5\lib\_colnewmodule.c does not exist:                           
   Assuming _colnewmodule.c was generated with "build_src --inplace" command.              
error: 'lib\\_colnewmodule.c' missing                                                      

----------------------

Any hints?
Thank you very much!!
Lorenzo



--
Lorenzo Bolla, Ph. D.
[hidden email]
http://lorenzobolla.emurse.com/
_______________________________________________
SciPy-user mailing list
[hidden email]
http://projects.scipy.org/mailman/listinfo/scipy-user
Reply | Threaded
Open this post in threaded view
|

Re: BVP

Michael McNeil Forbes-3
Hi Lorenzo,

On 11 Apr 2008, at 6:11 AM, lorenzo bolla wrote:

Hi all!

Is there any package to solve Boundary Value Problems with Scipy? I'm thinking to something like Matlab's bvp4c.
I found this, by Pauli Virtanen: http://www.elisanet.fi/ptvirtan/software/bvp/index.html, which is a wrapper to COLNEW, but it fails to compile/install.
Here is the installation error:

----------------------
$> python setup.py install

setup.py:17: UserWarning:                                          
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting  
    the ATLAS environment variable.                                
  warnings.warn(AtlasNotFoundError.__doc__)                        
Traceback (most recent call last):                                 
  File "setup.py", line 63, in <module>                            
    setup(**configuration(top_path='').todict())                   
  File "setup.py", line 24, in configuration                       
    info = __import__('bvp/info')                                  
ImportError: No module named bvp/info                              

----------------------

I just fixed this by adding:

sys.path.insert(0,'bvp')
then changing the line to
info = __import__('info')

(Does anyone know a better way of allowing the setup file to refer to the info file which is down a path?)

After this, running

python setup.py build
python setup.py install

works for me on Mac OS X and Linux.  I do not have a windows box.  The missing file does get generated (presumably by f2c).  What versions of bvp and numpy are you using?  (Were you able to build numpy, or did you use a binary?)

Michael.

It looks like a problem with bvp/info, so I get rid of that instruction, but I have a compilation problem:

----------------------

$ python setup.py install                                                                  
setup.py:17: UserWarning:                                                                  
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.                        
    Directories to search for the libraries can be specified in the                        
    numpy/distutils/site.cfg file (section [atlas]) or by setting                          
    the ATLAS environment variable.                                                        
  warnings.warn(AtlasNotFoundError.__doc__)                                                
non-existing path in '.': 'lib/colnew.pyf'                                                 
non-existing path in '.': 'lib/mus.pyf'                                                    
Warning: Assuming default configuration (.\bvp\tests/{setup_tests,setup}.py was not found) 
Appending bvp.tests configuration to bvp                                                   
Ignoring attempt to set 'name' (from 'bvp' to 'bvp.tests')                                 
running install                                                                            
running build                                                                              
running config_cc                                                                          
unifing config_cc, config, build_clib, build_ext, build commands --compiler options        
running config_fc                                                                          
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options       
running build_src                                                                          
building extension "bvp._colnew" sources                                                   
  target build\src.win32-2.5\lib\_colnewmodule.c does not exist:                           
   Assuming _colnewmodule.c was generated with "build_src --inplace" command.              
error: 'lib\\_colnewmodule.c' missing                                                      

----------------------


_______________________________________________
SciPy-user mailing list
[hidden email]
http://projects.scipy.org/mailman/listinfo/scipy-user
Reply | Threaded
Open this post in threaded view
|

Re: BVP

Pauli Virtanen-3
In reply to this post by lorenzo bolla
Hi Lorenzo,

Fri, 11 Apr 2008 15:11:35 +0200, lorenzo bolla wrote:
> Is there any package to solve Boundary Value Problems with Scipy? I'm
> thinking to something like Matlab's bvp4c. I found this, by Pauli
> Virtanen:
> http://www.elisanet.fi/ptvirtan/software/bvp/index.html, which is a
> wrapper to COLNEW, but it fails to compile/install. Here is the
> installation error:

I released 0.2.2 which should fix these bugs. (If not, I guess it's time
for 0.2.3 ...)

> $> python setup.py install
[clip]
> ImportError: No module named bvp/info

Fixed.

[clip]
> building extension "bvp._colnew"
> sources
>   target build\src.win32-2.5\lib\_colnewmodule.c does not
> exist:
>    Assuming _colnewmodule.c was generated with "build_src --inplace"
> command.
> error: 'lib\\_colnewmodule.c' missing

Brown paper bag time. The 0.2.1.tar.gz is missing the .pyf files: somehow
they don't get included by distutils when setuptools is imported, even
though they are in the sources list. Anyway, this is fixed in 0.2.2.

--
Pauli Virtanen

_______________________________________________
SciPy-user mailing list
[hidden email]
http://projects.scipy.org/mailman/listinfo/scipy-user
Reply | Threaded
Open this post in threaded view
|

Re: BVP

lorenzo bolla
thank you pauli!
I'll give it a try on monday!
L.

On Fri, Apr 11, 2008 at 10:31 PM, Pauli Virtanen <[hidden email]> wrote:
Hi Lorenzo,

Fri, 11 Apr 2008 15:11:35 +0200, lorenzo bolla wrote:
> Is there any package to solve Boundary Value Problems with Scipy? I'm
> thinking to something like Matlab's bvp4c. I found this, by Pauli
> Virtanen:
> http://www.elisanet.fi/ptvirtan/software/bvp/index.html, which is a
> wrapper to COLNEW, but it fails to compile/install. Here is the
> installation error:

I released 0.2.2 which should fix these bugs. (If not, I guess it's time
for 0.2.3 ...)

> $> python setup.py install
[clip]
> ImportError: No module named bvp/info

Fixed.

[clip]
> building extension "bvp._colnew"
> sources
>   target build\src.win32-2.5\lib\_colnewmodule.c does not
> exist:
>    Assuming _colnewmodule.c was generated with "build_src --inplace"
> command.
> error: 'lib\\_colnewmodule.c' missing

Brown paper bag time. The 0.2.1.tar.gz is missing the .pyf files: somehow
they don't get included by distutils when setuptools is imported, even
though they are in the sources list. Anyway, this is fixed in 0.2.2.

--
Pauli Virtanen

_______________________________________________
SciPy-user mailing list
[hidden email]
http://projects.scipy.org/mailman/listinfo/scipy-user



--
Lorenzo Bolla
[hidden email]
http://lorenzobolla.emurse.com/
_______________________________________________
SciPy-user mailing list
[hidden email]
http://projects.scipy.org/mailman/listinfo/scipy-user