Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Raspberry PI camera issue with AppArmor

    Scheduled Pinned Locked Moved
    Plugins for DWC and DSF
    2
    3
    295
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Ant1undefined
      Ant1
      last edited by

      Hello !

      I am writing a plugin that uses a raspberry PI camera to calibrate print heads. I encounter an issue where the camera won't start when constructing the camera object:

      from picamera2 import PiCamera2
      cam = Picamera2()
      
      Returns the following error:
      [0:32:17.478523088] [4325]  INFO Camera camera.cpp:990 Pipeline handler in use by another process
      Camera __init__ sequence did not complete.
      

      I am pretty sure that this issue is due to the apparmor configuration because if I run the exact same script from another folder on the raspberry PI, I don't get any errors...

      Do you have any experience using a Raspberry PI camera from the plugins ?

      Thanks for your help !

      chrishammundefined 1 Reply Last reply Reply Quote 0
      • chrishammundefined
        chrishamm administrators @Ant1
        last edited by

        @Ant1 Did you add webcamAccess to your plugin privileges (see here)? Note that you need v3.5 and ideally the latest DuetPi image based on Debian Bookworm to access the new Pi webcam interface. It does work with the Spyglass webcam server plugin on Bookworm and with 3.5.

        Duet software engineer

        Ant1undefined 1 Reply Last reply Reply Quote 0
        • Ant1undefined
          Ant1 @chrishamm
          last edited by

          @chrishamm Thanks a lot, that was the problem ! I was looking at an old documentation page that didn't show that this permission was possible... Thank you !

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA