MineDojo / Voyager

An Open-Ended Embodied Agent with Large Language Models
https://voyager.minedojo.org/
MIT License
5.66k stars 536 forks source link

Can't pip install -e . #172

Open femto opened 1 month ago

femto commented 1 month ago

Briefly describe your issue

Building wheels for collected packages: cchardet
  Building wheel for cchardet (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-12.4-x86_64-cpython-311
      creating build/lib.macosx-12.4-x86_64-cpython-311/cchardet
      copying src/cchardet/version.py -> build/lib.macosx-12.4-x86_64-cpython-311/cchardet
      copying src/cchardet/__init__.py -> build/lib.macosx-12.4-x86_64-cpython-311/cchardet
      running build_ext
      building 'cchardet._cchardet' extension
      creating build/temp.macosx-12.4-x86_64-cpython-311
      creating build/temp.macosx-12.4-x86_64-cpython-311/src
      creating build/temp.macosx-12.4-x86_64-cpython-311/src/cchardet
      creating build/temp.macosx-12.4-x86_64-cpython-311/src/ext
      creating build/temp.macosx-12.4-x86_64-cpython-311/src/ext/uchardet
      creating build/temp.macosx-12.4-x86_64-cpython-311/src/ext/uchardet/src
      creating build/temp.macosx-12.4-x86_64-cpython-311/src/ext/uchardet/src/LangModels
      clang++ -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Isrc/ext/uchardet/src -I/Users/femtozheng/python-project/Voyager/venv/include -I/Users/femtozheng/.pyenv/versions/3.11.4/include/python3.11 -c src/cchardet/_cchardet.cpp -o build/temp.macosx-12.4-x86_64-cpython-311/src/cchardet/_cchardet.o
      src/cchardet/_cchardet.cpp:196:12: fatal error: 'longintrepr.h' file not found
        #include "longintrepr.h"
                 ^~~~~~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang++' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cchardet
  Running setup.py clean for cchardet
Failed to build cchardet
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cchardet)

Please provide your python, nodejs, Minecraft, and Fabric versions here

Python 3.11.4 on mac

Rcpentuy commented 1 month ago

it worked for me to switch from python 3.12 to python 3.9.6 on mac

github-actions[bot] commented 5 days ago

This issue is stale because it has been open for 30 days with no activity.