ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Error while installing Autoware using source code

asked 2019-05-14 21:09:13 -0500

mangSteve gravatar image

Hello there,

I am relatively new to Autoware and I am trying to install it on my Ubuntu 16.04.

I installed ros-kinetic and followed https://github.com/autowarefoundation...

However, when I tried sudo ./colcon_release, it gave me the following messages:

steve@ubuntu:~/Documents/autoware/ros$ sudo ./colcon_releaseStarting >>> autoware_build_flags
Starting >>> autoware_msgs                           
Starting >>> autoware_config_msgs
Starting >>> tablet_socket_msgs
[7.829s] ERROR:asyncio:Task exception was never retrieved                  
future: <Task finished coro=<_wait_and_close_fds() done, defined at /usr/lib/python3/dist-packages/colcon_core/subprocess.py:253> exception=RuntimeError('cannot reuse already awaited coroutine',)>
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
RuntimeError: cannot reuse already awaited coroutine
[7.833s] ERROR:asyncio:Task exception was never retrieved
future: <Task finished coro=<_wait_and_close_fds() done, defined at /usr/lib/python3/dist-packages/colcon_core/subprocess.py:253> exception=RuntimeError('cannot reuse already awaited coroutine',)>
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
RuntimeError: cannot reuse already awaited coroutine
[7.836s] ERROR:asyncio:Task exception was never retrieved                  
future: <Task finished coro=<_wait_and_close_fds() done, defined at /usr/lib/python3/dist-packages/colcon_core/subprocess.py:253> exception=RuntimeError('cannot reuse already awaited coroutine',)>
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
RuntimeError: cannot reuse already awaited coroutine
[7.839s] ERROR:asyncio:Task exception was never retrieved
future: <Task finished coro=<_fd2callback() done, defined at /usr/lib/python3/dist-packages/colcon_core/subprocess.py:220> exception=RuntimeError('cannot reuse already awaited coroutine',)>
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
RuntimeError: cannot reuse already awaited coroutine
[7.840s] ERROR:asyncio:Task exception was never retrieved
future: <Task finished coro=<_fd2callback() done, defined at /usr/lib/python3/dist-packages/colcon_core/subprocess.py:220> exception=RuntimeError('cannot reuse already awaited coroutine',)>
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
RuntimeError: cannot reuse already awaited coroutine
[7.841s] ERROR:asyncio:Task exception was never retrieved
future: <Task finished coro=<_fd2callback() done, defined at /usr/lib/python3/dist-packages/colcon_core/subprocess.py:220> exception=RuntimeError('cannot reuse already awaited coroutine',)>
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
RuntimeError: cannot reuse already awaited coroutine
[7.842s] ERROR:asyncio:Task exception was never retrieved
future: <Task finished coro=<_fd2callback() done, defined at /usr/lib/python3/dist-packages/colcon_core/subprocess.py:220> exception=RuntimeError('cannot reuse already awaited coroutine',)>
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
RuntimeError: cannot reuse already awaited coroutine
--- stderr: autoware_msgs
CMake Error at CMakeLists.txt:4 (find_package):
  By not providing "Findcatkin.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "catkin", but
  CMake ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-05-15 02:09:24 -0500

gvdhoorn gravatar image

updated 2019-05-15 02:11:01 -0500

However, when I tried sudo ./colcon_release [..]

I'm not an autoware expert, but the only time colcon_release is mentioned in the instructions you link, it is not run with sudo. This is the section that mentions colcon_release (from here):

Compile

$ cd ~/Autoware/ros/
$ rosdep update
$ rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
$ ./colcon_release

Note the ./colcon_release at the end. In fact, none of the build steps are run with sudo (and that would be something I'd expect).

I would suggest to follow the instructions and run colcon_release without sudo.

edit flag offensive delete link more

Comments

Thanks for your reply.

But if I run it without sudo, the following messages may show up:

steve@ubuntu:~/Documents/Autoware/ros$ ./colcon_release
rm: cannot remove 'build/autoware_config_msgs/colcon_command_prefix_build.sh.env': Permission denied
rm: cannot remove 'build/autoware_config_msgs/CMakeCache.txt': Permission denied
rm: cannot remove 'build/autoware_config_msgs/colcon_command_prefix_build.sh': Permission denied
...
mangSteve gravatar image mangSteve  ( 2019-05-15 03:52:35 -0500 )edit

This could be caused by your first attempt to run colcon_release as root (which is essentially what sudo does).

You can try to fix the situation with the following command:

sudo chown -R $USER: $HOME/Documents/Autoware/ros

which resets all files to be owned by your own user (ie: steve) instead of root.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-15 03:55:22 -0500 )edit

Thanks for your solution

After trying the command, I can run it without sudo. However, the same errors still occur.

mangSteve gravatar image mangSteve  ( 2019-05-15 04:01:51 -0500 )edit

Which errors?

gvdhoorn gravatar image gvdhoorn  ( 2019-05-15 04:04:40 -0500 )edit

Sorry for leaving such a long time.

Well, I still encountered the same errors like

...
CMake Error at CMakeLists.txt:4 (find_package):
By not providing "Findcatkin.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "catkin", but
CMake did not find one.

Could not find a package configuration file provided by "catkin" with any
of the following names:

  catkinConfig.cmake
  catkin-config.cmake

Add the installation prefix of "catkin" to CMAKE_PREFIX_PATH or set
"catkin_DIR" to a directory containing one of the above files.  If "catkin"
provides a separate development package or SDK, be sure it has been
installed.
...
mangSteve gravatar image mangSteve  ( 2019-05-15 07:12:07 -0500 )edit

I'm not sure, but you may need to source /opt/ros/kinetic/setup.bash before starting colcon_release.

Just a guess though.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-15 07:17:30 -0500 )edit

In fact, I already did so when installing ros.

Anyway, thanks for your patience.

I think I need to remove everything before trying again. Maybe that would work it out.

mangSteve gravatar image mangSteve  ( 2019-05-15 07:24:29 -0500 )edit

In fact, I already did so when installing ros.

you need to repeat the same statement every time you start a new terminal. It is not a one-time setup.

Unless you've added that statement to $HOME/.bashrc (if using bash).

gvdhoorn gravatar image gvdhoorn  ( 2019-05-15 08:01:34 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2019-05-14 21:09:13 -0500

Seen: 1,004 times

Last updated: May 15 '19