Skip to content

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

Open
matandro wants to merge 1 commit into
pinellolab:masterfrom
matandro:patch-2
Open

Fix issue with numpy long not being supported in cython 3.1.0#536
matandro wants to merge 1 commit into
pinellolab:masterfrom
matandro:patch-2

Conversation

@matandro
Copy link
Copy Markdown
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

@r-gro
Copy link
Copy Markdown

r-gro commented May 16, 2025

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