diff --git a/.github/workflows/conda/conda-env.yml b/.github/workflows/conda/conda-env.yml index 6d0dc37225..8b32dc7acd 100644 --- a/.github/workflows/conda/conda-env.yml +++ b/.github/workflows/conda/conda-env.yml @@ -10,4 +10,5 @@ dependencies: - eigenpy - urdfdom - python + - packaging - mamba diff --git a/bindings/python/pinocchio/visualize/meshcat_visualizer.py b/bindings/python/pinocchio/visualize/meshcat_visualizer.py index c8f7c75454..527b00ae51 100644 --- a/bindings/python/pinocchio/visualize/meshcat_visualizer.py +++ b/bindings/python/pinocchio/visualize/meshcat_visualizer.py @@ -6,7 +6,7 @@ import os import warnings import numpy as np -from distutils.version import LooseVersion +from packaging.version import Version try: import hppfcl @@ -154,7 +154,7 @@ def loadMesh(mesh): tri = call_triangles(k) faces[k] = [tri[i] for i in range(3)] - if LooseVersion(hppfcl.__version__) >= LooseVersion("1.7.7"): + if Version(hppfcl.__version__) >= Version("1.7.7"): vertices = call_vertices() else: vertices = np.empty((num_vertices, 3))