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] Out of date pip install for python 3.12 / Ubuntu 24.04 LTS #766

Closed
tiagorpereira opened this issue Apr 29, 2024 · 3 comments · Fixed by #818
Closed

[BUG] Out of date pip install for python 3.12 / Ubuntu 24.04 LTS #766

tiagorpereira opened this issue Apr 29, 2024 · 3 comments · Fixed by #818
Assignees
Labels
bug Something isn't working

Comments

@tiagorpereira
Copy link

tiagorpereira commented Apr 29, 2024

Describe the bug

While testing the latest Ubuntu 24.04 LTS and pytorch 2.3.0, pydict is not updated on PyPI for python 3.12. Doing the normal install, the newest version is 0.1.2 (nightly also only has updates till 2023-06).

I tried to force 0.4.0 install using pip install pydict==0.4.0 but is not listed.

To Reproduce

  1. Fresh install pytorch 2.3.0 and pydict from PyPI on Python 3.12.3.
  2. Try running any codes that has functions after pydict version 0.1.2 (like MemoryMappedTensor)
  3. Error is raised that couldn't import MemoryMappedTensor because it doesn't exist.

Expected behavior

Import would work as expected and no errors raised.

I tested on python 3.11.9 and everything worked as expected.

System info

  • System: Ubuntu 24.04 LTS
  • Python version: 3.12.3
  • PyPI 24.0
  • pytorch 2.3.0
@tiagorpereira tiagorpereira added the bug Something isn't working label Apr 29, 2024
@yklcs
Copy link

yklcs commented Jun 7, 2024

Is there anything blocking support for Python 3.12? I tried installing from source and everything seems to work.
Looks like 3.12 wheels are only for macOS on PyPI.

While testing the latest Ubuntu 24.04 LTS and pytorch 2.3.0, pydict is not updated on PyPI for python 3.12. Doing the normal install, the newest version is 0.1.2 (nightly also only has updates till 2023-06).

I assume pydict is tensordict here?

@kurtamohler
Copy link
Collaborator

pydict is unrelated to tensordict. Nevertheless, installing tensordict 0.4.0 does indeed fail with python 3.12:

conda create -n torchrl-test
conda activate torchrl-test
conda install python==3.12
pip install tensordict==0.4.0
ERROR: Could not find a version that satisfies the requirement tensordict==0.4.0 (from versions: 0.0.1a0, 0.0.1b0, 0.0.1rc0, 0.0.2a0, 0.0.2b0, 0.0.3, 0.1.0, 0.1.1, 0.1.2)
ERROR: No matching distribution found for tensordict==0.4.0

@kurtamohler
Copy link
Collaborator

kurtamohler commented Jun 19, 2024

This still isn't fixed yet, since PyPI hasn't been updated, and I don't have permissions to do that

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

Successfully merging a pull request may close this issue.

4 participants