Closed AII6 closed 1 month ago
And the version of python is 3.9.19
This is because the version of the dependencies in the setup.py
is not fixed, which causes pip to pull all possible versions of trimesh
(and other libraries) to find the right combination, which eventually results in this error. It can be fixed by patching the setup.py
with specific dependencies versions e.g. with Python 3.10 and pip 24.2 I did:
diff --git a/setup.py b/setup.py
index 8e5a66d..729f5c9 100644
--- a/setup.py
+++ b/setup.py
@@ -17,14 +17,14 @@ with open(_here / name / "__init__.py") as f:
raise RuntimeError("Unable to find __version__ string.")
core_requirements = [
- "numpy",
- "pytransform3d",
+ "numpy>=1.21.0",
+ "pytransform3d>=3.5.0",
"pin>=2.7.0",
- "nlopt",
- "trimesh",
- "anytree",
- "pyyaml",
- "lxml",
+ "nlopt>=2.6.1",
+ "trimesh>=4.4.0",
+ "anytree>=2.12.0",
+ "pyyaml>=6.0.0",
+ "lxml>=5.3.0",
]
This is because the version of the dependencies in the
setup.py
is not fixed, which causes pip to pull all possible versions oftrimesh
(and other libraries) to find the right combination, which eventually results in this error. It can be fixed by patching thesetup.py
with specific dependencies versions e.g. with Python 3.10 and pip 24.2 I did:diff --git a/setup.py b/setup.py index 8e5a66d..729f5c9 100644 --- a/setup.py +++ b/setup.py @@ -17,14 +17,14 @@ with open(_here / name / "__init__.py") as f: raise RuntimeError("Unable to find __version__ string.") core_requirements = [ - "numpy", - "pytransform3d", + "numpy>=1.21.0", + "pytransform3d>=3.5.0", "pin>=2.7.0", - "nlopt", - "trimesh", - "anytree", - "pyyaml", - "lxml", + "nlopt>=2.6.1", + "trimesh>=4.4.0", + "anytree>=2.12.0", + "pyyaml>=6.0.0", + "lxml>=5.3.0", ]
Thanks for the suggestion from @giuliano-97 , i have applied this change in the commit! Appreciate for the help!
Hello, when I install this package using
pip install dex-retargeting
it has an error:I tried other versions of pypandoc but it did not work. Before this error it searched many versions of package trimesh. How to solve it?