Skip to content

misp-modules fails to install on recen ubuntu 24.04 #733

@SteveClement

Description

@SteveClement
sudo -u www-data -H /var/www/MISP/venv/bin/pip install misp-modules[all]

pdftotext seems to make issues:

Using cached pycparser-2.22-py3-none-any.whl (117 kB)
Building wheels for collected packages: pdftotext
  Building wheel for pdftotext (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pdftotext (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [13 lines of output]
      <string>:54: SyntaxWarning: invalid escape sequence '\i'
      <string>:55: SyntaxWarning: invalid escape sequence '\l'
      running bdist_wheel
      running build
      running build_ext
      building 'pdftotext' extension
      creating build/temp.linux-x86_64-cpython-312
      x86_64-linux-gnu-g++ -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -DPOPPLER_CPP_AT_LEAST_0_58_0=0 -DPOPPLER_CPP_AT_LEAST_0_88_0=0 -I/var/www/MISP/venv/include -I/usr/include/python3.12 -c pdftotext.cpp -o build/temp.linux-x86_64-cpython-312/pdftotext.o -Wall
      pdftotext.cpp:3:10: fatal error: poppler/cpp/poppler-document.h: No such file or directory
          3 | #include <poppler/cpp/poppler-document.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 pdftotext
Failed to build pdftotext
ERROR: Could not build wheels for pdftotext, which is required to install pyproject.toml-based projects

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