Libcamera-1.0.2-cp39-cp39-linux_armv7l.whl is not a supported wheel on this platform

Hi,
I get
sudo git clone https://github.com/ArduCAM/RaspberryPi.git
… made what suggested in RaspberryPi/Motorized_Focus_Camera/README.md

in RaspberryPi/Motorized_Focus_Camera/python run:
python3 -m pip install ./libcamera-1.0.2-cp39-cp39-linux_armv7l.whl
libcamera-1.0.2-cp39-cp39-linux_armv7l.whl is not a supported wheel on this platform.
same error
python3 -m pip install ./libcamera-1.0.1-cp39-cp39-linux_armv7l.whl
libcamera-1.0.1-cp39-cp39-linux_armv7l.whl is not a supported wheel on this platform.

uname -a
Linux Display20 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux

Can you help what next?

hi,@Robi

Is your Raspberry Pi system Bullseye or Buster?

Use the following command to check the python version:

python3 -V

For the difference between system versions and the installation of the corresponding libcamera python library, please refer to the following instructions:

Thank you!

My python is 3.7
Hardware Revision: a02082
Kernel Version: 5.10.103-v7+
OS Codename: buster
ARCH: armv7l

I get libcamera-1.0.1-cp37-cp37m-linux_armv7l.whl
r=cam.initCamera(640,480,libcamera.PixelFormat.RGB888, buffercount=4, rotation=0)
result:
[19:27:49.632882344] [1958] WARN IPAManager ipa_manager.cpp:149 No IPA found in ‘/usr/local/lib/arm-linux-gnueabihf/libcamera’
[19:27:49.633456976] [1958] INFO Camera camera_manager.cpp:293 libcamera v0.0.0

Another test with libcamera-still:
libcamera-still -t 5000 -o test.jpg

libEGL warning: DRI2: failed to authenticate
[20:24:03.788379024] [9318]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3139-5baab39e
terminate called without an active exception
Aborted

hi, @Robi

Which camera are you using?

You will also need to install our camera driver and the libcamera deb package we made.

The link below can be used as a reference for installing the driver. You also need to install the corresponding camera driver according to your camera type:

You can refer to the link below to install and use libcamera.

Thanks!

Read all of them. Made some updates.

Now my conf is:
Raspberry PI 3B
5MP OV5647 camera board with motorized lens for Raspberry Pi

cat /etc/os-release

PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

uname -a
Linux Display20 5.15.32-v7+ #1538 SMP Thu Mar 31 19:38:48 BST 2022 armv7l GNU/Linux

python3 -V
Python 3.9.2

cat /boot/config.txt

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

# arducam https://www.arducam.com/docs/cameras-for-raspberry-pi/raspberry-pi-libcamera-guide/
dtoverlay=imx519
dtoverlay=imx519,cam0
...

___________________Errors: :thinking:
dmesg

imx519 10-001a: failed to read chip id 519, with error -5
imx519: probe of 10-001a failed with error -5

Is this error about software or hadware error?

raspistill --verbose

mmal: Cannot read camera info, keeping the defaults for OV5647
....
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly

libcamera-still -v

Made X/EGL preview window
Opening camera...
[1:39:07.100137140] [14401]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3572-e13ccdd5
Closing Libcamera application(frames displayed 0, dropped 0)
Camera stopped!
Tearing down requests, buffers and configuration
Camera closed
ERROR: *** no cameras available ***

hi, @Robi

Sorry to get back to you so late.

Your driver is installed wrong, you need to install arducam driver.

You can refer to the command below to install the driver.

wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
chmod +x install_pivariety_pkgs.sh
./install_pivariety_pkgs.sh -p kernel_driver

Thanks,

Done again

wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
sudo chmod +x install_pivariety_pkgs.sh
./install_pivariety_pkgs.sh -p kernel_driver
=================================================
Hardware Revision: a02082
Kernel Version: 5.15.32-v7+
OS Codename: bullseye
ARCH: armv7l
=================================================

--2022-06-13 12:38:19--  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/kernel_driver_links.txt
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/b58ea688-a20e-4d92-bf5f-766153d93944?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220613%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220613T093820Z&X-Amz-Expires=300&X-Amz-Signature=500f7bf4a3610a62ec26ac0e78a9f704a63eb227bc493de7237fe8a06c153030&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dkernel_driver_links.txt&response-content-type=application%2Foctet-stream [following]
--2022-06-13 12:38:20--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/b58ea688-a20e-4d92-bf5f-766153d93944?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220613%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220613T093820Z&X-Amz-Expires=300&X-Amz-Signature=500f7bf4a3610a62ec26ac0e78a9f704a63eb227bc493de7237fe8a06c153030&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dkernel_driver_links.txt&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7406 (7.2K) [application/octet-stream]
Saving to: ‘kernel_driver_links.txt’

kernel_driver_links.txt              100%[===================================================================>]   7.23K  --.-KB/s    in 0.01s   

2022-06-13 12:38:20 (698 KB/s) - ‘kernel_driver_links.txt’ saved [7406/7406]

--2022-06-13 12:38:20--  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/Arducam_pivariety_v4l2_v1.0/arducam_kernel_driver_5.15.y.tar.gz
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/3d1945ba-9b3d-4f0a-b1a7-1fa7b12f2d67?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220613%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220613T093821Z&X-Amz-Expires=300&X-Amz-Signature=b65d695d7b395d110a1355e512ac44410f04b1657c9b2383d470d11d11f0b7f2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Darducam_kernel_driver_5.15.y.tar.gz&response-content-type=application%2Foctet-stream [following]
--2022-06-13 12:38:21--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/3d1945ba-9b3d-4f0a-b1a7-1fa7b12f2d67?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220613%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220613T093821Z&X-Amz-Expires=300&X-Amz-Signature=b65d695d7b395d110a1355e512ac44410f04b1657c9b2383d470d11d11f0b7f2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Darducam_kernel_driver_5.15.y.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 98742 (96K) [application/octet-stream]
Saving to: ‘arducam_kernel_driver_5.15.y.tar.gz’

arducam_kernel_driver_5.15.y.tar.gz  100%[===================================================================>]  96.43K  --.-KB/s    in 0.06s   

2022-06-13 12:38:21 (1.70 MB/s) - ‘arducam_kernel_driver_5.15.y.tar.gz’ saved [98742/98742]

is kernel driver
Release/
Release/uninstall_driver.sh
Release/install_driver.sh
Release/arducam_camera_selector.sh
Release/bin/
Release/bin/5.15.30-v8+/
Release/bin/5.15.30-v8+/arducam.dtbo
Release/bin/5.15.30-v8+/arducam.ko
Release/bin/5.15.30-v7l+/
Release/bin/5.15.30-v7l+/arducam.dtbo
Release/bin/5.15.30-v7l+/arducam.ko
Release/bin/5.15.30+/
Release/bin/5.15.30+/arducam.dtbo
Release/bin/5.15.30+/arducam.ko
Release/bin/5.15.32-v8+/
Release/bin/5.15.32-v8+/arducam.dtbo
Release/bin/5.15.32-v8+/arducam.ko
Release/bin/5.15.32-v7+/
Release/bin/5.15.32-v7+/arducam.dtbo
Release/bin/5.15.32-v7+/arducam.ko
Release/bin/5.15.32+/
Release/bin/5.15.32+/arducam.dtbo
Release/bin/5.15.32+/arducam.ko
Release/bin/5.15.30-v7+/
Release/bin/5.15.30-v7+/arducam.dtbo
Release/bin/5.15.30-v7+/arducam.ko
Release/bin/5.15.32-v7l+/
Release/bin/5.15.32-v7l+/arducam.dtbo
Release/bin/5.15.32-v7l+/arducam.ko
Installing ARDUCAM-PIVARIETY-V4L2-DRIVER...
--------------------------------------

All errors are exactly same as before!?

What next?

hi, @Robi

Can you provide the running log of libcamera-still -t 0 command and /boot/config.txt file content.

Thank you!

Now it’s working.
/boot/config.txt was the key.

# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=85

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=off

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Disable compensation for displays with overscan
disable_overscan=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
#otg_mode=1

# arducam https://www.arducam.com/docs/cameras-for-raspberry-pi/raspberry-pi-libcamera-guide/
#dtoverlay=imx519
#dtoverlay=imx519,cam0

[pi4]
# Run as fast as firmware / board allows
arm_boost=1
dtoverlay=arducam

[all]
gpu_mem=128

Great to hear that you have successfully run your camera.

Hi!

I’ve been facing a similar issue.

I was wondering if the solution you suggested above will also work with the following specifications

Error log:

pye@raspberrypi:~ $ libcamera-still -t 5000 -o test.jpg
[0:02:45.442544575] [1006]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3139-5baab39e
terminate called without an active exception
Aborted

For reference, here are my system specifications

  • Hardware: Raspberry Pi Model 3B
  • OS: Buster (kernel 5.10.103-v7+)
  • Python Version: 3.7.3
  • Camera: Arducam IMX519