Windows choco installation fails: No module named 'importlib.metadata'

asked 2020-07-09 20:57:43 -0500

LOST gravatar image

I am following the official instructions to install ROS using Chocolatey.

The installation fails with the following traceback:

running rosdep... Traceback (most recent call last): File "c:\opt\python37amd64\Scripts\rosdep-script.py", line 10, in <module> from importlib.metadata import distribution ModuleNotFoundError: No module named 'importlib.metadata'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\opt\python37amd64\Scripts\rosdep-script.py", line 13, in <module> from importlib_metadata import distribution ModuleNotFoundError: No module named 'importlib_metadata'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\opt\python37amd64\Scripts\rosdep-script.py", line 15, in <module> from pkg_resources import load_entry_point File "c:\opt\python37amd64\lib\site-packages\pkg_resources__init__.py", line 3257, in <module> @_call_aside File "c:\opt\python37amd64\lib\site-packages\pkg_resources__init__.py", line 3241, in _call_aside f(args, *kwargs) File "c:\opt\python37amd64\lib\site-packages\pkg_resources__init__.py", line 3270, in _initialize_master_working_set working_set = WorkingSet._build_master() File "c:\opt\python37amd64\lib\site-packages\pkg_resources__init__.py", line 583, in _build_master ws.require(__requires__) File "c:\opt\python37amd64\lib\site-packages\pkg_resources__init__.py", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "c:\opt\python37amd64\lib\site-packages\pkg_resources__init__.py", line 786, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'pyparsing' distribution was not found and is required by catkin-pkg Traceback (most recent call last):
File "c:\opt\python37amd64\Scripts\rosdep-script.py", line 10, in <module> from importlib.metadata import distribution ModuleNotFoundError: No module named 'importlib.metadata'

etc

I checked my environment, and there are no Python-related variables in it.

However, I do have Python in path (3.7 from Store). But it does have a importlib_metadata module.

The issue happens with both noetic and eloquent.

edit retag flag offensive close merge delete