Builderror in workspace setup
Hello, I did setup my ros2 enviroment with this microsoft package: https://ms-iot.github.io/ROSOnWindows/GettingStarted/SetupRos2.html#installing-ros-2-binaries
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.
Asked by Ruinam on 2021-04-30 04:09:47 UTC
Answers
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.
Asked by 130s on 2023-04-05 09:12:43 UTC
Comments
did you find a solution?
Asked by fabbro on 2022-07-05 07:35:33 UTC