mees / calvin

CALVIN - A benchmark for Language-Conditioned Policy Learning for Long-Horizon Robot Manipulation Tasks
http://calvin.cs.uni-freiburg.de
MIT License
309 stars 49 forks source link

use mmh3 instead of pyhash #80

Closed StarCycle closed 1 month ago

StarCycle commented 1 month ago

Can we use mmh3 instead of pyhash?

It's still difficult to install pyhash in Google Colab. My script:

# Switch to python3.8
!apt-get update -y
!apt-get install python3.8 python3.8-distutils
!update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
!update-alternatives --config python3
!apt-get install python3-pip
!python3 -m pip install --upgrade pip --user

# Install pyhash
!pip install setuptools==57.5
!pip install pyhash

But I still get

Collecting pyhash
  Downloading pyhash-0.9.3.tar.gz (602 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 602.3/602.3 kB 6.7 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyhash
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for pyhash (setup.py) ... error
  ERROR: Failed building wheel for pyhash
  Running setup.py clean for pyhash
Failed to build pyhash
ERROR: Could not build wheels for pyhash, which is required to install pyproject.toml-based projects

By contrast, using mmh3 makes my life much easier!