Giter Site home page Giter Site logo

Bullseye default python version about pi-timolo HOT 5 OPEN

MS-Stamp avatar MS-Stamp commented on September 1, 2024
Bullseye default python version

from pi-timolo.

Comments (5)

pageauc avatar pageauc commented on September 1, 2024

from pi-timolo.

hughc avatar hughc commented on September 1, 2024

I haven't had any luck with this under bullseye / python3. I'm new to the script, but got it working without issues a few months back. When I returned, I started afresh with a new SD image, which I assume included the OS update.

hugh@zerotwo:~/pi-timolo $ ./pi-timolo.py
-------------------------------------------------------
pi-timolo.py ver 12.52  written by Claude Pageau
-------------------------------------------------------
Loading Wait ....
WARN  : Could Not Import pyexiv2. Required for Saving Image EXIF meta data
        If Running under python3 then Install pyexiv2 library for python3 per
        cd ~/pi-timolo
        ./install-py3exiv2.sh

Please Review Warnings  Wait 10 sec ...
Loading Wait ....
Traceback (most recent call last):
  File "/home/hugh/pi-timolo/./pi-timolo.py", line 395, in <module>
    from picamera import PiCamera
  File "/usr/lib/python3/dist-packages/picamera/__init__.py", line 72, in <module>
    from picamera.exc import (
  File "/usr/lib/python3/dist-packages/picamera/exc.py", line 41, in <module>
    import picamera.mmal as mmal
  File "/usr/lib/python3/dist-packages/picamera/mmal.py", line 49, in <module>
    _lib = ct.CDLL('libmmal.so')
  File "/usr/lib/python3.9/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libmmal.so: cannot open shared object file: No such file or directory

libmmal.so is present:

hugh@zerotwo:~/opencv3-setup $ ls /opt/vc/lib/libm*
/opt/vc/lib/libmmal_components.so  /opt/vc/lib/libmmal.so       /opt/vc/lib/libmmal_vc_client.so
/opt/vc/lib/libmmal_core.so        /opt/vc/lib/libmmal_util.so

I have enabled the legacy camera stack via rpi-config

I'm running on a Pi Zero 2 W. The github readme for python 3 suggests you need to build OpenCV, but when I download and run your build / install script, I get this:

./cv3-install-menu.sh ver 3.82    written by Claude Pageau

Internet Check OpenCV version 4.1.2  Wait ...

STATUS
Current Installed python OpenCV version is 4.5.1
Variable OPENCV_VER=4.1.2 Is a Valid OpenCV Version

UPGRADE
python OpenCV Version From 4.5.1
                       To  4.1.2

Which suggests a manual build is unnecessary?

from pi-timolo.

pageauc avatar pageauc commented on September 1, 2024

from pi-timolo.

hughc avatar hughc commented on September 1, 2024

Sorry, I did not accurately explain that I had already enabled legacy camera support (I mentioned rpi-config, rather than raspi-config).

The result remains the same, still seeing the libmmal error as previously quoted. This, after reinstalling after double-checking that camera support was enabled.

from pi-timolo.

pageauc avatar pageauc commented on September 1, 2024

from pi-timolo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.