catkin_tools : "Import error: no module named asyncio"
Hi, I have recently installed ROS Melodic on Windows. Initially, I was getting an error that catkin is not a recognized command. So I downloaded catkin_tools from its official documentation. After downloading, I have been getting this error: "Import error: No module named asyncio" whenever I use any catkin command. I searched online and asyncio is a Python 3.3+ command. But the standard installation procedure (given on the ROS website) downloads Python2.7amd64 files. How do I sort this issue
I am running a Windows 10 Home 64-bit machine. Python version: Python 2.7.15 ROS: ROS (1) Melodic (I have downloaded the full desktop version)
C:\opt\ros\melodic\x64>catkin configure
Traceback (most recent call last):
File "C:\opt\python27amd64\Scripts\catkin-script.py", line 11, in <module>
load_entry_point('catkin-tools==0.4.5', 'console_scripts', 'catkin')()
File "C:\opt\python27amd64\lib\site-packages\pkg_resources\__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "C:\opt\python27amd64\lib\site-packages\pkg_resources\__init__.py", line 2852, in load_entry_point
return ep.load()
File "C:\opt\python27amd64\lib\site-packages\pkg_resources\__init__.py", line 2443, in load
return self.resolve()
File "C:\opt\python27amd64\lib\site-packages\pkg_resources\__init__.py", line 2449, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "C:\opt\python27amd64\lib\site-packages\catkin_tools\commands\catkin.py", line 28, in <module>
from catkin_tools.common import is_tty
File "C:\opt\python27amd64\lib\site-packages\catkin_tools\common.py", line 24, in <module>
import asyncio
ImportError: No module named asyncio
Do not post screenshots of terminals / Window's
cmd
windows.It's all text, so copy-paste it into your question, and then format it correctly, using the Preformatted Text button (the one with
101010
on it).For now I'll close your question, as it doesn't follow the support guidelines.
If you edit your question and replace the screenshot with a verbatim copy of the terminal text, we can re-open.
Use the
edit
button/link for this.I have done the suggested edits. Please reopen the question