pytries / datrie

Fast, efficiently stored Trie for Python. Uses libdatrie.
http://pypi.python.org/pypi/datrie/
GNU Lesser General Public License v2.1
530 stars 88 forks source link

Building wheel for datrie (pyproject.toml) did not run successfully #98

Closed Rene-Hoover closed 10 months ago

Rene-Hoover commented 11 months ago

Hi - I'm trying to install datrie but get the following error. I'm running Ubuntu 23.04 with Python 3.11.4.

$ pip install datrie
Collecting datrie
  Using cached datrie-0.8.2.tar.gz (63 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: datrie
  Building wheel for datrie (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for datrie (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      running bdist_wheel
      running build
      running build_clib
      building 'datrie' library
      creating build
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/libdatrie
      creating build/temp.linux-x86_64-cpython-311/libdatrie/datrie
      gcc -pthread -B /home/chanlab/miniconda3/compiler_compat -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/chanlab/miniconda3/include -fPIC -O2 -isystem /home/chanlab/miniconda3/include -fPIC -Ilibdatrie -c libdatrie/datrie/alpha-map.c -o build/temp.linux-x86_64-cpython-311/libdatrie/datrie/alpha-map.o
      error: command 'gcc' failed: No such file or directory
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for datrie
Failed to build datrie
ERROR: Could not build wheels for datrie, which is required to install pyproject.toml-based projects

I appreciate any advice. Thanks!

kod-kristoff commented 10 months ago

do you have gccinstalled?

Rene-Hoover commented 10 months ago

Thanks! Installing a fresh version of gcc fixed the issue.