Skip to content

issue with numpy 2.0 #37

@tynanford

Description

@tynanford

We noticed our CI builds stopped working about a week ago and it was narrowed down to pyDevSup compilation failing.

../dbfield.c: In function 'build_array':
../dbfield.c:101:13: error: 'PyArray_Descr' {aka 'struct _PyArray_Descr'} has no member named 'elsize'
  101 |         desc->elsize = MAX_STRING_SIZE;
      |             ^~
../dbfield.c: In function 'assign_array':

Confirmed it is due to the numpy version. 2.0.0 which was released on June 16th - https://pypi.org/project/numpy/#history

And this release note seems relevant https://numpy.org/devdocs/release/2.0.0-notes.html#descriptor-elsize-and-alignment-access . Pinning numpy down to 1.26.4 works for now

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