Quantcast
Viewing all articles
Browse latest Browse all 4928

Camera board • Re: TypeError: from_ndarray() got an unexpected keyword argument 'width' error when running Pi Camera 3 with venv and Po

Thanks. I added the python3-av and enable the virtualenvs.options.system-site-packages, but the capture_motion.py still has the same "width" error as before. (This quote was a repeat from what I did 5 min earlier because I lost the Terminal message when added the python3-av and enable the venv option).
h6pi1@raspberrypi:~/workspace/jojo_main2 $ poetry run python --version
Python 3.11.2
h6pi1@raspberrypi:~/workspace/jojo_main2 $ poetry config virtualenvs.options.system-site-packages true
h6pi1@raspberrypi:~/workspace/jojo_main2 $ poetry config --list
cache-dir = "/home/h6pi1/.cache/pypoetry"
experimental.system-git-client = false
installer.max-workers = null
installer.modern-installation = true
installer.no-binary = null
installer.parallel = true
virtualenvs.create = true
virtualenvs.in-project = true
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.no-setuptools = false
virtualenvs.options.system-site-packages = true
virtualenvs.path = "{cache-dir}/virtualenvs" # /home/h6pi1/.cache/pypoetry/virtualenvs
virtualenvs.prefer-active-python = false
virtualenvs.prompt = "{project_name}-py{python_version}"
warnings.export = true
h6pi1@raspberrypi:~/workspace/jojo_main2 $ poetry install
Installing dependencies from lock file

No dependencies to install or update

Installing the current project: jojo-main (0.1.0)
h6pi1@raspberrypi:~/workspace/jojo_main2 $ sudo apt-get install python3-av
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-av is already the newest version (10.0.0-1+rpt4).
The following packages were automatically installed and are no longer required:
libcamera0.1 libssl1.1
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

Statistics: Posted by raspatory — Fri Mar 08, 2024 2:44 am



Viewing all articles
Browse latest Browse all 4928

Trending Articles