chroma icon indicating copy to clipboard operation
chroma copied to clipboard

[Install issue]: `ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device`

Open Rajdave69 opened this issue 1 year ago • 1 comments

What happened?

When trying to install chromadb, I face this error. I've already check df -h, I have more than 90% space free, so that's not a problem. I've also hears that temp is supposed to be half of the system's memory, but that doesn't seem to be a problem either. I doubt this would be more than 4 GB.

it's running inside a docker contained (pterodactyl server)

Versions

Chroma 0.3.21 (pip) Python 3.11.3 Ubuntu 20.10

Relevant log output

Collecting chromadb
  Using cached chromadb-0.3.21-py3-none-any.whl (46 kB)
Collecting pandas>=1.3
  Using cached pandas-2.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB)
Collecting requests>=2.28
  Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Requirement already satisfied: pydantic>=1.9 in ./.local/lib/python3.11/site-packages (from chromadb) (1.10.7)
Collecting hnswlib>=0.7
  Using cached hnswlib-0.7.0.tar.gz (33 kB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      Collecting setuptools>=42
        Using cached setuptools-67.6.1-py3-none-any.whl (1.1 MB)
      Collecting wheel
        Using cached wheel-0.40.0-py3-none-any.whl (64 kB)
      Collecting numpy>=1.10.0
        Using cached numpy-1.24.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
      Collecting pybind11>=2.0
        Using cached pybind11-2.10.4-py3-none-any.whl (222 kB)
      Installing collected packages: wheel, setuptools, pybind11, numpy
      ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device
      
      [notice] A new release of pip available: 22.3.1 -> 23.1
      [notice] To update, run: pip install --upgrade pip
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies 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.

Rajdave69 avatar Apr 15 '23 18:04 Rajdave69

The most likely cause is lack of space in /tmp. The workaround is to instruct pip to use an alternative folder. I use the following formulation:

TMPDIR=/home/user/tmp/ python3 -m pip install a_package

Source: https://askubuntu.com/questions/1326304/cannot-install-pip-module-because-there-is-no-space-left-on-device

nsanta avatar Apr 15 '23 18:04 nsanta

works, thank you

Rajdave69 avatar Apr 15 '23 19:04 Rajdave69

thanks @nsanta !

jeffchuber avatar Apr 15 '23 20:04 jeffchuber