Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build source distribution Python CI job is failing November 2023 #437

Open
traversaro opened this issue Nov 17, 2023 · 5 comments
Open

Build source distribution Python CI job is failing November 2023 #437

traversaro opened this issue Nov 17, 2023 · 5 comments

Comments

@traversaro
Copy link
Member

running egg_info
creating ycm_cmake_modules.egg-info
writing ycm_cmake_modules.egg-info/PKG-INFO
writing dependency_links to ycm_cmake_modules.egg-info/dependency_links.txt
writing top-level names to ycm_cmake_modules.egg-info/top_level.txt
writing manifest file 'ycm_cmake_modules.egg-info/SOURCES.txt'
writing manifest file 'ycm_cmake_modules.egg-info/SOURCES.txt'
/tmp/build-env-nbtnlr5u/lib/python3.8/site-packages/setuptools/config/expand.py:134: SetuptoolsWarning: File '/home/runner/work/ycm/ycm/tools/pip/README.md; charset=UTF-8' cannot be found
  return '\n'.join(
/tmp/build-env-nbtnlr5u/lib/python3.8/site-packages/setuptools/config/expand.py:134: SetuptoolsWarning: File '/home/runner/work/ycm/ycm/tools/pip/README.md; charset=UTF-8' cannot be found
  return '\n'.join(
* Building sdist...
running sdist
running egg_info
writing ycm_cmake_modules.egg-info/PKG-INFO
writing dependency_links to ycm_cmake_modules.egg-info/dependency_links.txt
writing top-level names to ycm_cmake_modules.egg-info/top_level.txt
writing manifest file 'ycm_cmake_modules.egg-info/SOURCES.txt'
running check
/tmp/build-env-nbtnlr5u/lib/python3.8/site-packages/setuptools/config/expand.py:134: SetuptoolsWarning: File '/home/runner/work/ycm/ycm/tools/pip/README.md; charset=UTF-8' cannot be found
  return '\n'.join(
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
    main()
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pyproject_hooks/_in_process/_in_process.py", line 304, in build_sdist
    return backend.build_sdist(sdist_directory, config_settings)
  File "/tmp/build-env-nbtnlr5u/lib/python3.8/site-packages/setuptools/build_meta.py", line 439, in build_sdist
    return self._build_with_temp_dir(
  File "/tmp/build-env-nbtnlr5u/lib/python3.8/site-packages/setuptools/build_meta.py", line 419, in _build_with_temp_dir
    self.run_setup()
  File "/tmp/build-env-nbtnlr5u/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in run_setup
    exec(code, locals())
  File "<string>", line 20, in <module>
  File "/tmp/build-env-nbtnlr5u/lib/python3.8/site-packages/setuptools/__init__.py", line 103, in setup
    return distutils.core.setup(**attrs)
  File "/tmp/build-env-nbtnlr5u/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
  File "/tmp/build-env-nbtnlr5u/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/tmp/build-env-nbtnlr5u/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/tmp/build-env-nbtnlr5u/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
    super().run_command(command)
  File "/tmp/build-env-nbtnlr5u/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/tmp/build-env-nbtnlr5u/lib/python3.8/site-packages/setuptools/command/sdist.py", line 65, in run
    self.make_distribution()
  File "/tmp/build-env-nbtnlr5u/lib/python3.8/site-packages/setuptools/command/sdist.py", line 89, in make_distribution
    orig.sdist.make_distribution(self)
  File "/tmp/build-env-nbtnlr5u/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 508, in make_distribution
    self.make_release_tree(base_dir, self.filelist.files)
  File "/tmp/build-env-nbtnlr5u/lib/python3.8/site-packages/cmake_build_extension/sdist_command.py", line 36, in make_release_tree
    setuptools_scm.integration.Configuration.from_file(
AttributeError: module 'setuptools_scm.integration' has no attribute 'Configuration'

ERROR Backend subprocess exited when trying to invoke build_sdist
Error: Process completed with exit code 1.
@traversaro traversaro changed the title Build source distribution Python CI job is failing Build source distribution Python CI job is failing November 2023 Nov 17, 2023
@traversaro
Copy link
Member Author

traversaro commented Nov 27, 2023

Due to this error, I disabled the python workflow in https://github.com/robotology/ycm/actions/workflows/python.yml . Interested users are welcome to provide a PR to fix the CI and restore the Python workflow.

GitHub
Extra CMake Modules for YARP and friends. Contribute to robotology/ycm development by creating an account on GitHub.

@traversaro
Copy link
Member Author

fyi @diegoferigo, I realized I never mentioned you here.

@diegoferigo
Copy link
Member

Thanks @traversaro for the ping. Can you please try to rebuild it again? It seems similar to artivis/manif#306, that got solved by a system update. Maybe there was a bug introduced in setuptools that got solved.

@traversaro
Copy link
Member Author

Thanks @traversaro for the ping. Can you please try to rebuild it again? It seems similar to artivis/manif#306, that got solved by a system update. Maybe there was a bug introduced in setuptools that got solved.

Output in #460 (comment) .

@traversaro
Copy link
Member Author

I disabled the CI steps again as they are a bit noisy otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants