Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Установка Raspicam #3

Open
copterspace opened this issue Dec 15, 2020 · 3 comments
Open

Установка Raspicam #3

copterspace opened this issue Dec 15, 2020 · 3 comments

Comments

@copterspace
Copy link
Collaborator

После установки pip3 install picamera модуль picamera не работает, выдаёт ошибку:

pi@HSPR-0851:~/test_ws/src/hspr_test $ python3 -c "import picamera"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/pi/.local/lib/python3.7/site-packages/picamera/__init__.py", line 72, in <module>
    from picamera.exc import (
  File "/home/pi/.local/lib/python3.7/site-packages/picamera/exc.py", line 41, in <module>
    import picamera.mmal as mmal
  File "/home/pi/.local/lib/python3.7/site-packages/picamera/mmal.py", line 49, in <module>
    _lib = ct.CDLL('libmmal.so')
  File "/usr/lib/python3.7/ctypes/__init__.py", line 356, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libmmal.so: cannot open shared object file: No such file or directory

нагуглил вот:
https://stackoverflow.com/questions/27777547/missing-libmmal-so-with-picamera-library
https://stackoverflow.com/questions/29616749/can-i-use-picamera-with-this-version-of-ubuntu-on-a-raspberry-pi-2-model-b/32947446#32947446

думаю такой "с фига ли, у меня ж Raspbian?"

однако:

pi@HSPR-0851:~/test_ws/src/hspr_test $ uname -a
Linux HSPR-0851 5.4.51-v8+ #1333 SMP PREEMPT Mon Aug 10 16:58:35 BST 2020 aarch64 GNU/Linux

а никакой не Raspbian

последовал sudo rpi-update и ребут... после которого RPI подохла напрочь и окирпичилась...
залил на флэху обратно собранный образ. Она, слава Богу, раскирпичилась.
Буду искать другие пути...

@copterspace
Copy link
Collaborator Author

sudo apt-get install libraspberrypi-bin libraspberrypi-dev - не помогло, та же ошибка
а сама распикамера работает ОК на Linux clever-4727 5.4.59-v7+ #1338 SMP Fri Aug 28 11:49:42 BST 2020 armv7l GNU/Linux с другой флэхи

@urpylka , не поможешь ли, чем лечить?...

@copterspace
Copy link
Collaborator Author

https://www.raspberrypi.org/forums/viewtopic.php?p=1729089#p1729089

MMAL, and hence raspistill and raspivid, currently have unresolved issues in a 64bit userland. For these reasons it is currently disabled.

долбаный насос... так хорошо всё начиналось... обратно на armhf теперь ?...

@copterspace
Copy link
Collaborator Author

Ждём решения проблемы вот тут: raspberrypi/Raspberry-Pi-OS-64bit#10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant