mees/calvin

error in install.sh - pyhash package

mnm117 opened this issue · 4 comments

Hello, when I try to " sh install.sh" I faced below error:


Collecting pyhash (from Calvin==0.0.1)
  Using cached pyhash-0.9.3.tar.gz (602 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      /home/mohsen/anaconda3/envs/RoboFlamingo/lib/python3.8/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!
      
              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************
      
      !!
        dist.fetch_build_eggs(dist.setup_requires)
      error in pyhash setup command: use_2to3 is invalid.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

then I tried " pip install --use-pep517 pyhash " and the error exists. Can anyone help me?


collecting pyhash
  Using cached pyhash-0.9.3.tar.gz (602 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in pyhash setup command: use_2to3 is invalid.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Hi @mnm117, you have to downgrade setuptools to a version below 58 before installing pyhash.

The version that worked for me : setuptools~=57.5.0

Hi!
I was able to resolve this error using a different version of setuptools. However, I am stuck while trying to train on debug. My main issue is 'failed to EGL with glad'. It seems that I can solve this by running in headless mode. However, I am unable to do so for some reason. I tried setting cfg.show_gui = False in datarenderer.py. But I am still running into same problems. Any help would be appreciated!

BTW, really great work!