[OTHER] libcap development headers required for python-prctl
See original GitHub issueRunning the installation commands in the README yields an error when attempting to install the python-prctl
dependency:
Collecting python-prctl
Using cached python-prctl-1.8.1.tar.gz (28 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
You need to install libcap development headers to build this module
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
This can be solved by installing the libcap development headers. It might be worth including this in the README installation instructions, changing this:
sudo apt install -y python3-libcamera python3-kms++
to:
sudo apt install -y python3-libcamera python3-kms++ libcap-dev
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:7
Top Results From Across the Web
Welcome to python-prctl's documentation! - PythonHosted.org
Before you try to install python-prctl, you will need to install the following: gcc; libc development headers; libcap development headers.
Read more >seveas/python-prctl: Wrapping prctl for python - GitHub
... Before installing python-prctl, you need GCC, libc headers and libcap headers. On Debian/Ubuntu: $ sudo apt-get install build-essential libcap-dev On ...
Read more >WRN Install python-prctl so that processes can be cleaned ...
I need to use Python 3.7 for my work, so I installed: sudo apt-get install python3.7-dev libcap-dev python3-setuptools.
Read more >python-prctl - Python Package Health Analysis - Snyk
Before installing python-prctl, you need GCC, libc headers and libcap headers. On Debian/Ubuntu: $ sudo apt-get install build-essential libcap-dev.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The Lite version of the OS doesn’t include Qt or OpenGL, so it’s still quite small (and those features of Picamera2 won’t work unless you fetch those dependencies explicitly).
I would also caution a bit about updating Picamera2 on the fly. libcamera doesn’t have a stable API yet so it’s very easy for libcamera and Picamera2 to get out of sync. In fact we’ve just been through another bout of this (bugs to do with “Jpeg” and “Sycc”) and it’s just pain all round. If you can stick to
sudo apt upgrade
then you’ll always get packages that work together.Or is it related to the fact that you were installing prctl with pip? I generally have more trouble with pip because stuff tends not to be available pre-compiled which causes all sorts of headaches. Does installing from apt work correctly for you? This is normally what I would recommend.