jsk-ros-pkg / jsk_common

common programs for jsk-ros-pkg
42 stars 81 forks source link

[jsk_rosbag_tools] set python_interpreter python2 for melodic, install scipy<1.9.0+numpy>=1.21.0 for python3 and apt scipy+numpy<1.21.0 for python2 #1781

Closed knorth55 closed 1 year ago

knorth55 commented 1 year ago

this PR solves #1780 typeDict is deprecated in numpy>=1.21.0 in scipy

For python3, I install scipy in catkin_virtualenv to upgrade scipy. https://stackoverflow.com/questions/74852225/attributeerror-module-numpy-has-no-attribute-typedict/74969328#74969328

scipy version should be 1.9.0 because of openblas problem with meson. https://github.com/scipy/scipy/issues/16308

For python2, I install numpy<1.21.0 to avoid attribute error.

So I made two requirements for python2 and python3.

this PR also specify the python interpreter as python2 for melodic.

knorth55 commented 1 year ago

This PR passed all tests. This PR fixes the build error of master branch reported in #1780.

knorth55 commented 1 year ago

I update this PR. I found that scipy<1.9.0 needs numpy>=1.21.0, and numpy>=1.21.0 only supports python3.

So I made two requirements for python2 and python3.