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

Builderror in workspace setup

asked 2021-04-30 04:09:47 -0500

Ruinam gravatar image

Hello, I did setup my ros2 enviroment with this microsoft package: https://ms-iot.github.io/ROSOnWindows...

Then moved to a new folder and created a package. Then started the colcon build.

I got this error:

[0.646s] root DEBUG Using proactor: IocpProactor
Starting >>> a-star  
Traceback (most recent call last):3s]
File "<string>", line 1, in <module>
File "distutils\core.py", line 225, in run_setup
RuntimeError: 'distutils.core.setup()' was never called -- perhaps 'setup.py' is not a Distutils setup script?
--- stderr: a-star
Traceback (most recent call last):
 File "c:\opt\ros\foxy\x64\lib\site-packages\colcon_core\executor\__init__.py", line 91, in __call__
   rc = await self.task(*args, **kwargs)
 File "c:\opt\ros\foxy\x64\lib\site-packages\colcon_core\task\__init__.py", line 93, in __call__
   return await task_method(*args, **kwargs)
 File "c:\opt\ros\foxy\x64\lib\site-packages\colcon_ros\task\ament_python\build.py", line 51, in build
   setup_py_data = get_setup_data(self.context.pkg, env)
 File "c:\opt\ros\foxy\x64\lib\site-packages\colcon_core\task\python\__init__.py", line 20, in get_setup_data
   return dict(pkg.metadata[key](env))
 File "c:\opt\ros\foxy\x64\lib\site-packages\colcon_ros\package_identification\ros.py", line 129, in getter
   return get_setup_information(
 File "c:\opt\ros\foxy\x64\lib\site-packages\colcon_python_setup_py\package_identification\python_setup_py.py", line 261, in get_setup_information
   _setup_information_cache[hashable_env] = _get_setup_information(
 File "c:\opt\ros\foxy\x64\lib\site-packages\colcon_python_setup_py\package_identification\python_setup_py.py", line 301, in _get_setup_information
   result = subprocess.run(
 File "subprocess.py", line 512, in run
subprocess.CalledProcessError: Command '['c:\\opt\\ros\\foxy\\x64\\python.exe', '-c', "import sys;from    setuptools.extern.packaging.specifiers import SpecifierSet;from distutils.core import run_setup;dist = run_setup(    'setup.py', script_args=('--dry-run',), stop_after='config');skip_keys = ('cmdclass', 'distclass', 'ext_modules', 'metadata');data = {    key: value for key, value in dist.__dict__.items()     if (        not key.startswith('_') and         not callable(value) and         key not in skip_keys and         key not in dist.display_option_names    )};data['metadata'] = {    k: v for k, v in dist.metadata.__dict__.items()     if k not in ('license_files', 'provides_extras')};sys.stdout.buffer.write(repr(data).encode('utf-8'))"]' returned non-zero exit status 1.
---
Failed   <<< a-star [0.42s, exited with code 1]

Summary: 0 packages finished [0.61s]
 1 package failed: a-star
 1 package had stderr output: a-star

Command '['c:\\opt\\ros\\foxy\\x64\\python.exe', '-c', "import sys;from setuptools.extern.packaging.specifiers import SpecifierSet;from distutils.core import run_setup;dist = run_setup(    'setup.py', script_args=('--dry-run',), stop_after='config');skip_keys = ('cmdclass', 'distclass', 'ext_modules', 'metadata');data = {    key: value for key, value in dist.__dict__.items()     if (        not key.startswith('_') and         not callable(value) and         key not in skip_keys and         key not in dist.display_option_names    )};data['metadata'] = {    k: v for k, v in dist.metadata.__dict__.items()     if k not in ('license_files', 'provides_extras')};sys.stdout.buffer.write(repr(data).encode('utf-8'))"]' returned non-zero exit status 1.
edit retag flag offensive close merge delete

Comments

did you find a solution?

fabbro gravatar image fabbro  ( 2022-07-05 07:35:33 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-04-05 09:12:43 -0500

130s gravatar image

Although I have no idea about Windows particular setting, the error message in question indicates it could be something about setup.py formatting, particularly about entry_points. See this answers.ros.org/#q379307.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-04-30 04:09:47 -0500

Seen: 353 times

Last updated: Apr 05 '23