Skip to content

Fix issue with numpy long not being supported in cython 3.1.0 #536

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matandro
Copy link
Contributor

@matandro matandro commented May 16, 2025

Building the latest version of CRISPresso2 from python fails because the project.toml uses Cython 3.1.0 that no longer supports the long type. See: #535

CRITICAL @ Fri, 16 May 2025 17:02:58 (0.5% done):
         Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/CRISPResso2/CRISPRessoCORE.py", line 1429, in main
    aln_matrix = CRISPResso2Align.read_matrix(aln_matrix_loc)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "CRISPResso2/CRISPResso2Align.pyx", line 43, in CRISPResso2.CRISPResso2Align.read_matrix
  File "CRISPResso2/CRISPResso2Align.pyx", line 51, in CRISPResso2.CRISPResso2Align.read_matrix
NameError: name 'long' is not defined
 

CRITICAL @ Fri, 16 May 2025 17:02:58 (0.5% done):
         Unexpected error, please check your input.

ERROR: name 'long' is not defined 

This PR sticks the version of the project.toml to built it with a previous cython version.
Solution found by @rohan-mammothbio

@rohan-mammothbio
Copy link

Solution found by @rohan-mammothbio

with guidance from @mvattiku

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

Successfully merging this pull request may close these issues.

2 participants