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

Bug: pip install fails on Windows with Python 3.13 #493

Closed
amarsjac opened this issue Nov 4, 2024 · 7 comments · Fixed by #501 or #544
Closed

Bug: pip install fails on Windows with Python 3.13 #493

amarsjac opened this issue Nov 4, 2024 · 7 comments · Fixed by #501 or #544
Labels
bug Something isn't working

Comments

@amarsjac
Copy link
Contributor

amarsjac commented Nov 4, 2024

Describe the bug

Trying to install deadline on Windows with python 3.13 using pip results in the following error

(venv) C:\Users\Administrator\Desktop>pip install deadline
Collecting deadline
  Downloading deadline-0.48.9-py3-none-any.whl.metadata (11 kB)
Collecting boto3>=1.34.75 (from deadline)
  Using cached boto3-1.35.54-py3-none-any.whl.metadata (6.7 kB)
Collecting click>=8.1.7 (from deadline)
  Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting jsonschema==4.17.* (from deadline)
  Using cached jsonschema-4.17.3-py3-none-any.whl.metadata (7.9 kB)
INFO: pip is looking at multiple versions of deadline to determine which version is compatible with other requirements. This could take a while.
Collecting deadline
  Downloading deadline-0.48.8-py3-none-any.whl.metadata (7.9 kB)
  Downloading deadline-0.48.7-py3-none-any.whl.metadata (7.9 kB)
  Downloading deadline-0.48.6-py3-none-any.whl.metadata (7.9 kB)
  Downloading deadline-0.48.4-py3-none-any.whl.metadata (7.9 kB)
  Downloading deadline-0.48.3-py3-none-any.whl.metadata (7.9 kB)
  Downloading deadline-0.48.2-py3-none-any.whl.metadata (7.9 kB)
  Downloading deadline-0.48.1-py3-none-any.whl.metadata (7.9 kB)
INFO: pip is still looking at multiple versions of deadline to determine which version is compatible with other requirements. This could take a while.
  Downloading deadline-0.48.0-py3-none-any.whl.metadata (7.9 kB)
  Downloading deadline-0.47.3-py3-none-any.whl.metadata (7.9 kB)
  Downloading deadline-0.47.2-py3-none-any.whl.metadata (7.9 kB)
  Downloading deadline-0.47.1-py3-none-any.whl.metadata (7.9 kB)
  Downloading deadline-0.47.0-py3-none-any.whl.metadata (7.9 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
ERROR: Cannot install deadline==0.47.0, deadline==0.47.1, deadline==0.47.2, deadline==0.47.3, deadline==0.48.0, deadline==0.48.1, deadline==0.48.2, deadline==0.48.3, deadline==0.48.4, deadline==0.48.6, deadline==0.48.7, deadline==0.48.8 and deadline==0.48.9 because these package versions have conflicting dependencies.

The conflict is caused by:
    deadline 0.48.9 depends on pywin32==306; sys_platform == "win32"
    deadline 0.48.8 depends on pywin32==306; sys_platform == "win32"
    deadline 0.48.7 depends on pywin32==306; sys_platform == "win32"
    deadline 0.48.6 depends on pywin32==306; sys_platform == "win32"
    deadline 0.48.4 depends on pywin32==306; sys_platform == "win32"
    deadline 0.48.3 depends on pywin32==306; sys_platform == "win32"
    deadline 0.48.2 depends on pywin32==306; sys_platform == "win32"
    deadline 0.48.1 depends on pywin32==306; sys_platform == "win32"
    deadline 0.48.0 depends on pywin32==306; sys_platform == "win32"
    deadline 0.47.3 depends on pywin32==306; sys_platform == "win32"
    deadline 0.47.2 depends on pywin32==306; sys_platform == "win32"
    deadline 0.47.1 depends on pywin32==306; sys_platform == "win32"
    deadline 0.47.0 depends on pywin32==306; sys_platform == "win32"

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict

Expected Behaviour

package should install without error

Current Behaviour

Failes due to pywin32=306 not being available with python 3.13

Reproduction Steps

python -m venv testvenv
testvenv\Scripts\activate.bat
pip install deadline

Environment

At minimum:

  1. Operating system: Windows Server 2022)
  2. Output of pip -V: pip 24.2 from C:\Users\Administrator\Desktop\venv\Lib\site-packages\pip (python 3.13)
  3. Output of deadline --version: N/A
@amarsjac amarsjac added bug Something isn't working needs triage A new report that needs a first look labels Nov 4, 2024
@amarsjac
Copy link
Contributor Author

amarsjac commented Nov 4, 2024

There is a work around. mainline have been updated to use pywin32==308 I have tested that building from mainline gives a wheel that can be installed with python 3.13 I have tested submitting a job and downloading output and confirmed that this works on windows

@crowecawcaw crowecawcaw pinned this issue Nov 4, 2024
@crowecawcaw crowecawcaw changed the title Bug: Failure to install pip install Bug: pip install fails on Windows with Python 3.13 Nov 4, 2024
@AWS-Samuel AWS-Samuel unpinned this issue Nov 5, 2024
@epmog epmog removed the needs triage A new report that needs a first look label Nov 15, 2024
@evanspearman-a
Copy link
Contributor

Closing this as the fix has been merged. The fix will be released during the next release.

@crowecawcaw
Copy link
Contributor

Reopening. The problem is that pip install fails, and part of the utility of this pinned issue is to make it easier to find. We got another report of this issue offline. Let's close this when running pip install deadline with Python 3.13 on Windows succeeds.

@crowecawcaw crowecawcaw reopened this Nov 15, 2024
@crowecawcaw crowecawcaw pinned this issue Nov 15, 2024
@crowecawcaw
Copy link
Contributor

I also noticed we're missing a new support badge for 3.13 here. I think we should also update our Python version support selector to require Python <= 3.13 so we do have this same issue with broken installs when 3.14 lands.

@crowecawcaw
Copy link
Contributor

Correct python requirement is released and visible on PyPi: https://pypi.org/project/deadline/

I ran pip install deadline on Python 3.13 and it selected 0.48.9 as the latest compatible version. Because older versions of deadline claim to be 3.13 compatible, I think pip will continuing trying to install them until we release 3.13 support. I think the upperbound Python version @epmog added would have prevented this issue, but I don't know that we can update the upperbound on old versions easily.

@epmog
Copy link
Contributor

epmog commented Jan 6, 2025

Gonna leave this open until the release has gone out with the fix due to the weirdness of older versions

@epmog epmog reopened this Jan 6, 2025
@epmog
Copy link
Contributor

epmog commented Jan 13, 2025

Deadline 0.49.4 was just released with python 3.13 supported

@epmog epmog closed this as completed Jan 13, 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
4 participants