Skip to content

Commit

Permalink
Lock numpy to <2.0
Browse files Browse the repository at this point in the history
The locked OpenCV version we are using does not work with Numpy>=2.0
  • Loading branch information
m-decoster committed Feb 4, 2025
1 parent 0ba824c commit 28df18b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion airo-camera-toolkit/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
author="Thomas Lips",
author_email="[email protected]",
install_requires=[
"numpy",
"numpy<2.0",
"opencv-contrib-python==4.8.1.78", # We need opencv contrib for the aruco marker detection, but when some packages install (a different version of) opencv-python-headless, this breaks the contrib version. So we install both here to make sure they are the same version.
"opencv-python-headless==4.8.1.78", # Lock to match contrib version.
"matplotlib",
Expand Down
2 changes: 1 addition & 1 deletion airo-dataset-tools/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
author_email="[email protected]",
description="TODO",
install_requires=[
"numpy",
"numpy<2.0",
"pydantic>2.0.0", # pydantic 2.0.0 has a lot of breaking changes
"opencv-contrib-python==4.8.1.78", # See airo-camera-toolkit setup.py for explanation
"opencv-python-headless==4.8.1.78", # See airo-camera-toolkit setup.py for explanation
Expand Down
2 changes: 1 addition & 1 deletion airo-robots/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
author="Thomas Lips",
author_email="[email protected]",
install_requires=[
"numpy",
"numpy<2.0",
"ur-rtde>=1.5.7", # cf https://github.com/airo-ugent/airo-mono/issues/52
"click",
"airo-typing",
Expand Down
2 changes: 1 addition & 1 deletion airo-spatial-algebra/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
description="code for working with SE3 poses,transforms,... for robotic manipulation at the Ghent University AI and Robotics Lab",
author="Thomas Lips",
author_email="[email protected]",
install_requires=["numpy", "scipy", "spatialmath-python", "airo-typing"],
install_requires=["numpy<2.0", "scipy", "spatialmath-python", "airo-typing"],
packages=setuptools.find_packages(exclude=["test"]),
# include py.typed to declare type information is available, see
# https://mypy.readthedocs.io/en/stable/installed_packages.html#making-pep-561-compatible-packages
Expand Down
2 changes: 1 addition & 1 deletion airo-typing/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
description="python type definitions for use in the python packages at the Ghent University AI and Robotics Lab",
author="Thomas Lips",
author_email="[email protected]",
install_requires=["numpy"],
install_requires=["numpy<2.0"],
packages=setuptools.find_packages(exclude=["test"]),
package_data={"airo_typing": ["py.typed"]},
)

0 comments on commit 28df18b

Please sign in to comment.