huggingface / huggingface/dataset-viewer

Dev setup error on make start

Open
#3,091 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
900
Forks
131
Avg merge
9h 26m
Merged PRs (30d)
14

Description

Hi team,

I'm trying to set this up in my local and everything works fine till make install,
getting this error below when I run make start. I do have g++ installed in /usr/bin
Can I get some help please

9.917   ChefBuildError
9.917
9.917   Backend subprocess exited when trying to invoke build_wheel
9.917
9.917   running bdist_wheel
9.917   running build
9.917   running build_clib
9.917   building 'libmarisa-trie' library
9.917   creating build/temp.linux-aarch64-cpython-39/marisa-trie/lib/marisa
9.917   creating build/temp.linux-aarch64-cpython-39/marisa-trie/lib/marisa/grimoire/io
9.917   creating build/temp.linux-aarch64-cpython-39/marisa-trie/lib/marisa/grimoire/trie
9.917   creating build/temp.linux-aarch64-cpython-39/marisa-trie/lib/marisa/grimoire/vector
9.917   g++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/agent.cc -o build/temp.linux-aarch64-cpython-39/marisa-trie/lib/marisa/agent.o
9.917   error: command 'g++' failed: No such file or directory
9.917
9.917
9.917   at /usr/local/lib/python3.9/site-packages/poetry/installation/chef.py:164 in _prepare
9.924       160│
9.924       161│                 error = ChefBuildError("\n\n".join(message_parts))
9.924       162│
9.924       163│             if error is not None:
9.924     → 164│                 raise error from None
9.924       165│
9.924       166│             return path
9.924       167│
9.924       168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
9.924
9.924 Note: This error originates from the build backend, and is likely not a problem with poetry but with marisa-trie (1.1.0) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "marisa-trie (==1.1.0)"'.
9.924
------
failed to solve: process "/bin/sh -c poetry install --no-cache" did not complete successfully: exit code: 1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running make start and inspect the Docker build step that runs poetry install --no-cache, focusing on whether the build environment can find g++ while installing marisa-trie. Done means the development setup completes successfully without the reported g++ or wheel-build error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
build-system, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.