Skip to content

Unable to install with uv tool install graphifyy #1104

Description

@majacque

Hello, I tried to install graphify using uv on Ubuntu 24.04.4 LTS.
I first ran curl -LsSf https://astral.sh/uv/install.sh | sh and then uv tool install graphifyy like it's said in the README.
But the package can't be install due to a problem with tree-sitter-dm dependence.
Here is the output:

  × Failed to build 'tree-sitter-dm==0.25.1'
  ├─▶ The build backend returned an error
  ╰─▶ Call to 'setuptools.build_meta.build_wheel' failed (exit status: 1)

      [stdout]
      running bdist_wheel
      running build
      creating build/lib.linux-x86_64-cpython-312/tree_sitter_dm/queries
      creating build/lib.linux-x86_64-cpython-312/tree_sitter_dm/queries/vscode
      copying queries/vscode/injections.scm -> build/lib.linux-x86_64-cpython-312/tree_sitter_dm/queries/vscode
      copying queries/vscode/highlights.scm -> build/lib.linux-x86_64-cpython-312/tree_sitter_dm/queries/vscode
      copying queries/vscode/tags.scm -> build/lib.linux-x86_64-cpython-312/tree_sitter_dm/queries/vscode
      creating build/lib.linux-x86_64-cpython-312/tree_sitter_dm/queries/neovim
      copying queries/neovim/injections.scm -> build/lib.linux-x86_64-cpython-312/tree_sitter_dm/queries/neovim
      copying queries/neovim/highlights.scm -> build/lib.linux-x86_64-cpython-312/tree_sitter_dm/queries/neovim
      copying queries/neovim/tags.scm -> build/lib.linux-x86_64-cpython-312/tree_sitter_dm/queries/neovim
      copying queries/highlights.scm -> build/lib.linux-x86_64-cpython-312/tree_sitter_dm/queries
      copying queries/tags.scm -> build/lib.linux-x86_64-cpython-312/tree_sitter_dm/queries
      running build_py
      copying bindings/python/tree_sitter_dm/__init__.py -> build/lib.linux-x86_64-cpython-312/tree_sitter_dm
      running egg_info
      writing bindings/python/tree_sitter_dm.egg-info/PKG-INFO
      writing dependency_links to bindings/python/tree_sitter_dm.egg-info/dependency_links.txt
      writing requirements to bindings/python/tree_sitter_dm.egg-info/requires.txt
      writing top-level names to bindings/python/tree_sitter_dm.egg-info/top_level.txt
      reading manifest file 'bindings/python/tree_sitter_dm.egg-info/SOURCES.txt'
      adding license file 'LICENSE'
      writing manifest file 'bindings/python/tree_sitter_dm.egg-info/SOURCES.txt'
      copying bindings/python/tree_sitter_dm/__init__.pyi -> build/lib.linux-x86_64-cpython-312/tree_sitter_dm
      copying bindings/python/tree_sitter_dm/binding.c -> build/lib.linux-x86_64-cpython-312/tree_sitter_dm
      copying bindings/python/tree_sitter_dm/py.typed -> build/lib.linux-x86_64-cpython-312/tree_sitter_dm
      running build_ext
      building '_binding' extension
      creating build/temp.linux-x86_64-cpython-312/bindings/python/tree_sitter_dm
      creating build/temp.linux-x86_64-cpython-312/src
      x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -DPY_SSIZE_T_CLEAN -DTREE_SITTER_HIDE_SYMBOLS -DPy_LIMITED_API=0x030A0000
      -Isrc -I/home/matthieu-jacquet/.cache/uv/builds-v0/.tmpLPPQuK/include -I/usr/include/python3.12 -c bindings/python/tree_sitter_dm/binding.c -o
      build/temp.linux-x86_64-cpython-312/bindings/python/tree_sitter_dm/binding.o -std=c11 -fvisibility=hidden

      [stderr]
      /home/matthieu-jacquet/.cache/uv/builds-v0/.tmpLPPQuK/lib/python3.12/site-packages/wheel/bdist_wheel.py:4: FutureWarning: The 'wheel' package is no longer the canonical location of
      the 'bdist_wheel' command, and will be removed in a future release. Please update to setuptools v70.1 or later which contains an integrated version of this command.
        warn(
      /home/matthieu-jacquet/.cache/uv/builds-v0/.tmpLPPQuK/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a
      TOML table is deprecated
      !!

              ********************************************************************************
              Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

              By 2027-Feb-18, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        corresp(dist, value, root_dir)
      bindings/python/tree_sitter_dm/binding.c:1:10: fatal error: Python.h: Aucun fichier ou dossier de ce nom
          1 | #include <Python.h>
            |          ^~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1


hint: `tree-sitter-dm` (v0.25.1) was included because `graphifyy` (v0.8.27) depends on `tree-sitter-dm`
hint: Build failures usually indicate a problem with the package or the build environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions