Open icosac opened 1 week ago
Can you provide the exact commands necessary to reproduce the issue for you?
Yes, after installing RoboStack, I activate the environment (called ros_env)
mamba activate ros_env
Then to install all the dependencies I run:
rosdep install --from-paths src --rosdistro humble -y
But the package that is giving me problems is ros-humble-ros-gz
. Indeed, even if I try to install it directly I cannot. The following commands returns the error I mentioned above:
mamba install -c conda-forge -c robostack-staging ros-humble-ros-gz
All the others packages installed correctly.
CONDA_SUBDIR=osx-arm64 CONDA_OVERRIDE_OSX=11.0 mamba create -n test186 -c conda-forge -c robostack-staging ros-humble-ros-gz
work fine (env variables are to reproduce the osx stuff on linux), unfortunately unless you provide how you created the ros_env
and the packages installed by rosdep
install, it may be difficult for us to reproduce the problem.
I tried to run your command and it worked on a new environment, so there must have been some package conflict.
After that I decided to clean everything and start anew. So I removed all packages, environments and the whole microforge folder. Then I followed the guide to recreate the environment.
Once it was ready, I tried to run rosdep
again, and while I managed to install ros-humble-ros-gz
, now I have a problem on other packages always relevant to Gazebo. The full lists of packages I'm trying to install with rosdep
is:
ros-humble-nav2-bringup ros-humble-xacro ros-humble-ros-gz ros-humble-joint-state-publisher ros-humble-gazebo-msgs ros-humble-gazebo-ros-pkgs ros-humble-gazebo-ros2-control ros-humble-gazebo-ros
I can install the first 4 without problem, while I cannot install the following packages:
ros-humble-gazebo-ros-pkgs ros-humble-gazebo-ros2-control ros-humble-gazebo-ros
But, I should be able to based on this table, right?
The error that I get when trying to install any of these packages is the following:
$ mamba install -c robostack-staging -c conda-forge -y ros-humble-gazebo-ros2-control 1 ↵
Looking for: ['ros-humble-gazebo-ros2-control']
robostack-staging/osx-arm64 Using cache
robostack-staging/noarch Using cache
conda-forge/osx-arm64 Using cache
conda-forge/noarch Using cache
Pinned packages:
- python 3.11.*
warning libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
Could not solve for environment specs
The following packages are incompatible
├─ libignition-physics5 is installable with the potential options
│ ├─ libignition-physics5 5.2.0 would require
│ │ └─ dartsim >=6.12.2,<6.13.0a0 with the potential options
│ │ ├─ dartsim [6.12.2|6.13.0] would require
│ │ │ └─ assimp >=5.2.5,<5.2.6.0a0 , which can be installed;
│ │ ├─ dartsim [6.12.2|6.13.2] would require
│ │ │ └─ assimp >=5.4.1,<5.4.2.0a0 , which can be installed;
│ │ ├─ dartsim 6.12.2, which can be installed;
│ │ └─ dartsim [6.12.1|6.12.2] would require
│ │ └─ assimp >=5.2.4,<5.2.5.0a0 , which can be installed;
│ ├─ libignition-physics5 [5.1.0|5.2.0] would require
│ │ └─ dartsim >=6.12.1,<6.13.0a0 with the potential options
│ │ ├─ dartsim [6.12.2|6.13.0], which can be installed (as previously explained);
│ │ ├─ dartsim [6.12.2|6.13.2], which can be installed (as previously explained);
│ │ ├─ dartsim 6.12.2, which can be installed;
│ │ ├─ dartsim [6.12.1|6.12.2], which can be installed (as previously explained);
│ │ ├─ dartsim 6.12.1 would require
│ │ │ └─ assimp >=5.1.3,<5.2.0a0 , which can be installed;
│ │ ├─ dartsim 6.12.1 would require
│ │ │ └─ assimp >=5.2.3,<5.2.4.0a0 , which can be installed;
│ │ └─ dartsim 6.12.1 would require
│ │ └─ assimp >=5.2.0,<5.3.0a0 , which can be installed;
│ ├─ libignition-physics5 5.2.0 would require
│ │ └─ assimp >=5.2.4,<5.2.5.0a0 , which can be installed;
│ ├─ libignition-physics5 5.2.0 would require
│ │ └─ assimp >=5.2.5,<5.2.6.0a0 , which can be installed;
│ └─ libignition-physics5 5.2.0 would require
│ └─ assimp >=5.4.1,<5.4.2.0a0 , which can be installed;
├─ ros-humble-gazebo-ros2-control is installable and it requires
│ └─ ros-humble-gazebo-dev with the potential options
│ ├─ ros-humble-gazebo-dev 3.7.0 would require
│ │ └─ python 3.10.* *_cpython, which can be installed;
│ └─ ros-humble-gazebo-dev 3.7.0 would require
│ └─ gazebo >=11.14.0,<12.0a0 with the potential options
│ ├─ gazebo 11.14.0 would require
│ │ └─ dartsim >=6.13.2,<6.14.0a0 with the potential options
│ │ ├─ dartsim [6.12.2|6.13.2], which can be installed (as previously explained);
│ │ └─ dartsim 6.13.2 conflicts with any installable versions previously reported;
│ ├─ gazebo 11.14.0 would require
│ │ └─ assimp >=5.4.1,<5.4.2.0a0 , which can be installed;
│ ├─ gazebo 11.14.0 would require
│ │ └─ dartsim >=6.13.1,<6.14.0a0 with the potential options
│ │ ├─ dartsim 6.13.1 conflicts with any installable versions previously reported;
│ │ ├─ dartsim [6.12.2|6.13.2], which can be installed (as previously explained);
│ │ └─ dartsim 6.13.2 conflicts with any installable versions previously reported;
│ └─ gazebo 11.14.0 would require
│ └─ dartsim >=6.13.0,<6.14.0a0 with the potential options
│ ├─ dartsim [6.12.2|6.13.0], which can be installed (as previously explained);
│ ├─ dartsim 6.13.0 conflicts with any installable versions previously reported;
│ ├─ dartsim 6.13.1 conflicts with any installable versions previously reported;
│ ├─ dartsim [6.12.2|6.13.2], which can be installed (as previously explained);
│ └─ dartsim 6.13.2 conflicts with any installable versions previously reported;
└─ ros-humble-rviz-assimp-vendor is installable with the potential options
├─ ros-humble-rviz-assimp-vendor 11.2.10 would require
│ └─ assimp >=5.3.1,<5.3.2.0a0 , which conflicts with any installable versions previously reported;
└─ ros-humble-rviz-assimp-vendor [11.2.4|11.2.5] would require
└─ python [3.10.* |3.10.* *_cpython], which can be installed.
And I think it may be still related to assimp for some reasons.
At the same time, if I run
mamba create -n test -c conda-forge -c robostack-staging ros-humble-gazebo-ros # for example
then it installs correctly, whereas if I run:
mamba create -n test -c conda-forge -c robostack-staging ros-humble-gazebo-ros ros-humble-ros-gz
then I get a similar error as above that I pasted in a pastbin post as it's much longer.
I am afraid there are simply no compatible version of libignition-gazebo6 and gazebo that has been compiled with the same version of dartsim and is compatible with the version of the libraries used by the latest robostack build, see the kind of error you can get from:
mamba create -n test -c conda-forge -c robostack-staging gazebo libignition-gazebo6 "ros2-distro-mutex==0.5.*" assimp==5.3.1 "tinyxml2==10.*" "libprotobuf==4.24.4"
For the future, we should add dartsim
to the conda-forge pinning (both the one in conda-forge and in https://github.com/RoboStack/ros-humble/blob/main/.ci_support/conda_forge_pinnings.yaml) and re-build all robostack packages. Do you think it make sense to rename the issue to track the fact that it is not possible to install ros-humble-gazebo-ros
and ros-humble-ros-gz
at the same time, as instead ros-humble-ros-gz
can be installed on its own without any problem?
Actually I am not even sure that would solve the issue, as the problem is that libignition-gazebo6
requires dartsim 6.12. and is not compatible with dartsim 6.13. , that is instead used by gazebo-classic .
I was actually just about to update the issue. I was reading through this old one #68 I posted some time ago and it came to my mind that the problem might have been trying to install both Ignition and Classic.
I'll update the title of the issue right away. Also, I agree that it may not be possible to install them both at the same time, but it may not be a problem as long as it is made clear. It's still possible to have two separate environments, one for Classic and one for Ignition.
Btw, I had left an old dependency inside my project that should have been removed, I don't really need both Ignition and Classic at the same time and I reckon neither does the great majority of people. Still, if there is a way of fixing this, it would obviously be much better.
Solution to issue cannot be found in the documentation.
Issue
Hello everyone!
I must confess that I'm not the most familiar person with Mamba nor Conda, so the solution may very well be something really trivial and that has nothing to do with RoboStack. Please forgive me if this is the case.
I'm running MacOS on an M1 Pro and I wanted to check if I could run a whole project I've been developing on Ubuntu with ROS2 Humble natively.
I downloaded the repo and run
rosdep
to install the missing packages. All of them installed correctly, except forros-humble-ros-gz
that throws the following error:I run
mamba install -c conda-forge assimp
and it installed the package correctly, yet I cannot installros-humble-ros-gz
.Does anyone have the same problem or knows a possible solution? Thanks!
Installed packages
Environment info