ros-infrastructure / catkin_pkg

Standalone Python library for the catkin build system.
https://github.com/ros/catkin
Other
47 stars 91 forks source link

I encountered this problem after I installed catkin_pkg #350

Open CustSlaming opened 1 year ago

CustSlaming commented 1 year ago

CMake Error at CMakeLists.txt:20 (message): Search for 'catkin' in workspace failed (catkin_find_pkg catkin /home/custslaming/catkin_ws/src): Traceback (most recent call last):

File "/home/custslaming/catkin/bin/catkin_find_pkg", line 33, in <module>
  sys.exit(load_entry_point('catkin-pkg==0.2.10', 'console_scripts', 'catkin_find_pkg')())
File "/home/custslaming/catkin/bin/catkin_find_pkg", line 25, in importlib_load_entry_point
  return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
  module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
  return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked

ModuleNotFoundError: No module named 'catkin_pkg.cli' I am a ros newbie, I hope you can help me to solve it, thanks!