10000 Error cimporting cpython.array with PyPy · Issue #1818 · cython/cython · GitHub
[go: up one dir, main page]

Skip to content
Error cimporting cpython.array with PyPy #1818
@ghackebeil

Description

@ghackebeil

If a Cython project (named "junk" in this case) has the line from cpython cimport array in the pyx or pxd file, it compiles fine with PyPy 5.8, but dies as soon as the the compiled project is imported:

Traceback (most recent call last):
  File "test.py", line 1, in <module>
    import junk
  File "pypy5.8/site-packages/Cython/Includes/cpython/array.pxd", line 58, in init junk
    ctypedef class array.array [object arrayobject]
ValueError: array.array has the wrong size, try recompiling. Expected 24, got 64

I'm testing on a Mac with PyPy 5.8.0 installed via Homebrew. I tested this with Cython 0.26 and Cython master as of 90fa8d7.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0