Open henridbr opened 6 months ago
I'm also experiencing this issue... did you manage to find a local fix?
Hi limpkin,
I wanted to use the GUI of your CDM324 Doppler Speed Sensor, but was stopped by this issue. I failed to correct it.
Numpy version is 1.26.4 right now and chaco has not been maintained since last year.
Regards. Henri
Yup, another customer reported that issue to me so I'm trying to see what I can do... I'm going to experiment and report back
so I innocently copy pasted the contents of https://github.com/huggingface/neuralcoref/blob/master/include/numpy/oldnumeric.h into the #ifdef but am now getting a whole new bunch of issues...
...
# Thanks for using Enthought open source!
import cython
import numpy as np
from numpy cimport uint8_t
cimport _marker_renderer
^
------------------------------------------------------------
kiva\_marker_renderer.pyx:14:8: '_marker_renderer.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
import numpy as np
from numpy cimport uint8_t
cimport _marker_renderer
ctypedef _marker_renderer.marker_renderer_base renderer_base_t
^
------------------------------------------------------------
kiva\_marker_renderer.pyx:16:9: 'marker_renderer_base' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
self._this.transform(_sx, _sy, _shx, _shy, _tx, _ty)
# Template specializations
ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_abgr32] renderer_abgr32_t
^
------------------------------------------------------------
kiva\_marker_renderer.pyx:91:9: 'marker_renderer' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
self._this.transform(_sx, _sy, _shx, _shy, _tx, _ty)
# Template specializations
ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_abgr32] renderer_abgr32_t
ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_argb32] renderer_argb32_t
^`
ok so I managed to install everything but that wasn't straight forward. In short, I found a previous version of the missing oldnumeric.h file, and pasted its contents into the cntr.ch You'll need to:
Thank you for this trick, it works fine for me. Sorry for my mistake when answering, I quoted a wrong script.
that looks easier...
Problem Description Failing to build wheel for chaco due to numpy version check. With Python 3.12.2, numpy 1.26.4, chaco 6.0.0 installation failed. Script chaco/plots/contour/cntr.c is calling for files which does not exist in numpy anymore.
Reproduction Steps:
Expected behavior: To get chaco installed, chaco/plots/contour/cntr.c might be corrected.
OS, Python version: [Win 11, Visual Studio Code and Python 3.12.2]