vscode_ros2_workspace icon indicating copy to clipboard operation
vscode_ros2_workspace copied to clipboard

is neither a directory containing a "package.xml" file nor a file

Open Fellfalla opened this issue 1 year ago • 1 comments

How to Reproduce

  1. Create your own workspace with custom packages and msgs, depending on each other.
  2. Setup according to README.md
  3. Run until step

Install dependencies Terminal->Run Task..->install dependencies

Problem Description

When executing the Task install dependencies I receive following error within the DevContainer about a custom package:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/rosdep2/main.py", line 146, in rosdep_main
    exit_code = _rosdep_main(args)
  File "/usr/lib/python3/dist-packages/rosdep2/main.py", line 446, in _rosdep_main
    return _package_args_handler(command, parser, options, args)
  File "/usr/lib/python3/dist-packages/rosdep2/main.py", line 523, in _package_args_handler
    pkgs = find_catkin_packages_in(path, options.verbose)
  File "/usr/lib/python3/dist-packages/rosdep2/catkin_packages.py", line 35, in find_catkin_packages_in
    packages = find_packages(path)
  File "/usr/lib/python3/dist-packages/catkin_pkg/packages.py", line 92, in find_packages
    packages = find_packages_allowing_duplicates(basepath, exclude_paths=exclude_paths,
  File "/usr/lib/python3/dist-packages/catkin_pkg/packages.py", line 135, in find_packages_allowing_duplicates
    xmls[path] = _get_package_xml(os.path.join(basepath, path))
  File "/usr/lib/python3/dist-packages/catkin_pkg/package.py", line 516, in _get_package_xml
    raise IOError('Path "%s" is neither a directory containing a "%s" file nor a file' % (path, PACKAGE_MANIFEST_FILENAME))
OSError: Path "/workspaces/catkin_ws/install/share/custom_msgs" is neither a directory containing a "package.xml" file nor a file

Modifiations

  • In the Dockerfile: FROM althack/ros2:foxy-dev -> FROM althack/ros2:galactic-dev

Fellfalla avatar Jul 19 '22 10:07 Fellfalla

If you're looking for the galactic version you should use that branch.

More than just the dockerfile should be changed to appropriately use this template with another version of ROS2 ( see the diff )

athackst avatar Jul 22 '22 22:07 athackst

Closing this for now. Feel free to re-open if you have additional issues.

athackst avatar Aug 23 '22 04:08 athackst