I run the following code:python3 xxxxx.py
The following error occurs:
pygame 2.5.2 (SDL 2.28.3, Python 3.11.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
/home/bmo/bmo_sample.py:8: DeprecationWarning: 'imghdr' is deprecated and slated for removal in Python 3.13
import imghdr
Traceback (most recent call last):
File "/home/bmo/bmo_sample.py", line 16, in <module>
from libcamera import Transform
ModuleNotFoundError: No module named 'libcamera'
Initially, I created a virtual environment because I couldn't run pip in the global environment. I still had this error after running some instructions to load libcamera, following gpt's instructions. I don't know why.
The following error occurs:
pygame 2.5.2 (SDL 2.28.3, Python 3.11.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
/home/bmo/bmo_sample.py:8: DeprecationWarning: 'imghdr' is deprecated and slated for removal in Python 3.13
import imghdr
Traceback (most recent call last):
File "/home/bmo/bmo_sample.py", line 16, in <module>
from libcamera import Transform
ModuleNotFoundError: No module named 'libcamera'
Initially, I created a virtual environment because I couldn't run pip in the global environment. I still had this error after running some instructions to load libcamera, following gpt's instructions. I don't know why.
Statistics: Posted by weoduz — Wed Apr 10, 2024 10:15 am