Skip to content

[Bug]: issue in installing tolan on Linux ubuntu #45

Description

@Tariq3654467

Version

v 1.0.0

Operating System

Linux

Python Version

3.12

What happened?

Building wheels for collected packages: cchardet
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-29r7kp6t/overlay/lib/python3.12/site-packages/setuptools/dist.py:765: 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/version.py -> build/lib.linux-x86_64-cpython-312/cchardet
  copying src/cchardet/__init__.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/vadionpakistan/Documents/pdf_ingestion/env/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
(env) vadionpakistan@saim-HP-ProBook-450-G4:/Documents/pdf_ingestion$ pip install talon --no-deps
Collecting talon
Using cached talon-1.4.4-py3-none-any.whl
Installing collected packages: talon
Successfully installed talon-1.4.4
(env) vadionpakistan@saim-HP-ProBook-450-G4:
/Documents/pdf_ingestion$ python3 talon_use.py
Traceback (most recent call last):
File "/home/vadionpakistan/Documents/pdf_ingestion/talon_use.py", line 1, in
import talon
File "/home/vadionpakistan/Documents/pdf_ingestion/env/lib/python3.12/site-packages/talon/init.py", line 2, in
from talon.quotations import register_xpath_extensions
File "/home/vadionpakistan/Documents/pdf_ingestion/env/lib/python3.12/site-packages/talon/quotations.py", line 13, in
from lxml import html, etree
ModuleNotFoundError: No module named 'lxml'

Steps to reproduce

Image

Relevant log output

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageTriage is required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions