Re: Hello John, I am a PhD from CMU and I have some questions about scikits.bvp_solver. Would you give me a hand please?

96 views
Skip to first unread message

John Salvatier

unread,
Apr 1, 2013, 10:52:51 PM4/1/13
to jin...@andrew.cmu.edu, scikits-bvp solver
hey, sorry I never responded to this. I don't think the 32bit version should be an issue, 64 bit computers can usually use 32 bit software. 

It looks like there's some issue with the installer looking at both the mingw compilers and the windows compilers. 

Try downloading the source, unzipping it, and using the following command: "python setup.py config --compiler=mingw32 build --compiler=mingw32 install"


On Thu, Mar 28, 2013 at 8:24 PM, <jin...@andrew.cmu.edu> wrote:
Hi John,

Thanks for your reply last time. I think I forgot to tell you my OS is Win 8.
Would that possibly be the reason causing this problem?

Wish to hear from you soon,
Jinxu

> Hi John,
>
> Thank you for your quickly reply!
> My Python is  Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32
> bit (Intel)]
> on win32 (the newest Python(x,y)). My Numpy is 1.6.2.
>
> When I was following your tutorial, the output from the commend is as
> follows:
>
>
> C:\Python27\Scripts>easy_install scikits.bvp_solver
> Searching for scikits.bvp-solver
> Reading http://pypi.python.org/simple/scikits.bvp_solver/
> Reading http://packages.python.org/scikits.bvp_solver/
> Reading http://bvp-solver.wikidot.com
> Best match: scikits.bvp-solver 1.1
> Downloading
> http://pypi.python.org/packages/source/s/scikits.bvp_solver/scikits.bvp_solver-1.1.tar.gz#md5=894a566a3080ea6fe0e0b0c17fc628a7
> Processing scikits.bvp_solver-1.1.tar.gz
> Running scikits.bvp_solver-1.1\setup.py -q bdist_egg --dist-dir
> c:\users\jinxub~1\appdata\local\temp\easy_install-fpjnc0\scikits.bvp_solver-1.1\egg-dist-tmp-ubi1pu
> Reading fortran codes...
>       Reading file 'scikits\\bvp_solver\\lib\\bvp_interface.pyf' (format:free)
> Post-processing...
>       Block: bvp_solver_wrap__user__routines
>               Block: fsub
>                       Block: fsub
>               Block: fsubp
>                       Block: fsubp
>               Block: bcsub
>                       Block: bcsub
>               Block: bcsubp
>                       Block: bcsubp
>               Block: dfdy
>                       Block: dfdy
>               Block: dfdyp
>                       Block: dfdyp
>               Block: dbcdy
>                       Block: dbcdy
>               Block: dbcdyp
>                       Block: dbcdyp
>       Block: bvp_solverf
>                       Block: bvp
> In:
> scikits\bvp_solver\lib\bvp_interface.pyf:bvp_solverf:unknown_interface:bvp
> get_useparameters: no module bvp_m info used by bvp
>                               Block: guess_1_wrap
> In:
> scikits\bvp_solver\lib\bvp_interface.pyf:bvp_solverf:unknown_interface:bvp:guess_1_wrap
> get_useparameters: no module bvp_m info used by guess_1_wrap
>                               Block: guess_2_wrap
> In:
> scikits\bvp_solver\lib\bvp_interface.pyf:bvp_solverf:unknown_interface:bvp:guess_2_wrap
> get_useparameters: no module bvp_m info used by guess_2_wrap
>                               Block: bvp_solver_wrap
> In:
> scikits\bvp_solver\lib\bvp_interface.pyf:bvp_solverf:unknown_interface:bvp:bvp_solver_wrap
> get_useparameters: no module bvp_solver_wrap__user__routines info used by
> bvp_solver_wrap
> In:
> scikits\bvp_solver\lib\bvp_interface.pyf:bvp_solverf:unknown_interface:bvp:bvp_solver_wrap
> get_useparameters: no module bvp_m info used by bvp_solver_wrap
>                               Block: bvp_eval_wrap
> In:
> scikits\bvp_solver\lib\bvp_interface.pyf:bvp_solverf:unknown_interface:bvp:bvp_eval_wrap
> get_useparameters: no module bvp_m info used by bvp_eval_wrap
>                               Block: bvp_extend_wrap
> In:
> scikits\bvp_solver\lib\bvp_interface.pyf:bvp_solverf:unknown_interface:bvp:bvp_extend_wrap
> get_useparameters: no module bvp_m info used by bvp_extend_wrap
> Post-processing (stage 2)...
>       Block: bvp_solver_wrap__user__routines
>               Block: fsub
>                       Block: fsub
>               Block: fsubp
>                       Block: fsubp
>               Block: bcsub
>                       Block: bcsub
>               Block: bcsubp
>                       Block: bcsubp
>               Block: dfdy
>                       Block: dfdy
>               Block: dfdyp
>                       Block: dfdyp
>               Block: dbcdy
>                       Block: dbcdy
>               Block: dbcdyp
>                       Block: dbcdyp
>       Block: bvp_solverf
>               Block: unknown_interface
>                       Block: bvp
>                               Block: guess_1_wrap
>                               Block: guess_2_wrap
>                               Block: bvp_solver_wrap
>                               Block: bvp_eval_wrap
>                               Block: bvp_extend_wrap
> Building modules...
>       Constructing call-back function
> "cb_fsub_in_bvp_solver_wrap__user__routines"
>         def fsub(T,Y): return FTY
>       Constructing call-back function
> "cb_fsubp_in_bvp_solver_wrap__user__routines"
>         def fsubp(T,Y,P): return FTY
>       Constructing call-back function
> "cb_bcsub_in_bvp_solver_wrap__user__routines"
>         def bcsub(YA,YB): return BCA,BCB
>       Constructing call-back function
> "cb_bcsubp_in_bvp_solver_wrap__user__routines"
>         def bcsubp(YA,YB,P): return BCA,BCB
>       Constructing call-back function
> "cb_dfdy_in_bvp_solver_wrap__user__routines"
>         def dfdy(T,Y): return PD
>       Constructing call-back function
> "cb_dfdyp_in_bvp_solver_wrap__user__routines"
>         def dfdyp(T,Y,P): return PD,PDP
>       Constructing call-back function
> "cb_dbcdy_in_bvp_solver_wrap__user__routines"
>         def dbcdy(YA,YB): return PDYA,PDYB
>       Constructing call-back function
> "cb_dbcdyp_in_bvp_solver_wrap__user__routines"
>         def dbcdyp(YA,YB,P): return PDYA,PDYB,PDYAP,PDYBP
>       Building module "bvp_solverf"...
>               Constructing F90 module support for "bvp"...
>                 Variables: node info mxnsub parameters work evaluated evaluated_d x
> iwork yerror y npts npar leftbc
> getarrdims:warning: assumed shape array, using 0 instead of ':'
> getarrdims:warning: assumed shape array, using 0 instead of ':'
> getarrdims:warning: assumed shape array, using 0 instead of ':'
> getarrdims:warning: assumed shape array, using 0 instead of ':'
> getarrdims:warning: assumed shape array, using 0 instead of ':'
> getarrdims:warning: assumed shape array, using 0 instead of ':'
> getarrdims:warning: assumed shape array, using 0 instead of ':'
> getarrdims:warning: assumed shape array, using 0 instead of ':'
> getarrdims:warning: assumed shape array, using 0 instead of ':'
> getarrdims:warning: assumed shape array, using 0 instead of ':'
>                       Constructing wrapper function "bvp.guess_1_wrap"...
>                         guess_1_wrap(nparam_in,leftbc_in,x_in,y_in,parameters_in,mxnsub_in,[node_in,n,np])
>                       Constructing wrapper function "bvp.guess_2_wrap"...
>                         guess_2_wrap(nparam_in,leftbc_in,x_in,y_in,[node_in,n,np,parameters_in,mxnsub_in])
>                       Constructing wrapper function "bvp.bvp_solver_wrap"...
>                         bvp_solver_wrap(node_in,npar_in,leftbc_in,npts_in,info_in,mxnsub_in,x_in,y_in,parameters_in,work_in,iwork_in,fsub,fsubp,bcsub,bcsubp,singular,hasdfdy,dfdy,dfdyp,hasdbcdy,dbcdy,dbcdyp,[n,ny1,ny2,np,nwork,niwork,ns1,ns2,singularterm,method,tol,trace,stop_on_fail,fsub_extra_args,fsubp_extra_args,bcsub_extra_args,bcsubp_extra_args,dfdy_extra_args,dfdyp_extra_args,dbcdy_extra_args,dbcdyp_extra_args])
>                       Constructing wrapper function "bvp.bvp_eval_wrap"...
>                         bvp_eval_wrap(eval_derivative,points,node_in,npar_in,leftbc_in,npts_in,info_in,mxnsub_in,x_in,y_in,parameters_in,work_in,iwork_in,[npoints,n,ny1,ny2,np,nwork,niwork])
>                       Constructing wrapper function "bvp.bvp_extend_wrap"...
>                         bvp_extend_wrap(node_in,npar_in,leftbc_in,npts_in,info_in,mxnsub_in,x_in,y_in,parameters_in,work_in,iwork_in,anew,bnew,order,p,max_num_subintervals,[n,ny1,ny2,np,nwork,niwork,np2])
>       Wrote C/API module "bvp_solverf" to file
> "build\src.win32-2.7\scikits\bvp_solver\lib\bvp_solverfmodule.c"
>       Fortran 90 wrappers are saved to
> "build\src.win32-2.7\scikits\bvp_solver\lib\bvp_solverf-f2pywrappers2.f90"
> Could not locate executable g77
> Could not locate executable f77
> Could not locate executable ifort
> Could not locate executable ifl
> Could not locate executable f90
> Could not locate executable DF
> Could not locate executable efl
> Found executable d:\mingw32-xy\bin\gfortran.exe
> Found executable d:\mingw32-xy\bin\gfortran.exe
> Found executable D:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC\BIN\cl.exe
> Found executable D:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC\BIN\link.exe
> kernel32.lib(KERNEL32.dll) : error LNK2005: _InterlockedCompareExchange@12
> already defined in mingwex.lib(lib32_libmingwex_a-ilockcxch.o)
> mingw32.lib(lib32_libmingw32_a-mingw_helpers.o) : error LNK2005:
> __decode_pointer already defined in MSVCRT.lib(MSVCR90.dll)
> mingw32.lib(lib32_libmingw32_a-mingw_helpers.o) : error LNK2005:
> __encode_pointer already defined in MSVCRT.lib(MSVCR90.dll)
> mingw32.lib(lib32_libmingw32_a-pesect.o) : error LNK2005:
> __ValidateImageBase already defined in MSVCRT.lib(pesect.obj)
> mingw32.lib(lib32_libmingw32_a-pesect.o) : error LNK2005: __FindPESection
> already defined in MSVCRT.lib(pesect.obj)
> mingw32.lib(lib32_libmingw32_a-pesect.o) : error LNK2005:
> __IsNonwritableInCurrentImage already defined in MSVCRT.lib(pesect.obj)
>    Creating library
> build\temp.win32-2.7\Release\build\src.win32-2.7\scikits\bvp_solver\lib\bvp_solverf.lib
> and object
> build\temp.win32-2.7\Release\build\src.win32-2.7\scikits\bvp_solver\lib\bvp_solverf.exp
> mingwex.lib(lib32_libmingwex_a-wassert.o) : error LNK2019: unresolved
> external symbol __imp__MessageBoxA@16 referenced in function __wassert
> mingw32.lib(lib32_libmingw32_a-pesect.o) : error LNK2019: unresolved
> external symbol __image_base__ referenced in function
> __FindPESectionByName
> build\lib.win32-2.7\scikits\bvp_solver\bvp_solverf.pyd : fatal error
> LNK1120: 2 unresolved externals
> error: Setup script exited with error: Command "D:\Program Files
> (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo
> /INCREMENTAL:NO /LIBPATH:d:\mingw32-xy\lib
> /LIBPATH:d:\mingw32-xy\lib\gcc\i686-pc-mingw32\4.7.2
> /LIBPATH:d:\mingw32-xy\i686-pc-mingw32\lib /LIBPATH:C:\Python27\libs
> /LIBPATH:C:\Python27\PCbuild /LIBPATH:build\temp.win32-2.7\Release
> /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild gfortran.lib
> gcc.lib mingw32.lib mingwex.lib /EXPORT:initbvp_solverf
> build\temp.win32-2.7\Release\build\src.win32-2.7\scikits\bvp_solver\lib\bvp_solverfmodule.obj
> build\temp.win32-2.7\Release\build\src.win32-2.7\fortranobject.obj
> build\temp.win32-2.7\Release\scikits\bvp_solver\lib\BVP_M.o
> build\temp.win32-2.7\Release\scikits\bvp_solver\lib\BVP_INTERFACE.o
> build\temp.win32-2.7\Release\scikits\bvp_solver\lib\lampak.o
> build\temp.win32-2.7\Release\scikits\bvp_solver\lib\BVP_LA.o
> build\temp.win32-2.7\Release\build\src.win32-2.7\scikits\bvp_solver\lib\bvp_solverf-f2pywrappers2.o
> /OUT:build\lib.win32-2.7\scikits\bvp_solver\bvp_solverf.pyd
> /IMPLIB:build\temp.win32-2.7\Release\build\src.win32-2.7\scikits\bvp_solver\lib\bvp_solverf.lib
> /MANIFESTFILE:build\temp.win32-2.7\Release\build\src.win32-2.7\scikits\bvp_solver\lib\bvp_solverf.pyd.manifest"
> failed with exit status 1120
> C:\Python27\lib\site-packages\numpy\distutils\misc_util.py:252:
> RuntimeWarning: Parent module 'numpy.distutils' not found while handling
> absolute import
>   from numpy.distutils import log
>
>
> Since I am a new user of Python, this output makes me totally confused.
> My computer is 64bit, but I use the 32bit python. Would this possibly
> be the reason? Since I have the gfortran compiler and VC++, I really do
> not know
> why.
>
> Thank you so much for your help, John.
>
> Have a nice day,
> Jinxu
>
>
>
>
>
>
>
>
>
>
>> Hi Jinxu,
>>
>> Could you send me a more detailed description of the  issue? Could you
>> send
>> me the output you  get  when you  attempt to  install and  your numpy
>> version and OS details?
>>
>> John
>> On Mar 26, 2013 8:10 PM, <jin...@andrew.cmu.edu> wrote:
>>
>>> Hi John,
>>>
>>> First of all, thanks for your module. It just solves my problem about
>>> two point boundary value problem. But I still have a question, I cannot
>>> install it even when I follow your tutorial and I do not know why.
>>> Would
>>> you please give me some advice?
>>> Thank you very much.
>>>
>>> Good night,
>>>
>>> Jinxu Bai
>>> ECE Department, CMU
>>>
>>>
>>
>



Reply all
Reply to author
Forward
0 new messages