You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing Cython==3.0.0b1, I get the following build error:
$ python setup.py build
Please make sure to:
- Have libglyr >= 1.0.0 and all developement deps installed.
- Have a working compiler.
Cython will be installed automatically.
Compiling src/glyr.pyx because it changed.
[1/1] Cythonizing src/glyr.pyx
/tmp/python-glyr/.venv/lib/python3.11/site-packages/Cython/Compiler/Main.py:370: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/python-glyr/src/glyr.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
Error compiling Cython file:
------------------------------------------------------------
...
# Initialize Library
glyr_init()
# Register destroyage using the C-level atexit
atexit(<void (*)() nogil>glyr_cleanup)
^
------------------------------------------------------------
src/glyr.pyx:28:7: Cannot assign type 'void (*)(void) except * nogil' to 'void (*)(void) noexcept nogil'
Error compiling Cython file:
------------------------------------------------------------
...
:py_func: A callableobject, like a function.
"""
self_ptr =self._ptr()
with nogil:
C.glyr_db_foreach(self_ptr, _db_proxy_callback, <void*>py_func)
^
------------------------------------------------------------
src/database.pyx:144:40: Cannot assign type 'int (GlyrQuery *, GlyrMemCache *, void *) except? -1 nogil' to 'glyr_foreach_callback'
Traceback (most recent call last):
File "/tmp/python-glyr/setup.py", line 15, in <module>
setup(
File "/tmp/python-glyr/.venv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setupreturn run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/tmp/python-glyr/.venv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/tmp/python-glyr/.venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commandsself.run_command(cmd)
File "/tmp/python-glyr/.venv/lib/python3.11/site-packages/setuptools/dist.py", line 1221, in run_commandsuper().run_command(command)
File "/tmp/python-glyr/.venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/python-glyr/.venv/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 131, in runself.run_command(cmd_name)
File "/tmp/python-glyr/.venv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_commandself.distribution.run_command(command)
File "/tmp/python-glyr/.venv/lib/python3.11/site-packages/setuptools/dist.py", line 1221, in run_commandsuper().run_command(command)
File "/tmp/python-glyr/.venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/python-glyr/.venv/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in runself.build_extensions()
File "/tmp/python-glyr/.venv/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensionsself._build_extensions_serial()
File "/tmp/python-glyr/.venv/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serialself.build_extension(ext)
File "/tmp/python-glyr/.venv/lib/python3.11/site-packages/Cython/Distutils/build_ext.py", line 122, in build_extension
new_ext = cythonize(
^^^^^^^^^^
File "/tmp/python-glyr/.venv/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
cythonize_one(*args)
File "/tmp/python-glyr/.venv/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_oneraise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: src/glyr.pyx
The text was updated successfully, but these errors were encountered:
After installing
Cython==3.0.0b1
, I get the following build error:The text was updated successfully, but these errors were encountered: