Skip to content

Instantly share code, notes, and snippets.

@nzlz
Created July 18, 2019 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nzlz/fbcca29a572ea2a3f5ce762a612fb65e to your computer and use it in GitHub Desktop.
Save nzlz/fbcca29a572ea2a3f5ce762a612fb65e to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "<string>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character '\xed' in position 261: ordinal not in range(128)
[4.874s] 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',)>
RuntimeError: cannot reuse already awaited coroutine
[4.874s] ERROR:asyncio:Task exception was never retrieved
future: <Task finished coro=<_pipe2callback() done, defined at /usr/lib/python3/dist-packages/colcon_core/subprocess.py:238> exception=RuntimeError('cannot reuse already awaited coroutine',)>
RuntimeError: cannot reuse already awaited coroutine
--- stderr: urdfdom_py
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/colcon_core/executor/__init__.py", line 91, in __call__
rc = await self.task(*args, **kwargs)
File "/usr/lib/python3/dist-packages/colcon_core/task/__init__.py", line 92, in __call__
return await task_method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/colcon_ros/task/ament_python/build.py", line 48, in build
return await extension.build(additional_hooks=additional_hooks)
File "/usr/lib/python3/dist-packages/colcon_core/task/python/build.py", line 91, in build
setup_py_data = get_setup_data(self.context.pkg, env)
File "/usr/lib/python3/dist-packages/colcon_core/task/python/__init__.py", line 20, in get_setup_data
return dict(pkg.metadata[key](env))
File "/usr/lib/python3/dist-packages/colcon_ros/package_identification/ros.py", line 126, in getter
str(desc.path / 'setup.py'), env)
File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 206, in get_setup_arguments_with_context
cmd, stdout=subprocess.PIPE, env=env, check=True)
File "/usr/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-c', "import sys;sys.path.insert(0, '/usr/lib/python3');from colcon_python_setup_py.package_identification.python_setup_py import get_setup_arguments;print(repr(get_setup_arguments('/home/nzlz/ros2_mara_ws/src/urdf_parser_py/setup.py')))"]' returned non-zero exit status 1.
---
Failed <<< urdfdom_py [ Exited with code 1 ]
@nzlz
Copy link
Author

nzlz commented Jul 18, 2019

@LanderU could you help me here?
I'm trying to setup Qt-Creator to work with MARA ROS2 workspace.
This one is the last error I need to solve, UTF related, and it only appears when I build the project inside Qt Creator (I need this so that header files are linked properly etc). It does not happen if I build from my bash.

I have tried different UTF configs like C.UTF-8, but its still failing. The following is the build environment.
image

@LanderU
Copy link

LanderU commented Jul 18, 2019

I need more info!

@LanderU
Copy link

LanderU commented Jul 18, 2019

Where are you building this?

@nzlz
Copy link
Author

nzlz commented Jul 18, 2019

The errors were caused by í character in the setup.py file 😆

PR AcutronicRobotics/urdf_parser_py#2


Btw everything is linked properly now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment