Similar errors appear with the other examples, but when I check the shapes of the offending arguments, the 0th dimension is already 1 (and before this call, there is an explicit check in the python code to ensure the name has the right shape).
Appending optimize.solvers configuration to optimize
Ignoring attempt to set 'name' (from 'optimize' to 'optimize.solvers')
Appending optimize.solvers/snopt configuration to optimize
Ignoring attempt to set 'name' (from 'optimize' to 'optimize.solvers/snopt')
running build
running config_cc
INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
INFO: build_src
INFO: building extension "optimize.solvers.snopt7_python" sources
INFO: f2py options: []
INFO: f2py: solvers/f2py/snopt7_python.pyf
Reading fortran codes...
Reading file 'solvers/f2py/snopt7_python.pyf' (format:free)
Post-processing...
Block: __user__routines
Block: qphx
Block: usrfunc
Block: funcon
Block: funobj
Block: usrfun
Block: snopt7_python
Block: copyoptions
Block: sninit_wrap
Block: snspec_wrap
Block: snmema_wrap
Block: snmem_wrap
Block: snjac_wrap
In: solvers/f2py/snopt7_python.pyf:snopt7_python:unknown_interface:snjac_wrap
get_useparameters: no module __user__routines info used by snjac_wrap
Block: snopta_wrap
In: solvers/f2py/snopt7_python.pyf:snopt7_python:unknown_interface:snopta_wrap
get_useparameters: no module __user__routines info used by snopta_wrap
Block: snoptb_wrap
In: solvers/f2py/snopt7_python.pyf:snopt7_python:unknown_interface:snoptb_wrap
get_useparameters: no module __user__routines info used by snoptb_wrap
Block: snoptc_wrap
In: solvers/f2py/snopt7_python.pyf:snopt7_python:unknown_interface:snoptc_wrap
get_useparameters: no module __user__routines info used by snoptc_wrap
Block: sqinit_wrap
Block: sqspec_wrap
Block: sqopt_wrap
In: solvers/f2py/snopt7_python.pyf:snopt7_python:unknown_interface:sqopt_wrap
get_useparameters: no module __user__routines info used by sqopt_wrap
Block: snend
Applying post-processing hooks...
character_backward_compatibility_hook
Post-processing (stage 2)...
Building modules...
Constructing call-back function "cb_qphx_in___user__routines"
append_needs: unknown need 'int'
append_needs: unknown need 'double'
append_needs: unknown need 'double'
append_needs: unknown need 'int'
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencu']}
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'double'
append_needs: unknown need 'int'
def qphx(x,hx,nstate,cu,iu,ru,[nnh,lencu,leniu,lenru]): return hx
Constructing call-back function "cb_usrfunc_in___user__routines"
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'double'
append_needs: unknown need 'double'
append_needs: unknown need 'double'
append_needs: unknown need 'double'
append_needs: unknown need 'double'
append_needs: unknown need 'int'
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencu']}
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'double'
append_needs: unknown need 'int'
def usrfunc(mode,nnjac,x,fobj,gobj,fcon,gcon,statususer,cu,iu,ru,[nnobj,nncon,nnl,nejac,lencu,leniu,lenru]): return mode,fobj,gobj,fcon,gcon
Constructing call-back function "cb_funcon_in___user__routines"
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'double'
append_needs: unknown need 'double'
append_needs: unknown need 'double'
append_needs: unknown need 'int'
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencu']}
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'double'
append_needs: unknown need 'int'
def funcon(modec,x,fcon,gcon,statususer,cu,iu,ru,[nncon,nnjac,negcon,lencu,leniu,lenru]): return modec,fcon,gcon
Constructing call-back function "cb_funobj_in___user__routines"
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'double'
append_needs: unknown need 'double'
append_needs: unknown need 'double'
append_needs: unknown need 'int'
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencu']}
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'double'
append_needs: unknown need 'int'
def funobj(modef,x,fobj,gobj,statususer,cu,iu,ru,[nnobju,lencu,leniu,lenru]): return modef,fobj,gobj
Constructing call-back function "cb_usrfun_in___user__routines"
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'double'
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'double'
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'double'
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencu']}
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'int'
append_needs: unknown need 'double'
append_needs: unknown need 'int'
def usrfun(status,x,needf,f,needg,g,cu,iu,ru,[n,nf,leng,lencu,leniu,lenru]): return status,f,g
Building module "snopt7_python"...
Generating possibly empty wrappers"
Maybe empty "snopt7_python-f2pywrappers.f"
Constructing wrapper function "copyoptions"...
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencw']}
errors = copyoptions(option,cw,iw,rw,[lencw,leniw,lenrw])
Generating possibly empty wrappers"
Maybe empty "snopt7_python-f2pywrappers.f"
Constructing wrapper function "sninit_wrap"...
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencw']}
sninit_wrap(prtfile,prtlen,summon,cw,iw,rw,[lencw,leniw,lenrw])
Generating possibly empty wrappers"
Maybe empty "snopt7_python-f2pywrappers.f"
Constructing wrapper function "snspec_wrap"...
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencw']}
info = snspec_wrap(spcfile,cw,iw,rw,[lencw,leniw,lenrw])
Generating possibly empty wrappers"
Maybe empty "snopt7_python-f2pywrappers.f"
Constructing wrapper function "snmema_wrap"...
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencw']}
info,mincw,miniw,minrw = snmema_wrap(nf,n,nxname,nfname,nea,neg,cw,iw,rw,[lencw,leniw,lenrw])
Generating possibly empty wrappers"
Maybe empty "snopt7_python-f2pywrappers.f"
Constructing wrapper function "snmem_wrap"...
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencw']}
info,mincw,miniw,minrw = snmem_wrap(m,n,ne,neg,nncon,nnjac,nnobj,cw,iw,rw,[lencw,leniw,lenrw])
Generating possibly empty wrappers"
Maybe empty "snopt7_python-f2pywrappers.f"
Constructing wrapper function "snjac_wrap"...
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencu']}
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencw']}
info,iafun,javar,nea,a,igfun,jgvar,neg,mincw,miniw,minrw = snjac_wrap(nf,usrfun,lena,leng,x,xlow,xupp,cu,iu,ru,cw,iw,rw,[n,lencu,leniu,lenru,lencw,leniw,lenrw,usrfun_extra_args])
Generating possibly empty wrappers"
Maybe empty "snopt7_python-f2pywrappers.f"
Constructing wrapper function "snopta_wrap"...
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'depend': ['nxname'], 'intent': ['in'], 'dimension': ['nxname']}
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'depend': ['nfname'], 'intent': ['in'], 'dimension': ['nfname']}
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencu']}
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencw']}
x,xstate,xmul,f,fstate,fmul,info,itn,mjritn,mincw,miniw,minrw,ns,ninf,sinf,obj = snopta_wrap(start,nxname,nfname,objuadd,objrow,prob,usrfun,iafun,javar,nea,a,igfun,jgvar,neg,xlow,xupp,xnames,flow,fupp,fnames,x,xstate,xmul,f,fstate,fmul,cu,iu,ru,cw,iw,rw,[nf,n,lena,leng,lencu,leniu,lenru,lencw,leniw,lenrw,usrfun_extra_args,overwrite_x,overwrite_xstate,overwrite_xmul,overwrite_f,overwrite_fstate,overwrite_fmul])
Generating possibly empty wrappers"
Maybe empty "snopt7_python-f2pywrappers.f"
Constructing wrapper function "snoptb_wrap"...
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'depend': ['nnames'], 'intent': ['in'], 'dimension': ['nnames']}
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencu']}
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencw']}
hs,x,pi,rc,info,itn,mjritn,mincw,miniw,minrw,ns,ninf,sinf,obj = snoptb_wrap(start,nnames,nncon,nnobju,nnjac,iobju,objuadd,prob,funcon,funobj,valj,indj,locj,bl,bu,names,hs,x,pi,cu,iu,ru,cw,iw,rw,[m,n,nej,lencu,leniu,lenru,lencw,leniw,lenrw,funcon_extra_args,funobj_extra_args,overwrite_hs,overwrite_x,overwrite_pi])
Generating possibly empty wrappers"
Maybe empty "snopt7_python-f2pywrappers.f"
Constructing wrapper function "snoptc_wrap"...
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'depend': ['nnames'], 'intent': ['in'], 'dimension': ['nnames']}
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencu']}
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencw']}
hs,x,pi,rc,info,itn,mjritn,mincw,miniw,minrw,ns,ninf,sinf,obj = snoptc_wrap(start,nnames,nncon,nnobju,nnjac,iobju,objuadd,prob,usrfunc,valj,indj,locj,bl,bu,names,hs,x,pi,cu,iu,ru,cw,iw,rw,[m,n,nej,lencu,leniu,lenru,lencw,leniw,lenrw,usrfunc_extra_args,overwrite_hs,overwrite_x,overwrite_pi])
Generating possibly empty wrappers"
Maybe empty "snopt7_python-f2pywrappers.f"
Constructing wrapper function "sqinit_wrap"...
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencw']}
sqinit_wrap(prtfile,prtlen,summon,cw,iw,rw,[lencw,leniw,lenrw])
Generating possibly empty wrappers"
Maybe empty "snopt7_python-f2pywrappers.f"
Constructing wrapper function "sqspec_wrap"...
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencw']}
info = sqspec_wrap(spcfile,cw,iw,rw,[lencw,leniw,lenrw])
Generating possibly empty wrappers"
Maybe empty "snopt7_python-f2pywrappers.f"
Constructing wrapper function "sqopt_wrap"...
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'depend': ['nnames'], 'intent': ['in'], 'dimension': ['nnames']}
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencu']}
getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '8'}, 'attrspec': [], 'intent': ['inplace'], 'dimension': ['lencw']}
hs,x,pi,rc,info,itn,mincw,miniw,minrw,ns,ninf,sinf,obj = sqopt_wrap(start,qphx,nnames,nnh,iobj,objadd,prob,vala,inda,loca,bl,bu,cobj,names,etype,hs,x,pi,cu,iu,ru,cw,iw,rw,[m,n,nea,ncobj,lencu,leniu,lenru,lencw,leniw,lenrw,qphx_extra_args,overwrite_hs,overwrite_x,overwrite_pi])
Generating possibly empty wrappers"
Maybe empty "snopt7_python-f2pywrappers.f"
Constructing wrapper function "snend"...
snend(iw,[leniw])
Wrote C/API module "snopt7_python" to file "build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c"
INFO: adding 'build/src.linux-x86_64-3.10/build/src.linux-x86_64-3.10/solvers/f2py/fortranobject.c' to sources.
INFO: adding 'build/src.linux-x86_64-3.10/build/src.linux-x86_64-3.10/solvers/f2py' to include_dirs.
INFO: adding 'build/src.linux-x86_64-3.10/solvers/f2py/snopt7_python-f2pywrappers.f' to sources.
INFO: building data_files sources
INFO: build_src: building npy-pkg config files
/home/albert/anaconda3/envs/sim/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build_py
copying __init__.py -> build/lib.linux-x86_64-cpython-310/optimize
copying solvers/__init__.py -> build/lib.linux-x86_64-cpython-310/optimize/solvers
copying solvers/setup.py -> build/lib.linux-x86_64-cpython-310/optimize/solvers
copying solvers/solution.py -> build/lib.linux-x86_64-cpython-310/optimize/solvers
copying solvers/misc.py -> build/lib.linux-x86_64-cpython-310/optimize/solvers
copying solvers/options.py -> build/lib.linux-x86_64-cpython-310/optimize/solvers
copying ./solvers/snopt/__init__.py -> build/lib.linux-x86_64-cpython-310/optimize/solvers/snopt
copying ./solvers/snopt/snopt.py -> build/lib.linux-x86_64-cpython-310/optimize/solvers/snopt
running build_ext
INFO: customize UnixCCompiler
INFO: customize UnixCCompiler using build_ext
INFO: CCompilerOpt.__init__[813] : load cache from file -> /home/albert/school/3_caltech_phd/0_research/snopt-python/build/temp.linux-x86_64-cpython-310/ccompiler_opt_cache_ext.py
INFO: CCompilerOpt.__init__[824] : hit the file cache
INFO: get_default_fcompiler: matching types: '['arm', 'gnu95', 'intel', 'lahey', 'pg', 'nv', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor', 'fujitsu']'
INFO: customize ArmFlangCompiler
WARN: Could not locate executable armflang
INFO: customize Gnu95FCompiler
INFO: Found executable /usr/bin/gfortran
INFO: customize Gnu95FCompiler
INFO: customize Gnu95FCompiler using build_ext
INFO: building 'optimize.solvers.snopt7_python' extension
INFO: compiling C sources
INFO: C compiler: gcc -pthread -B /home/albert/anaconda3/envs/sim/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/albert/anaconda3/envs/sim/include -fPIC -O2 -isystem /home/albert/anaconda3/envs/sim/include -fPIC
INFO: compile options: '-Ibuild/src.linux-x86_64-3.10/build/src.linux-x86_64-3.10/solvers/f2py -I/home/albert/anaconda3/envs/sim/lib/python3.10/site-packages/numpy/core/include -Ibuild/src.linux-x86_64-3.10/numpy/distutils/include -I/home/albert/anaconda3/envs/sim/include/python3.10 -c'
extra options: '-msse -msse2 -msse3'
INFO: gcc: build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c: In function ‘cb_usrfun_in___user__routines’:
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c:617:14: warning: variable ‘ru_Dims’ set but not used [-Wunused-but-set-variable]
617 | npy_intp ru_Dims[1] = {-1};
| ^~~~~~~
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c:616:14: warning: variable ‘iu_Dims’ set but not used [-Wunused-but-set-variable]
616 | npy_intp iu_Dims[1] = {-1};
| ^~~~~~~
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c:615:14: warning: variable ‘cu_Dims’ set but not used [-Wunused-but-set-variable]
615 | npy_intp cu_Dims[1] = {-1};
| ^~~~~~~
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c: In function ‘cb_funcon_in___user__routines’:
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c:892:14: warning: variable ‘ru_Dims’ set but not used [-Wunused-but-set-variable]
892 | npy_intp ru_Dims[1] = {-1};
| ^~~~~~~
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c:891:14: warning: variable ‘iu_Dims’ set but not used [-Wunused-but-set-variable]
891 | npy_intp iu_Dims[1] = {-1};
| ^~~~~~~
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c:890:14: warning: variable ‘cu_Dims’ set but not used [-Wunused-but-set-variable]
890 | npy_intp cu_Dims[1] = {-1};
| ^~~~~~~
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c: In function ‘cb_funobj_in___user__routines’:
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c:1160:14: warning: variable ‘ru_Dims’ set but not used [-Wunused-but-set-variable]
1160 | npy_intp ru_Dims[1] = {-1};
| ^~~~~~~
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c:1159:14: warning: variable ‘iu_Dims’ set but not used [-Wunused-but-set-variable]
1159 | npy_intp iu_Dims[1] = {-1};
| ^~~~~~~
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c:1158:14: warning: variable ‘cu_Dims’ set but not used [-Wunused-but-set-variable]
1158 | npy_intp cu_Dims[1] = {-1};
| ^~~~~~~
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c: In function ‘cb_usrfunc_in___user__routines’:
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c:1407:14: warning: variable ‘ru_Dims’ set but not used [-Wunused-but-set-variable]
1407 | npy_intp ru_Dims[1] = {-1};
| ^~~~~~~
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c:1406:14: warning: variable ‘iu_Dims’ set but not used [-Wunused-but-set-variable]
1406 | npy_intp iu_Dims[1] = {-1};
| ^~~~~~~
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c:1405:14: warning: variable ‘cu_Dims’ set but not used [-Wunused-but-set-variable]
1405 | npy_intp cu_Dims[1] = {-1};
| ^~~~~~~
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c: In function ‘cb_qphx_in___user__routines’:
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c:1715:14: warning: variable ‘ru_Dims’ set but not used [-Wunused-but-set-variable]
1715 | npy_intp ru_Dims[1] = {-1};
| ^~~~~~~
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c:1714:14: warning: variable ‘iu_Dims’ set but not used [-Wunused-but-set-variable]
1714 | npy_intp iu_Dims[1] = {-1};
| ^~~~~~~
build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.c:1713:14: warning: variable ‘cu_Dims’ set but not used [-Wunused-but-set-variable]
1713 | npy_intp cu_Dims[1] = {-1};
| ^~~~~~~
INFO: compiling Fortran sources
INFO: Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
INFO: compile options: '-Ibuild/src.linux-x86_64-3.10/build/src.linux-x86_64-3.10/solvers/f2py -I/home/albert/anaconda3/envs/sim/lib/python3.10/site-packages/numpy/core/include -Ibuild/src.linux-x86_64-3.10/numpy/distutils/include -I/home/albert/anaconda3/envs/sim/include/python3.10 -c'
INFO: gfortran:f90: solvers/f2py/snopt7_python.f90
INFO: gfortran:f77: build/src.linux-x86_64-3.10/solvers/f2py/snopt7_python-f2pywrappers.f
INFO: /usr/bin/gfortran -Wall -g -Wall -g -shared build/temp.linux-x86_64-cpython-310/build/src.linux-x86_64-3.10/solvers/f2py/snopt7_pythonmodule.o build/temp.linux-x86_64-cpython-310/build/src.linux-x86_64-3.10/build/src.linux-x86_64-3.10/solvers/f2py/fortranobject.o build/temp.linux-x86_64-cpython-310/solvers/f2py/snopt7_python.o build/temp.linux-x86_64-cpython-310/build/src.linux-x86_64-3.10/solvers/f2py/snopt7_python-f2pywrappers.o -L/home/albert/libsnopt7 -L/usr/lib/gcc/x86_64-linux-gnu/9 -L/usr/lib/gcc/x86_64-linux-gnu/9 -lsnopt7 -lgfortran -o build/lib.linux-x86_64-cpython-310/optimize/solvers/snopt7_python.cpython-310-x86_64-linux-gnu.so
INFO:
########### EXT COMPILER OPTIMIZATION ###########
INFO: Platform :
Architecture: x64
Compiler : gcc
CPU baseline :
Requested : 'min'
Enabled : SSE SSE2 SSE3
Flags : -msse -msse2 -msse3
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated : none
I've built and installed from the
snopt-onlybranch and tried running thedieta.pyexample, but ran into this error:Similar errors appear with the other examples, but when I check the shapes of the offending arguments, the 0th dimension is already 1 (and before this call, there is an explicit check in the python code to ensure the name has the right shape).
The output of
python setup.py buildisThe output of
python setup.py install --useris