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

Python 3.6 fails to setup #355

Closed
2 of 5 tasks
Andrew-Sheridan opened this issue Mar 16, 2022 · 3 comments
Closed
2 of 5 tasks

Python 3.6 fails to setup #355

Andrew-Sheridan opened this issue Mar 16, 2022 · 3 comments
Labels
bug Something isn't working needs triage

Comments

@Andrew-Sheridan
Copy link

Andrew-Sheridan commented Mar 16, 2022

Description:
A clear and concise description of what the bug is.

The setup-python action fails for python 3.6. Other versions work (7 ,8 ,9 ,10).

Action version:
Specify the action version

v2

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

  • 3.6 (tested w/ 3.6.14 and 3.6.15)
  • the self hosted runner is based on summerwind/actions-runner:latest

Repro steps:
A description with steps to reproduce the issue. If you have a public example or repo to share, please provide the link.

---
name: test
on:
  workflow_dispatch:

jobs:
  test:
    name: 🧪 test / python ${{ matrix.python-version }}
    runs-on: [self-hosted]
    strategy:
      fail-fast: false
      matrix:
        python-version: [3.6.14, '3.7']
    steps:
      - uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}

Expected behavior:
A description of what you expected to happen.

It sets up correctly

Actual behavior:
A description of what is actually happening.

It dies. Here are logs from the action:

2022-03-16T19:45:34.3840755Z ##[group]Run actions/setup-python@v2
2022-03-16T19:45:34.3841197Z with:
2022-03-16T19:45:34.3841518Z   python-version: 3.6.14
2022-03-16T19:45:34.3842225Z   token: ***
2022-03-16T19:45:34.3842529Z ##[endgroup]
2022-03-16T19:45:34.6686433Z Version 3.6.14 was not found in the local cache
2022-03-16T19:45:35.0947796Z Version 3.6.14 is available for downloading
2022-03-16T19:45:35.0948760Z Download from "https://github.com/actions/python-versions/releases/download/3.6.14-113064/python-3.6.14-linux-20.04-x64.tar.gz"
2022-03-16T19:45:36.8208337Z Extract downloaded archive
2022-03-16T19:45:36.8602517Z [command]/usr/bin/tar xz --warning=no-unknown-keyword -C /runner/_work/_temp/f3616ac2-a060-4459-aa80-2bf9b1a5ba49 -f /runner/_work/_temp/16ba1877-59d2-49e5-b04c-ab64688683eb
2022-03-16T19:45:39.4422472Z Execute installation script
2022-03-16T19:45:39.4585392Z Check if Python hostedtoolcache folder exist...
2022-03-16T19:45:39.4586407Z Creating Python hostedtoolcache folder...
2022-03-16T19:45:39.4609201Z Create Python 3.6.14 folder
2022-03-16T19:45:39.4657455Z Copy Python binaries to hostedtoolcache folder
2022-03-16T19:45:40.0671333Z Create additional symlinks (Required for the UsePythonVersion Azure Pipelines task and the setup-python GitHub Action)
2022-03-16T19:45:40.0939333Z Upgrading PIP...
2022-03-16T19:45:43.2414135Z Looking in links: /tmp/tmpodahf6uu
2022-03-16T19:45:43.2423536Z Requirement already satisfied: setuptools in /opt/hostedtoolcache/Python/3.6.14/x64/lib/python3.6/site-packages (40.6.2)
2022-03-16T19:45:43.2514677Z Requirement already satisfied: pip in /opt/hostedtoolcache/Python/3.6.14/x64/lib/python3.6/site-packages (18.1)
2022-03-16T19:45:44.5200555Z ##[error]Exception:
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.6.14/x64/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 143, in main
    status = self.run(options, args)
  File "/opt/hostedtoolcache/Python/3.6.14/x64/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 259, in run
    with self._build_session(options) as session:
  File "/opt/hostedtoolcache/Python/3.6.14/x64/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 76, in _build_session
    if options.cache_dir else None
  File "/opt/hostedtoolcache/Python/3.6.14/x64/lib/python3.6/posixpath.py", line 80, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not int
2022-03-16T19:45:44.5817205Z ##[error]The process '/usr/bin/bash' failed with exit code 2
@Andrew-Sheridan Andrew-Sheridan added bug Something isn't working needs triage labels Mar 16, 2022
@Andrew-Sheridan
Copy link
Author

Looks like the error is occurring while pip is upgrading itself, but I'm not sure how to resolve it

@Andrew-Sheridan
Copy link
Author

I just decided to drop support for 3.6 🤷🏻‍♂️

samscott89 added a commit to osohq/oso that referenced this issue Apr 28, 2022
samscott89 added a commit to osohq/oso that referenced this issue Apr 28, 2022
* [Django] Use name of variable instead of Python variable repr.

* Run `go mod tidy` before testing

* Drop tests for Python 3.6 on Windows

No longer supported by action actions/setup-python#355 (comment)

* Update submodules.
bbatchelder pushed a commit to bbatchelder/oso that referenced this issue May 16, 2022
…#1568)

* [Django] Use name of variable instead of Python variable repr.

* Run `go mod tidy` before testing

* Drop tests for Python 3.6 on Windows

No longer supported by action actions/setup-python#355 (comment)

* Update submodules.
@wico-silva wico-silva mentioned this issue Aug 12, 2022
5 tasks
lukasberbuer added a commit to vallen-systems/vallenae that referenced this issue Nov 3, 2022
Support removed for GitHub action: actions/setup-python#355
lukasberbuer added a commit to vallen-systems/vallenae that referenced this issue Nov 7, 2022
Support removed for GitHub action: actions/setup-python#355
lukasberbuer added a commit to vallen-systems/vallenae that referenced this issue Nov 7, 2022
Support removed for GitHub action: actions/setup-python#355
lukasberbuer added a commit to vallen-systems/vallenae that referenced this issue Nov 7, 2022
Support removed for GitHub action: actions/setup-python#355
lukasberbuer added a commit to vallen-systems/vallenae that referenced this issue Nov 7, 2022
Support removed for GitHub action: actions/setup-python#355
ArnovanHilten added a commit to ArnovanHilten/GenNet that referenced this issue Nov 29, 2022
python 3.6 fails, test setup seems not supported: actions/setup-python#355
@drothlis
Copy link

drothlis commented Dec 2, 2022

I just decided to drop support for 3.6 🤷🏻‍♂️

For those finding this via Google: You can still use GitHub Actions with Python 3.6; you just have to use ubuntu-20.04 instead of ubuntu-latest. See #543 and actions/runner-images#6399.

tylerjereddy added a commit to tylerjereddy/darshan that referenced this issue Dec 7, 2022
* the Github Actions infrastructure is progressively
phasing in a newer base image of Ubuntu:
https://github.blog/changelog/2022-11-09-github-actions-ubuntu-latest-workflows-will-use-ubuntu-22-04/

* that means that we are somewhat randomly going to
see images that lack Python `3.6` from the build cache
sometimes per:
actions/setup-python#355 (comment)

* instead of pinning to an old version of Ubuntu in GHA for
3.6 support, let's just drop 3.6 from the testing matrix
per:
darshan-hpc#510 (comment)
(it has been EOL for 1 year)

* there's also no reason to retain the special Python `3.10`
handling where we use Ubuntu `22.04` for that case, for two reasons:
1) `22.04` is being rolled out as the new default anyway
2) darshan-hpcgh-851 with the Python garbage collection issues in `3.10` was
resolved by using contexts, so special treatment not justified
anymore
veghp added a commit to Edinburgh-Genome-Foundry/Ediacara that referenced this issue Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

2 participants