carla-simulator / ros-bridge

ROS bridge for CARLA Simulator
MIT License
513 stars 414 forks source link

ROS2 failed to build carla_ad_demo #611

Closed gunnxx closed 2 years ago

gunnxx commented 2 years ago

The error is

--- stderr: carla_ad_demo                          
error: Multiple top-level packages discovered in a flat-layout: ['launch', 'config', 'resource'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.

I am using carla-simulator=0.9.12, ros2 foxy, and setuptools=62.0.0. Anyone having the same issue? I am not familiar with ros2 commands such as colcon build.

joe28965 commented 2 years ago

Yes, got it just now. Have you been able to resolve it?

gunnxx commented 2 years ago

I switched to ros1 noetic lmao.

joe28965 commented 2 years ago

Thanks, not going to work for me I'm afraid. Will try some stuff myself

joe28965 commented 2 years ago

Fixed it btw, will create a PR for it, if you're still interested