Skip to content

build does not find add_custom_signals.pxd from cysignals #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
videlec opened this issue Nov 10, 2022 · 1 comment
Closed

build does not find add_custom_signals.pxd from cysignals #125

videlec opened this issue Nov 10, 2022 · 1 comment

Comments

@videlec
Copy link
Collaborator

videlec commented Nov 10, 2022

$ python setup.py build_ext --inplace
running build_ext
Compiling cypari2/custom_block.pyx because it changed.
Compiling cypari2/gen.pyx because it changed.
Compiling cypari2/handle_error.pyx because it changed.
Compiling cypari2/pari_instance.pyx because it changed.
Compiling cypari2/stack.pyx because it depends on ./cypari2/auto_paridecl.pxd.
[1/5] Cythonizing cypari2/custom_block.pyx

Error compiling Cython file:
------------------------------------------------------------
...
#  as published by the Free Software Foundation; either version 2 of
#  the License, or (at your option) any later version.
#                  http://www.gnu.org/licenses/
#*****************************************************************************

from cysignals.signals cimport add_custom_signals
^
------------------------------------------------------------

cypari2/custom_block.pyx:10:0: 'cysignals/signals/add_custom_signals.pxd' not found

Error compiling Cython file:
------------------------------------------------------------
...
cdef void custom_set_pending_signal(int sig):
    global PARI_SIGINT_pending
    PARI_SIGINT_pending = sig

def init_custom_block():
    add_custom_signals(&custom_signal_is_blocked,
   ^
------------------------------------------------------------

cypari2/custom_block.pyx:27:4: 'add_custom_signals' is not a constant, variable or function identifier

Error compiling Cython file:
------------------------------------------------------------
...
cdef void custom_set_pending_signal(int sig):
    global PARI_SIGINT_pending
    PARI_SIGINT_pending = sig

def init_custom_block():
    add_custom_signals(&custom_signal_is_blocked,
                      ^
------------------------------------------------------------

cypari2/custom_block.pyx:27:23: Cannot convert 'int (*)(void)' to Python object

Error compiling Cython file:
------------------------------------------------------------
...
    global PARI_SIGINT_pending
    PARI_SIGINT_pending = sig

def init_custom_block():
    add_custom_signals(&custom_signal_is_blocked,
                       &custom_signal_unblock,
                      ^
------------------------------------------------------------

cypari2/custom_block.pyx:28:23: Cannot convert 'void (*)(void)' to Python object

Error compiling Cython file:
------------------------------------------------------------
...
    PARI_SIGINT_pending = sig

def init_custom_block():
    add_custom_signals(&custom_signal_is_blocked,
                       &custom_signal_unblock,
                       &custom_set_pending_signal)
                      ^
------------------------------------------------------------

cypari2/custom_block.pyx:29:23: Cannot convert 'void (*)(int)' to Python object
Traceback (most recent call last):
  File "/opt/cypari2/setup.py", line 66, in <module>
    setup(
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 973, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
    cmd_obj.run()
  File "/opt/cypari2/setup.py", line 46, in run
    self.distribution.ext_modules[:] = cythonize(
  File "/usr/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1127, in cythonize
    cythonize_one(*args)
  File "/usr/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1250, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: cypari2/custom_block.pyx
@videlec videlec closed this as completed Nov 10, 2022
@videlec videlec reopened this Nov 10, 2022
@videlec
Copy link
Collaborator Author

videlec commented Nov 10, 2022

This is because #117 was merged in master

@videlec videlec mentioned this issue Nov 10, 2022
@mkoeppe mkoeppe closed this as completed Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants