Skip to first unread message

Michael Hoenig

Aug 2, 2022, 9:07:32 AM (12 days ago) Aug 2
to astrometry
When trying to make py the latest version (0.89), I get a bunch of errors like:

util_wrap.c: In function ‘an_hist2d’:
util_wrap.c:3116:50: error: ‘NPY_ARRAY_UPDATEIFCOPY’ undeclared (first use in this function); did you mean ‘NPY_ITER_UPDATEIFCOPY’?
 3116 |         int reqout = req | NPY_ARRAY_WRITEABLE | NPY_ARRAY_UPDATEIFCOPY;
      |                                                  ^~~~~~~~~~~~~~~~~~~~~~
      |                                                  NPY_ITER_UPDATEIFCOPY

It seems there are references to the deprecated NPY_ARRAY_UPDATEIFCOPY flag in lanczos.i, util.i and util_wrap.c.  Or am I doing something wrong?


Dustin Lang

Aug 2, 2022, 9:51:00 AM (12 days ago) Aug 2
to Michael Hoenig, astrometry
 Yes,  this is because of a change in the new numpy 1.23.  I haven't had a chance to make all the required changes to the astrometry code yet.

You received this message because you are subscribed to the Google Groups "astrometry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages