vwxyzjn / cleanrl

High-quality single file implementation of Deep Reinforcement Learning algorithms with research-friendly features (PPO, DQN, C51, DDPG, TD3, SAC, PPG)
http://docs.cleanrl.dev
Other
5.02k stars 575 forks source link

Poetry install fails: WheelFileValidationError: Pytorch 1.12 #365

Closed samholt closed 1 year ago

samholt commented 1 year ago

Problem Description

Checklist

Current Behavior

When running poetry install. The installation fails, with the following.

_WheelFileValidationError

["In /root/.cache/pypoetry/artifacts/21/ea/bc/a9bb54ed951969eeae8a2bec49ad9c6a1b2a4c204d2aad9f2fb71d2eec/torch-1.12.1-cp38-cp38-manylinux1_x86_64.whl, hash / size of torch-1.12.1.dist-info/METADATA didn't match RECORD"]

This occurs both running the install process on Ubuntu and inside the Docker image build.

Expected Behavior

I expect when running poetry install to complete successfully.

Possible Solution

I expect this occurs due to a version change of PyTorch? If so what would be a suitable version that should work?

Steps to Reproduce

  1. git clone https://github.com/vwxyzjn/cleanrl && cd cleanrl
  2. poetry install
vwxyzjn commented 1 year ago

Thanks so much for reporting this. This feels like a fairly recent poetry issue https://github.com/python-poetry/poetry/issues/7691. Consider using poetry@1.3.1. Please let me know if that resolves the issue :)

samholt commented 1 year ago

Using poetry@1.3.1 resolves the issue! Thank you so much.