src/pyscipopt/scip.pyx:4784:36: Cannot assign type 'void (void *, FILE *, const char *) except *' to 'errormessagecallback' (alias of 'void (*)(void *, FILE *, const char *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'relayErrorMessage'.
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/home/liutf/code/learn2comparenodes/pyscipopt/setup.py", line 74, in <module>
extensions = cythonize(extensions, compiler_directives = {'language_level': 3})
File "/data/conda_envs/envs/l2sn/lib/python3.9/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
cythonize_one(*args)
File "/data/conda_envs/envs/l2sn/lib/python3.9/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: src/pyscipopt/scip.pyx
Using include path </home/liutf/code/learn2comparenodes/pyscipopt/src>.
Using SCIP library <scip> at </home/liutf/code/learn2comparenodes/pyscipopt/lib>.
Compiling src/pyscipopt/scip.pyx because it changed.
[1/1] Cythonizing src/pyscipopt/scip.pyx
[end of output]
已解决:
更换cython版本为0.29.37, 博主scip版本7.0.3 python3.7