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

pip fails installing packages due to incorrect python version #11

Open
squigjess opened this issue Nov 6, 2021 · 2 comments
Open

pip fails installing packages due to incorrect python version #11

squigjess opened this issue Nov 6, 2021 · 2 comments

Comments

@squigjess
Copy link

Describe the bug
When this action attempts to install packages that require a later version of Python, pip fails, stopping the whole action.

To Reproduce
Steps to reproduce the behavior:

  1. In the project's requirements.txt file, include a package that does not run on Python versions prior to 3.8 (e.g. nextcord).
  2. Attempt to run the workflow.

Expected behavior
The action completes successfully.

Error message

ERROR: Could not find a version that satisfies the requirement nextcord==2.0.0a3 (from versions: none)
ERROR: No matching distribution found for nextcord==2.0.0a3

Additional context
If there was a way to change which version of Python gets used, this would resolve the issue, as some projects only support the more recent versions of Python (e.g. my project expects 3.9 to be present).

@JackMcKew
Copy link
Owner

Related issue over on the sister repo: JackMcKew/pyinstaller-action-windows#19

They both are sourced from the same dockerfile so the same solution may apply to both 👍

@JackMcKew
Copy link
Owner

Hi, could you please try using this branch and see if it solves this issue?

- name: Package Application
      uses: JackMcKew/[email protected]
      with:
        path: src

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