Re: bvp_solver

207 views
Skip to first unread message

John Salvatier

unread,
May 3, 2014, 6:23:58 PM5/3/14
to Venkat Chandrasekhar वैंकट चन्द्रशेखर, scikits-bvp solver
I haven't tried it with python 3.4. That's a funny error because, solver is right there in the same directory (https://github.com/jsalvatier/scikits.bvp_solver/tree/master/scikits/bvp_solver). Must be a python 3 change? Did you build the package yourself? 


On Sat, May 3, 2014 at 9:08 AM, Venkat Chandrasekhar वैंकट चन्द्रशेखर <v-chand...@northwestern.edu> wrote:
Dear Dr. Salvatier,

I am trying to install scikits.bvp_solver on my python installation on two different machines, but keep getting the same error on trying to import it into a python session.  On trying to import, I get the following error (this is from a terminal in a python shell):

>>> import scikits.bvp_solver
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/scikits.bvp_solver-1.1-py3.4-macosx-10.6-intel.egg/scikits/bvp_solver/__init__.py", line 1, in <module>
ImportError: No module named 'solver'

The error is both in using Pycharm and in command line on a Mac OS X running mavericks (Python 3.4) and with Ubuntu 14.04 with Python 3.4 also running either Pycharm or command line.

I could not find any discussion of this issue on any of the fora.  Any help would be appreciated, as from the documentation, it looks to be a very good package!

Best regards,

Venkat Chandrasekhar
 

comple...@gmail.com

unread,
Nov 11, 2015, 1:04:08 PM11/11/15
to scikits.bvp_solver, v-chand...@northwestern.edu
I get the same error.  I am using python Anaconda 3.4.  Installation was successful but "import scikits.bvp_solver" gives the same error as described.

Cesar Aguilar

b...@sixpearls.com

unread,
Nov 16, 2015, 12:16:38 PM11/16/15
to scikits.bvp_solver, v-chand...@northwestern.edu, comple...@gmail.com
I have the same error when trying to install to Pyzo (a portable distribution of python 3.4 and a number of scientific computing libraries). I just tried installing using the Anaconda version on my machine, which is 2.7.3. Installation is also successful, but importing bvp_solver gives a new error:


Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "scikits\bvp_solver\__init__.py", line 1, in <module>
    from solver import solve
  File "scikits\bvp_solver\solver.py", line 1, in <module>
    import bvp_solverf
ImportError: DLL load failed: The specified module could not be found.

So it looks like something isn't compiling correctly, and I suspect this is what is happening in the Python3 error, which just isn't being as helpful.

Interestingly, when using either version of python and installing using "develop" f2py throws an error about the `void` type, which I assume is an issue with using Fortran 90+?

Skipping type unknown_type
                Creating wrapper for Fortran function "bvp_solver"("bvp_solver")...
                        Constructing wrapper function "bvp_m.bvp_solver"...
get_useparameters: mapping for {'only': 0, 'map': {'': ''}} not impl.get_useparameters: mapping for
{'only': 0, 'map': {'': ''}} not impl.get_useparameters: mapping for {'only': 0, 'map': {'': ''}} no
t impl.get_useparameters: mapping for {'only': 0, 'map': {'': ''}} not impl.get_useparameters: mappi
ng for {'only': 0, 'map': {'': ''}} not impl.get_useparameters: mapping for {'only': 0, 'map': {'':
''}} not impl.get_useparameters: mapping for {'only': 0, 'map': {'': ''}} not impl.get_useparameters
: mapping for {'only': 0, 'map': {'': ''}} not impl.get_useparameters: mapping for {'only': 0, 'map'
: {'': ''}} not impl.get_useparameters: mapping for {'only': 0, 'map': {'': ''}} not impl.get_usepar
ameters: mapping for {'only': 0, 'map': {'': ''}} not impl.get_useparameters: mapping for {'only': 0
, 'map': {'': ''}} not impl.get_useparameters: mapping for {'only': 0, 'map': {'': ''}} not impl.get
_useparameters: mapping for {'only': 0, 'map': {'': ''}} not impl.get_useparameters: mapping for {'o
nly': 0, 'map': {'': ''}} not impl.get_useparameters: mapping for {'only': 0, 'map': {'': ''}} not i
mpl.get_useparameters: mapping for {'only': 0, 'map': {'': ''}} not impl.get_useparameters: mapping
for {'only': 0, 'map': {'': ''}} not impl.get_useparameters: mapping for {'only': 0, 'map': {'': ''}
} not impl.routsign2map: Confused: function bvp_solver has externals ['fsub', 'fsubp', 'bcsub', 'bcs
ubp', 'dfdy', 'dfdyp', 'dbcdy', 'dbcdyp'] but no "use" statement.
getctype: No C-type found in "{'intent': ['out', 'out=sol'], 'typespec': 'type', 'typename': 'bvp_so
l'}", assuming void.
getctype: No C-type found in "{'typespec': 'type', 'typename': 'bvp_sol'}", assuming void.
getctype: No C-type found in "{'intent': ['out', 'out=sol'], 'typespec': 'type', 'typename': 'bvp_so
l'}", assuming void.

Traceback (most recent call last):
  File "setup.py", line 68, in <module>
    classifiers =classifiers)
  File "C:\pyzo2015a\lib\site-packages\numpy\distutils\core.py", line 169, in setup
    return old_setup(**new_attr)
  File "C:\pyzo2015a\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\pyzo2015a\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "C:\pyzo2015a\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\pyzo2015a\lib\site-packages\setuptools-12.1-py3.4.egg\setuptools\command\develop.py", lin
e 32, in run
  File "C:\pyzo2015a\lib\site-packages\numpy\distutils\command\develop.py", line 17, in install_for_
development
    old_develop.install_for_development(self)
  File "C:\pyzo2015a\lib\site-packages\setuptools-12.1-py3.4.egg\setuptools\command\develop.py", lin
e 113, in install_for_development
  File "C:\pyzo2015a\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\pyzo2015a\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\pyzo2015a\lib\site-packages\numpy\distutils\command\egg_info.py", line 10, in run
    self.run_command("build_src")
  File "C:\pyzo2015a\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\pyzo2015a\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\pyzo2015a\lib\site-packages\numpy\distutils\command\build_src.py", line 153, in run
    self.build_sources()
  File "C:\pyzo2015a\lib\site-packages\numpy\distutils\command\build_src.py", line 170, in build_sou
rces
    self.build_extension_sources(ext)
  File "C:\pyzo2015a\lib\site-packages\numpy\distutils\command\build_src.py", line 335, in build_ext
ension_sources
    sources = self.f2py_sources(sources, ext)
  File "C:\pyzo2015a\lib\site-packages\numpy\distutils\command\build_src.py", line 594, in f2py_sour
ces
    ['-m', ext_name]+f_sources)
  File "C:\pyzo2015a\lib\site-packages\numpy\f2py\f2py2e.py", line 384, in run_main
    ret=buildmodules(postlist)
  File "C:\pyzo2015a\lib\site-packages\numpy\f2py\f2py2e.py", line 335, in buildmodules
    dict_append(ret[mnames[i]], rules.buildmodule(modules[i], um))
  File "C:\pyzo2015a\lib\site-packages\numpy\f2py\rules.py", line 1209, in buildmodule
    mr, wrap = f90mod_rules.buildhooks(m)
  File "C:\pyzo2015a\lib\site-packages\numpy\f2py\f90mod_rules.py", line 178, in buildhooks
    api, wrap=rules.buildapi(b)
  File "C:\pyzo2015a\lib\site-packages\numpy\f2py\rules.py", line 1339, in buildapi
    vrd=routsign2map(rout)
  File "C:\pyzo2015a\lib\site-packages\numpy\f2py\capi_maps.py", line 601, in routsign2map
    ret['pydocsign'], ret['pydocsignout']=getpydocsign(a, rout)
  File "C:\pyzo2015a\lib\site-packages\numpy\f2py\capi_maps.py", line 353, in getpydocsign
    return getpydocsign(af, var['vars'][af])
  File "C:\pyzo2015a\lib\site-packages\numpy\f2py\capi_maps.py", line 378, in getpydocsign
    sig='%s : %s %s%s'%(a, opt, c2py_map[ctype], init)
KeyError: 'void'

Cesar Aguilar

unread,
Nov 16, 2015, 2:28:16 PM11/16/15
to scikits-b...@googlegroups.com, v-chand...@northwestern.edu
I installed scikits.bvp1lg and had no problems.

--

---
You received this message because you are subscribed to a topic in the Google Groups "scikits.bvp_solver" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scikits-bvp_solver/rAi7V7GdwIw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scikits-bvp_sol...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Cesar

b...@sixpearls.com

unread,
Nov 16, 2015, 3:22:29 PM11/16/15
to scikits.bvp_solver, v-chand...@northwestern.edu, comple...@gmail.com
Thanks for the suggestion. It looks like I need to link the Intel MKL libraries for LAPACK, BLAS, etc. My setup is on windows.

What OS and python distribution were you using? Did you use the MKL libraries, or some other set? Any tips would be appreciated.

Thanks,
Ben
To unsubscribe from this group and all its topics, send an email to scikits-bvp_solver+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Cesar

Cesar Aguilar

unread,
Nov 16, 2015, 5:17:45 PM11/16/15
to scikits-b...@googlegroups.com
I tried it on OS X 10.9 and 10.10, using Anaconda with Python 3.4.  I do not know how LAPACK, BLAS is being incorporated, probably either via OS X (Xcode utilities?) or with Anaconda.

Cesar

To unsubscribe from this group and all its topics, send an email to scikits-bvp_sol...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Cesar

--

---
You received this message because you are subscribed to a topic in the Google Groups "scikits.bvp_solver" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scikits-bvp_solver/rAi7V7GdwIw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scikits-bvp_sol...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Cesar
Reply all
Reply to author
Forward
0 new messages