warcit icon indicating copy to clipboard operation
warcit copied to clipboard

Issue when installing can't install

Open Fran2789 opened this issue 6 months ago • 0 comments
trafficstars

when i install using./path/to/venv/bin/pip install warcit i get this error:

Building wheel for cchardet (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for cchardet (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [32 lines of output]
      /tmp/pip-build-env-s0yzfrxk/overlay/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!
      
              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:
      
              License :: OSI Approved :: Mozilla Public License 1.1 (MPL 1.1)
              License :: OSI Approved :: GNU General Public License (GPL)
              License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
      
              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************
      
      !!
        self._finalize_license_expression()
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-312/cchardet
      copying src/cchardet/__init__.py -> build/lib.linux-x86_64-cpython-312/cchardet
      copying src/cchardet/version.py -> build/lib.linux-x86_64-cpython-312/cchardet
      running build_ext
      building 'cchardet._cchardet' extension
      creating build/temp.linux-x86_64-cpython-312/src/cchardet
      creating build/temp.linux-x86_64-cpython-312/src/ext/uchardet/src
      creating build/temp.linux-x86_64-cpython-312/src/ext/uchardet/src/LangModels
      x86_64-linux-gnu-g++ -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -Isrc/ext/uchardet/src -I/home/asdf/path/to/venv/include -I/usr/include/python3.12 -c src/cchardet/_cchardet.cpp -o build/temp.linux-x86_64-cpython-312/src/cchardet/_cchardet.o
      src/cchardet/_cchardet.cpp:196:12: fatal error: longintrepr.h: No such file or directory
        196 |   #include "longintrepr.h"
            |            ^~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-g++' 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 cchardet
Failed to build cchardet
ERROR: Could not build wheels for cchardet, which is required to install pyproject.toml-based projects

Fran2789 avatar May 01 '25 07:05 Fran2789