Skip to content

"lzomodule.c:38:10: fatal error: lzo/lzo1.h: No such file or directory" on Ubuntu / missing wheels #85

Description

@mxmlnkn

It seems that only wheels for MacOS and Windows are available on PyPI. This results in the following error on pip install python-lzo:

Defaulting to user installation because normal site-packages is not writeable
Collecting python-lzo
  Downloading python-lzo-1.15.tar.gz (17 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: python-lzo
  Building wheel for python-lzo (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for python-lzo (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [5 lines of output]
      lzomodule.c:38:10: fatal error: lzo/lzo1.h: No such file or directory
         38 | #include <lzo/lzo1.h>
            |          ^~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' 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 python-lzo
Failed to build python-lzo
ERROR: Could not build wheels for python-lzo, which is required to install pyproject.toml-based projects

After installing the missing dependencies with sudo apt install liblzo2-dev, it builds fine.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions