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

github workflow update #778

Open
Aske-Rosted opened this issue Jan 6, 2025 · 0 comments
Open

github workflow update #778

Aske-Rosted opened this issue Jan 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Aske-Rosted
Copy link
Collaborator

Describe the bug
Github is rolling out a new latest version of Ubuntu for the workflows (actions/runner-images#10636). This breaks a bunch of our workflows with the error seen below . I received this rollout early on my personal repo, and found that the easiest fix for now is to enforce the version of Ubuntu to 22.04.

Full traceback

Prepare all required actions
Run ./.github/actions/install
Run PIP_FLAG_EDITABLE=`[[ false =~ (T|t)rue ]] && printf "%s\n" "-e " || echo " "`
Run pip install --upgrade pip>=20
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.42.0)
Collecting setuptools==59.5.0
  Downloading setuptools-59.5.0-py3-none-any.whl.metadata (5.0 kB)
Downloading setuptools-59.5.0-py3-none-any.whl (952 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 952.4/952.4 kB 28.0 MB/s eta 0:00:00
Installing collected packages: setuptools
Successfully installed setuptools-59.5.0
Run echo requirements/torch_cpu.txt    .[develop,torch]
requirements/torch_cpu.txt .[develop,torch]
Defaulting to user installation because normal site-packages is not writeable
Looking in links: https://download.pytorch.org/whl/cpu, https://data.pyg.org/whl/torch-2.2.0+cpu.html
Processing /home/runner/work/graphnet/graphnet
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 14, in <module>
        File "/home/runner/.local/lib/python3.12/site-packages/setuptools/__init__.py", line 16, in <module>
          import setuptools.version
        File "/home/runner/.local/lib/python3.12/site-packages/setuptools/version.py", line 1, in <module>
          import pkg_resources
        File "/home/runner/.local/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2172, in <module>
          register_finder(pkgutil.ImpImporter, find_on_path)
                          ^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Error: Process completed with exit code 1.

Additional context
Github mentions that they will maintain ubuntu 22 versions for 2 more years.

@Aske-Rosted Aske-Rosted added the bug Something isn't working label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant