Where did you get the camera module(s)?
n/a
Model number of the product(s)?
OV2311, USB3.0_UC-593_Rev.C
What hardware/platform were you working on?
Raspberry Pi 4
Instructions you have followed. (link/manual/etc.)
Arducam:
Jetson/python/streaming_demo (Raspberry Pi didn’t work due to ARCH64)
Setup of Python3.7 environment in ubuntu:
(It has 3.10.4 by default and I want newest version available for other projects)
deadsnakes-python39-ubuntu-bionic.md
# Deadsnakes python 3.9 on Ubuntu 18.04 LTS
NOTE: Recently switched back to using [pyenv](https://github.com/pyenv/pyenv) so I can run multiple python versions without losing my mind. It only takes a few minutes to set up, but provides the flexibility I need without making things too complicated. See my gist, [Manage python versions on Linux with pyenv](https://gist.github.com/plembo/f2f6d6df4343520c35fc9b042ea4c5c0) for more.
The [deadsnakes PPA](https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa) make the latest stable versions of python available on Ubuntu 18.04 LTS (3.9 is already in the official apt repo for 20.04). I now find it preferable to installing from source.
The following was tested on a Ubuntu 18.04.5 LTS desktop with python 3.6.9 as the system python version ("python3").
The latest python available from deadsnakes as of July, 2021 is 3.9.6.
## Prerequisites
This file has been truncated. show original
Problems you were having?
Two issues:
This kept happening when trying config parser install
When trying to run streaming demo in a virtual env of python3.7, the camera doesn’t open
The dmesg log from your hardware?
Troubleshooting attempts you’ve made?
Well, I couldn’t see anything that I could do for the parser make…
I was trying to use Raspberry Pi steps first, but that wouldn’t even get me this far.
What help do you need?
I want to get the camera running on a raspberry Pi 4B with Python
I want to keep new version of python available (prefer running Arducam on 3.10)
What is your suggested method of running from older versions of python?
wong
May 20, 2022, 3:35am
2
This error looks like a permission issue, try running the program with sudo.
For the arm version, currently we do not support python 3.10 other versions you can refer to:
Thank you wong,
It worked!
I ran this (outside of venv)
Sudo ./venv/bin/python3.7 Arducam…
It was tricky running this without uninstalling newer python versions.
But got there in the end.
I suppose creating virtual environments of older python releases is something most people are expected to know.
wong
May 20, 2022, 8:25am
4
Great idea, thanks for sharing.