OpenInterpreter / open-interpreter

A natural language interface for computers
http://openinterpreter.com/
GNU Affero General Public License v3.0
52.24k stars 4.61k forks source link

ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects #1457

Open franciscoabenza opened 5 days ago

franciscoabenza commented 5 days ago

Describe the bug

Collecting grpcio-status<2.0.dev0,>=1.33.2 Downloading https://www.piwheels.org/simple/grpcio-status/grpcio_status-1.66.0-py3-none-any.whl (14 kB) Downloading https://www.piwheels.org/simple/grpcio-status/grpcio_status-1.65.5-py3-none-any.whl (14 kB) Downloading https://www.piwheels.org/simple/grpcio-status/grpcio_status-1.65.4-py3-none-any.whl (14 kB) Downloading https://www.piwheels.org/simple/grpcio-status/grpcio_status-1.65.2-py3-none-any.whl (14 kB) Downloading https://www.piwheels.org/simple/grpcio-status/grpcio_status-1.65.1-py3-none-any.whl (14 kB) Downloading https://www.piwheels.org/simple/grpcio-status/grpcio_status-1.64.3-py3-none-any.whl (14 kB) Downloading https://www.piwheels.org/simple/grpcio-status/grpcio_status-1.64.1-py3-none-any.whl (14 kB) Downloading https://www.piwheels.org/simple/grpcio-status/grpcio_status-1.64.0-py3-none-any.whl (14 kB) Downloading https://www.piwheels.org/simple/grpcio-status/grpcio_status-1.63.2-py3-none-any.whl (14 kB) Downloading https://www.piwheels.org/simple/grpcio-status/grpcio_status-1.63.0-py3-none-any.whl (14 kB) Downloading https://www.piwheels.org/simple/grpcio-status/grpcio_status-1.62.3-py3-none-any.whl (14 kB) Building wheels for collected packages: psutil Building wheel for psutil (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for psutil (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [48 lines of output] as: error while loading shared libraries: /lib/aarch64-linux-gnu/libopcodes-2.40-system.so: invalid ELF header running bdist_wheel running build running build_py creating build creating build/lib.linux-aarch64-cpython-311 creating build/lib.linux-aarch64-cpython-311/psutil copying psutil/_compat.py -> build/lib.linux-aarch64-cpython-311/psutil copying psutil/_pssunos.py -> build/lib.linux-aarch64-cpython-311/psutil copying psutil/_pslinux.py -> build/lib.linux-aarch64-cpython-311/psutil copying psutil/init.py -> build/lib.linux-aarch64-cpython-311/psutil copying psutil/_psbsd.py -> build/lib.linux-aarch64-cpython-311/psutil copying psutil/_psposix.py -> build/lib.linux-aarch64-cpython-311/psutil copying psutil/_psaix.py -> build/lib.linux-aarch64-cpython-311/psutil copying psutil/_common.py -> build/lib.linux-aarch64-cpython-311/psutil copying psutil/_pswindows.py -> build/lib.linux-aarch64-cpython-311/psutil copying psutil/_psosx.py -> build/lib.linux-aarch64-cpython-311/psutil creating build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/test_unicode.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/test_process.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/test_contracts.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/test_misc.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/test_bsd.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/test_connections.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/test_process_all.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/init.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/main.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/test_posix.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/runner.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/test_sunos.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/test_aix.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/test_memleaks.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/test_system.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/test_linux.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/test_testutils.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/test_windows.py -> build/lib.linux-aarch64-cpython-311/psutil/tests copying psutil/tests/test_osx.py -> build/lib.linux-aarch64-cpython-311/psutil/tests running build_ext building 'psutil._psutil_linux' extension creating build/temp.linux-aarch64-cpython-311 creating build/temp.linux-aarch64-cpython-311/psutil creating build/temp.linux-aarch64-cpython-311/psutil/arch creating build/temp.linux-aarch64-cpython-311/psutil/arch/linux aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=598 -DPy_LIMITED_API=0x03060000 -DPSUTIL_ETHTOOL_MISSING_TYPES=1 -DPSUTIL_LINUX=1 -I/home/fran/Documents/envs/.interpreter/include -I/usr/include/python3.11 -c psutil/_psutil_common.c -o build/temp.linux-aarch64-cpython-311/psutil/_psutil_common.o as: error while loading shared libraries: /lib/aarch64-linux-gnu/libopcodes-2.40-system.so: invalid ELF header psutil could not be installed from sources. Perhaps Python header files are not installed. Try running: sudo apt-get install gcc python3-dev error: command '/usr/bin/aarch64-linux-gnu-gcc' 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 psutil Failed to build psutil ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects

Reproduce

pip install open-interpreter in Raspbian OS

Tried:

sudo apt-get update
sudo apt-get install --reinstall binutils
sudo apt-get install gcc python3-dev
pip3 cache purge
pip3 install open-interpreter

It does not fix it

Expected behavior

install open-interpreter

Screenshots

No response

Open Interpreter version

WARNING: Package(s) not found: open-interpreter

Python version

3.11.2

Operating System name and version

Debian (Raspbian Lite)

Additional context

Raspberry Pi 3

franciscoabenza commented 1 day ago

in my pi4 it went fine: Stored in directory: /home/fran/.cache/pip/wheels/a6/1e/65/fb0ad37886dca3f25a0aa8e50f4903c5bdbde4bb8a9b1e27de Successfully built psutil Installing collected packages: wget, wcwidth, sortedcontainers, pyperclip, pure-eval, ptyprocess, zipp, xmod, websocket-client, urllib3, uritemplate, typing-extensions, traitlets, tqdm, tornado, toml, termcolor, sniffio, smmap, six, shortuuid, shellingham, send2trash, rpds-py, regex, readchar, pyzmq, pyyaml, python-dotenv, pysocks, pyparsing, pygments, pyasn1, psutil, protobuf, prompt-toolkit, platformdirs, pillow, pexpect, parso, packaging, numpy, nest-asyncio, multidict, mdurl, MarkupSafe, kiwisolver, joblib, jiter, idna, html2text, h11, grpcio, fsspec, frozenlist, fonttools, filelock, executing, distro, decorator, debugpy, cycler, click, charset-normalizer, certifi, cachetools, attrs, astor, annotated-types, aiohappyeyeballs, yaspin, yarl, wsproto, runs, rsa, requests, referencing, python-dateutil, pydantic-core, pyasn1-modules, proto-plus, outcome, nltk, matplotlib-inline, markdown-it-py, jupyter-core, jinja2, jedi, importlib-metadata, httplib2, httpcore, googleapis-common-protos, gitdb, contourpy, comm, blessed, asttokens, anyio, aiosignal, webdriver-manager, trio, tiktoken, starlette, stack-data, rich, pydantic, matplotlib, jupyter-client, jsonschema-specifications, huggingface-hub, httpx, html2image, grpcio-status, google-auth, gitpython, editor, aiohttp, typer, trio-websocket, tokentrim, tokenizers, openai, jsonschema, ipython, inquirer, google-auth-httplib2, google-api-core, git-python, selenium, litellm, ipykernel, google-api-python-client, google-ai-generativelanguage, google-generativeai, open-interpreter

Notnaton commented 1 day ago

Try this

sudo apt update
sudo apt install --reinstall binutils