Source: casadi
Version: 3.7.2+ds2-1
Severity: serious
Tags: ftbfs sid forky
Justification: Policy 4.9
User: [email protected]
Usertags: swig-4.5.0

Dear Maintainer,

The casadi package FTBFS with swig 4.5.0, which is currently in unstable. An 
excerpt of the build log is shown below.

This is due to the removal of the Python 2 compatibility macros in version 
4.5.0. According to the SWIG authors, these macros were retained in the 
generated code (pyhead.swg) solely for user typemaps. Any typemap using these 
macros must be updated to call the Python 3 C API directly.

Best,

Rafael Laboissière

##### Build log excerpt

[ 60%] Building CXX object 
casadi/solvers/CMakeFiles/casadi_conic_ipqp.dir/ipqp_meta.cpp.o
cd <<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/casadi/solvers && 
/usr/bin/x86_64-linux-gnu-g++ -DCASADI_DEFAULT_COMPILER_PLUGIN=shell 
-DCASADI_IS_RELEASE=1 -DCASADI_MAJOR_VERSION=3 -DCASADI_MINOR_VERSION
=7 -DCASADI_PATCH_VERSION=2 -DCASADI_SNPRINTF=snprintf -DCASADI_VERSION=31 
-DHAVE_MKSTEMPS -DUSE_CXX11 -DWITH_DEEPBIND -DWITH_DEPRECATED_FEATURES 
-DWITH_DL -D_SCL_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -Dcasadi_
conic_ipqp_EXPORTS -I<<BUILD-DIR>>/casadi-3.7.2+ds2/. 
-I<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu 
-I<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/casadi/core/runtime 
-I<<BUILD-DIR>>/casadi-3.7.2+
ds2/casadi/core/../.. 
-I<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/casadi/core/../.. -g -O2 
-ffile-prefix-map=<<BUILD-DIR>>/casadi-3.7.2+ds2=. -fstack-protector-strong 
-fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  
-fPIC -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT 
casadi/solvers/CMakeFiles/casadi_conic_ipqp.dir/ipqp_meta.cpp.o -MF CM
akeFiles/casadi_conic_ipqp.dir/ipqp_meta.cpp.o.d -o 
CMakeFiles/casadi_conic_ipqp.dir/ipqp_meta.cpp.o -c 
<<BUILD-DIR>>/casadi-3.7.2+ds2/casadi/solvers/ipqp_meta.cpp
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In function ‘PyObject* casadi::full(const DM&, bool)’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:5591:31:
 error: ‘PyString_FromString’ was not declared in this scope; did you mean 
‘PyLong_FromString’?
 5591 |       PyObject *method_name = PyString_FromString("toarray");
      |                               ^~~~~~~~~~~~~~~~~~~
      |                               PyLong_FromString
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In function ‘PyObject* casadi::get_Python_helper(const std::string&)’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:5644:26:
 error: ‘PyString_FromString’ was not declared in this scope; did you mean 
‘PyLong_FromString’?
 5644 |       PyObject* c_name = PyString_FromString("casadi");
      |                          ^~~~~~~~~~~~~~~~~~~
      |                          PyLong_FromString
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In function ‘bool casadi::to_ptr(PyObject*, std::vector<T>**)’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6204:30:
 error: there are no arguments to ‘PyString_Check’ that depend on a template 
parameter, so a declaration of ‘PyString_Check’
 must be available [-Wtemplate-body]
 6204 |       if (PyDict_Check(p) || PyString_Check(p) || PySet_Check(p) || 
PyUnicode_Check(p)) return false;
      |                              ^~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6204:30:
 note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the 
use of an undeclared name is deprecated)
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In function ‘bool casadi::to_ptr(PyObject*, std::string**)’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6480:11:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6480 |       if (PyString_Check(p) || PyUnicode_Check(p)) {
      |           ^~~~~~~~~~~~~~
      |           PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In function ‘PyObject* casadi::from_ptr(const std::string*)’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6515:14:
 error: ‘PyString_FromString’ was not declared in this scope; did you mean 
‘PyLong_FromString’?
 6515 |       return PyString_FromString(a->c_str());
      |              ^~~~~~~~~~~~~~~~~~~
      |              PyLong_FromString
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In function ‘bool casadi::to_ptr(PyObject*, Slice**)’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6539:11:
 error: ‘PyInt_Check’ was not declared in this scope; did you mean 
‘PySet_Check’?
 6539 |       if (PyInt_Check(p)) {
      |           ^~~~~~~~~~~
      |           PySet_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6541:25:
 error: ‘PyInt_AsLong’ was not declared in this scope; did you mean 
‘PyLong_AsLong’?
 6541 |           (**m).start = PyInt_AsLong(p);
      |                         ^~~~~~~~~~~~
      |                         PyLong_AsLong
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6552:56:
 error: ‘PyInt_AsLong’ was not declared in this scope; did you mean 
‘PyLong_AsLong’?
 6552 |             ? std::numeric_limits<casadi_int>::min() : 
PyInt_AsLong(r->start);
      |                                                        ^~~~~~~~~~~~
      |                                                        PyLong_AsLong
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In function ‘bool casadi::to_ptr(PyObject*, 
std::map<std::__cxx11::basic_string<char>, T2>**)’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6579:17:
 error: there are no arguments to ‘PyString_Check’ that depend on a template 
parameter, so a declaration of ‘PyString_Check’
 must be available [-Wtemplate-body]
 6579 |           if (!(PyString_Check(key) || PyUnicode_Check(key))) return 
false;
      |                 ^~~~~~~~~~~~~~
[ 61%] Building CXX object 
casadi/solvers/CMakeFiles/casadi_nlpsol_qrsqp.dir/qrsqp_meta.cpp.o
cd <<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/casadi/solvers && 
/usr/bin/x86_64-linux-gnu-g++ -DCASADI_DEFAULT_COMPILER_PLUGIN=shell 
-DCASADI_IS_RELEASE=1 -DCASADI_MAJOR_VERSION=3 -DCASADI_MINOR_VERSION
=7 -DCASADI_PATCH_VERSION=2 -DCASADI_SNPRINTF=snprintf -DCASADI_VERSION=31 
-DHAVE_MKSTEMPS -DUSE_CXX11 -DWITH_DEEPBIND -DWITH_DEPRECATED_FEATURES 
-DWITH_DL -D_SCL_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -Dcasadi_
nlpsol_qrsqp_EXPORTS -I<<BUILD-DIR>>/casadi-3.7.2+ds2/. 
-I<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu 
-I<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/casadi/core/runtime 
-I<<BUILD-DIR>>/casadi-3.7.
2+ds2/casadi/core/../.. 
-I<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/casadi/core/../.. -g -O2 
-ffile-prefix-map=<<BUILD-DIR>>/casadi-3.7.2+ds2=. -fstack-protector-strong 
-fstack-clash-protection -Wforma
t -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC 
 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT 
casadi/solvers/CMakeFiles/casadi_nlpsol_qrsqp.dir/qrsqp_meta.cpp.o -
MF CMakeFiles/casadi_nlpsol_qrsqp.dir/qrsqp_meta.cpp.o.d -o 
CMakeFiles/casadi_nlpsol_qrsqp.dir/qrsqp_meta.cpp.o -c 
<<BUILD-DIR>>/casadi-3.7.2+ds2/casadi/solvers/qrsqp_meta.cpp
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, std::vector<T>**) [with M = 
long long int; PyObject = _object]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:11657:22:
   required from here
11657 |   if (!casadi::to_ptr(swig_obj[0], &arg1)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input 1 to type '" "[" 
"int" "]" "'.");
      |        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6204:44:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6204 |       if (PyDict_Check(p) || PyString_Check(p) || PySet_Check(p) || 
PyUnicode_Check(p)) return false;
      |                              ~~~~~~~~~~~~~~^~~
      |                              PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, std::vector<T>**) [with M = 
bool; PyObject = _object]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:16475:22:
   required from here
16475 |   if (!casadi::to_ptr(swig_obj[6], &arg7)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input to type '" "[" 
"bool" "]" "'.");
      |        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6204:44:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6204 |       if (PyDict_Check(p) || PyString_Check(p) || PySet_Check(p) || 
PyUnicode_Check(p)) return false;
      |                              ~~~~~~~~~~~~~~^~~
      |                              PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, 
std::map<std::__cxx11::basic_string<char>, T2>**) [with M = GenericType; PyObje
ct = _object]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:17021:24:
   required from here
17021 |     if (!casadi::to_ptr(swig_obj[2], &arg4)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input 4 to type '" "dict" 
"'.");
      |          ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6579:31:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6579 |           if (!(PyString_Check(key) || PyUnicode_Check(key))) return 
false;
      |                 ~~~~~~~~~~~~~~^~~~~
      |                 PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, std::vector<T>**) [with M = 
double; PyObject = _object]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:18763:22:
   required from here
18763 |   if (!casadi::to_ptr(swig_obj[0], &arg1)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input 1 to type '" "[" 
"float" "]" "'.");
      |        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6204:44:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6204 |       if (PyDict_Check(p) || PyString_Check(p) || PySet_Check(p) || 
PyUnicode_Check(p)) return false;
      |                              ~~~~~~~~~~~~~~^~~
      |                              PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, std::vector<T>**) [with M = 
Matrix<double>; PyObject = _object]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:25350:22:
   required from here
25350 |   if (!casadi::to_ptr(swig_obj[1], &arg2)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input 2 to type '" "[" 
"DM" "]" "'.");
      |        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6204:44:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6204 |       if (PyDict_Check(p) || PyString_Check(p) || PySet_Check(p) || 
PyUnicode_Check(p)) return false;
      |                              ~~~~~~~~~~~~~~^~~
      |                              PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, std::vector<T>**) [with M = 
SXElem; PyObject = _object]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:28209:22:
   required from here
28209 |   if (!casadi::to_ptr(swig_obj[0], &arg1)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input 1 to type '" "[" 
"SXElem" "]" "'.");
      |        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6204:44:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6204 |       if (PyDict_Check(p) || PyString_Check(p) || PySet_Check(p) || 
PyUnicode_Check(p)) return false;
      |                              ~~~~~~~~~~~~~~^~~
      |                              PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, std::vector<T>**) [with M = 
Matrix<SXElem>; PyObject = _object]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:30132:22:
   required from here
30132 |   if (!casadi::to_ptr(swig_obj[1], &arg2)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input 2 to type '" "[" 
"SX" "]" "'.");
      |        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6204:44:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6204 |       if (PyDict_Check(p) || PyString_Check(p) || PySet_Check(p) || 
PyUnicode_Check(p)) return false;
      |                              ~~~~~~~~~~~~~~^~~
      |                              PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, std::vector<T>**) [with M = 
MX; PyObject = _object]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:34506:22:
   required from here
34506 |   if (!casadi::to_ptr(swig_obj[1], &arg2)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input 2 to type '" "[" 
"MX" "]" "'.");
      |        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6204:44:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6204 |       if (PyDict_Check(p) || PyString_Check(p) || PySet_Check(p) || 
PyUnicode_Check(p)) return false;
      |                              ~~~~~~~~~~~~~~^~~
      |                              PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, std::vector<T>**) [with M = 
std::__cxx11::basic_string<char>; PyObject = _objec
t]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:38233:22:
   required from here
38233 |   if (!casadi::to_ptr(swig_obj[3], &arg4)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input 4 to type '" "[" 
"str" "]" "'.");
      |        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6204:44:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6204 |       if (PyDict_Check(p) || PyString_Check(p) || PySet_Check(p) || 
PyUnicode_Check(p)) return false;
      |                              ~~~~~~~~~~~~~~^~~
      |                              PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, 
std::map<std::__cxx11::basic_string<char>, T2>**) [with M = Matrix<SXElem>; PyO
bject = _object]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:38274:22:
   required from here
38274 |   if (!casadi::to_ptr(swig_obj[1], &arg2)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input 2 to type '" "dict" 
":" "SX" "'.");
      |        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6579:31:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6579 |           if (!(PyString_Check(key) || PyUnicode_Check(key))) return 
false;
      |                 ~~~~~~~~~~~~~~^~~~~
      |                 PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, 
std::map<std::__cxx11::basic_string<char>, T2>**) [with M = MX; PyObject = _obj
ect]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:38403:22:
   required from here
38403 |   if (!casadi::to_ptr(swig_obj[1], &arg2)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input 2 to type '" "dict" 
":" "MX" "'.");
      |        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6579:31:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6579 |           if (!(PyString_Check(key) || PyUnicode_Check(key))) return 
false;
      |                 ~~~~~~~~~~~~~~^~~~~
      |                 PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, std::vector<T>**) [with M = 
Sparsity; PyObject = _object]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:38499:22:
   required from here
38499 |   if (!casadi::to_ptr(swig_obj[4], &arg5)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input 5 to type '" "[" 
"Sparsity" "]" "'.");
      |        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6204:44:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6204 |       if (PyDict_Check(p) || PyString_Check(p) || PySet_Check(p) || 
PyUnicode_Check(p)) return false;
      |                              ~~~~~~~~~~~~~~^~~
      |                              PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, 
std::map<std::__cxx11::basic_string<char>, T2>**) [with M = std::vector<std::__
cxx11::basic_string<char> >; PyObject = _object]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:40899:24:
   required from here
40899 |     if (!casadi::to_ptr(swig_obj[4], &arg5)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input 5 to type '" "dict" 
":" "[" "str" "]" "'.");
      |          ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6579:31:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6579 |           if (!(PyString_Check(key) || PyUnicode_Check(key))) return 
false;
      |                 ~~~~~~~~~~~~~~^~~~~
      |                 PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, 
std::map<std::__cxx11::basic_string<char>, T2>**) [with M = Matrix<double>; PyO
bject = _object]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:41831:22:
   required from here
41831 |   if (!casadi::to_ptr(swig_obj[1], &arg2)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input 2 to type '" "dict" 
":" "DM" "'.");
      |        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6579:31:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6579 |           if (!(PyString_Check(key) || PyUnicode_Check(key))) return 
false;
      |                 ~~~~~~~~~~~~~~^~~~~
      |                 PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, std::vector<T>**) [with M = 
Function; PyObject = _object]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:42977:22:
   required from here
42977 |   if (!casadi::to_ptr(swig_obj[1], &arg2)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input 2 to type '" "[" 
"Function" "]" "'.");
      |        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6204:44:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6204 |       if (PyDict_Check(p) || PyString_Check(p) || PySet_Check(p) || 
PyUnicode_Check(p)) return false;
      |                              ~~~~~~~~~~~~~~^~~
      |                              PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, 
std::map<std::__cxx11::basic_string<char>, T2>**) [with M = Sparsity; PyObject 
= _object]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:48392:22:
   required from here
48392 |   if (!casadi::to_ptr(swig_obj[2], &arg3)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input 3 to type '" "dict" 
":" "Sparsity" "'.");
      |        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6579:31:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6579 |           if (!(PyString_Check(key) || PyUnicode_Check(key))) return 
false;
      |                 ~~~~~~~~~~~~~~^~~~~
      |                 PyMapping_Check
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx: 
In instantiation of ‘bool casadi::to_ptr(PyObject*, std::vector<T>**) [with M = 
GenericType; PyObject = _object]’:
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:95754:22:
   required from here
95754 |   if (!casadi::to_ptr(swig_obj[1], &arg2)) 
SWIG_exception_fail(SWIG_TypeError,"Failed to convert input 2 to type '" "[" 
"GenericType" "]" "'.");
      |        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/casadi-3.7.2+ds2/obj-x86_64-linux-gnu/swig/casadiPYTHON_wrap.cxx:6204:44:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyMapping_Check’?
 6204 |       if (PyDict_Check(p) || PyString_Check(p) || PySet_Check(p) || 
PyUnicode_Check(p)) return false;
      |                              ~~~~~~~~~~~~~~^~~
      |                              PyMapping_Check

Reply via email to