Open hassan-tht opened 1 year ago
Looks like it was fixed in baldor code
Looking at commits package with the fixes has not been released yet
Other ad-hoc fix options are probably:
@hassan-tht
The likely reason why this happens is you have pip installed numpy at version >= 1.24
ROS depends on system package version which is overridden by pip version
To check pip version
pip show numpy
To check system version
apt-cache policy python3-numpy
I am experiencing similar problems on some of my development machines (likely pip installed packages that pulled numpy as dependency)
On production machines that have clean focal + noetic I don't face those problems.
One way to workaround is downgrading numpy to latest pre 1.24 version
# check installed version
pip show numpy
If numpy >= 1.24 downgrade to latest pre 1.24
# install at 1.23.5
pip install --force-reinstall numpy==1.23.5
Thanks for the note regarding development/production machines. Downgrading is of course a valid option, but we have other related software stack that might complain if we downgrade
Hi
I got the following error when I try to do the hand-eye calibration:
I'm using
Noetic
and myNumpy
version is1.24
which explains the error asnp.float
has been depreciated. A quick fix for me was to change the corresponding lines inopt/ros/noetic/lib/python3/dist-packages/baldor/__init__.py
that have thenp.float
to justfloat