Closed ninjadev64 closed 10 months ago
(@pageauc)
I have Run the install on several different RPI's including Libre and various RPI OS versions under python2 (older distros) and python3 under bullseye 32 and 64 (RPI4) without issue. Other users have not reported any install or opencv issues. From the install script it is obvious that cv2 is installed. Can you import cv2 from a python command shell.
python3
>>import cv2
>>print(cv2.__version__)
>>exit()
You should get the python version number. If not there may be a corrupt python lib .so file or path problem. This can happen with a download/install glitch. It may also be a corrupt SD. You should try a fresh SD card and burn a new RPI OS image (Bullseye) I have not tested with bookworm yet but would not expect any problems. Thanks for your detailed information Claude ...
Claude ....
On Tue, Oct 24, 2023 at 3:36 PM ninjadev64 @.***> wrote:
@.*** https://github.com/pageauc)
— Reply to this email directly, view it on GitHub https://github.com/pageauc/speed-camera/issues/148#issuecomment-1777906036, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNPKZDEFBBWPLC3H52RT2DYBAKFBAVCNFSM6AAAAAA6OGW7PGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZXHEYDMMBTGY . You are receiving this because you were mentioned.Message ID: @.***>
-- YouTube Channel at https://www.youtube.com/user/pageaucp http://www.youtube.com/user/pageaucp GitHub Repository at https://github.com/pageauc
BTW It is a good practice to perform a sudo apt update followed by a sudo apt upgrade before doing any software install Claude ....
On Tue, Oct 24, 2023 at 6:11 PM Claude Pageau @.***> wrote:
I have Run the install on several different RPI's including Libre and various RPI OS versions under python2 (older distros) and python3 under bullseye 32 and 64 (RPI4) without issue. Other users have not reported any install or opencv issues. From the install script it is obvious that cv2 is installed. Can you import cv2 from a python command shell.
python3 >>import cv2 >>print(cv2.__version__) >>exit()
You should get the python version number. If not there may be a corrupt python lib .so file or path problem. This can happen with a download glitch. It may also be a corrupt SD. You should try a fresh SD card and burn a new RPI OS image (Bullseye) I have not tested with bookworm yet but would not expect any problems. Thanks for your detailed information Claude ...
Claude ....
On Tue, Oct 24, 2023 at 3:36 PM ninjadev64 @.***> wrote:
@.*** https://github.com/pageauc)
— Reply to this email directly, view it on GitHub https://github.com/pageauc/speed-camera/issues/148#issuecomment-1777906036, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNPKZDEFBBWPLC3H52RT2DYBAKFBAVCNFSM6AAAAAA6OGW7PGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZXHEYDMMBTGY . You are receiving this because you were mentioned.Message ID: @.***>
-- YouTube Channel at https://www.youtube.com/user/pageaucp http://www.youtube.com/user/pageaucp GitHub Repository at https://github.com/pageauc
-- YouTube Channel at https://www.youtube.com/user/pageaucp http://www.youtube.com/user/pageaucp GitHub Repository at https://github.com/pageauc
FYI Just created a bookworm 32 SD using pi Imager with predone settings for WIFI, SSH, HOSTNAME, Etc. Note I default initial hostname to rpi-noname so it is easier to login with SSH. inserted SD in RPI4. Booted and after RPI initial setup that takes a bit of time, I SSH Iogged in and did update and upgrade then did the curl speed-camera install. Had a RPI camera already installed. Changed config.py to turn off calibration since this was just for testing. speed-cam.py ran fine with default libcam setting. No problems.
If I get time I will do bookworm 64 test I suspect your SD has a problem. Claude ....
On Tue, Oct 24, 2023 at 6:39 PM Claude Pageau @.***> wrote:
BTW It is a good practice to perform a sudo apt update followed by a sudo apt upgrade before doing any software install Claude ....
On Tue, Oct 24, 2023 at 6:11 PM Claude Pageau @.***> wrote:
I have Run the install on several different RPI's including Libre and various RPI OS versions under python2 (older distros) and python3 under bullseye 32 and 64 (RPI4) without issue. Other users have not reported any install or opencv issues. From the install script it is obvious that cv2 is installed. Can you import cv2 from a python command shell.
python3 >>import cv2 >>print(cv2.__version__) >>exit()
You should get the python version number. If not there may be a corrupt python lib .so file or path problem. This can happen with a download glitch. It may also be a corrupt SD. You should try a fresh SD card and burn a new RPI OS image (Bullseye) I have not tested with bookworm yet but would not expect any problems. Thanks for your detailed information Claude ...
Claude ....
On Tue, Oct 24, 2023 at 3:36 PM ninjadev64 @.***> wrote:
@.*** https://github.com/pageauc)
— Reply to this email directly, view it on GitHub https://github.com/pageauc/speed-camera/issues/148#issuecomment-1777906036, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNPKZDEFBBWPLC3H52RT2DYBAKFBAVCNFSM6AAAAAA6OGW7PGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZXHEYDMMBTGY . You are receiving this because you were mentioned.Message ID: @.***>
-- YouTube Channel at https://www.youtube.com/user/pageaucp http://www.youtube.com/user/pageaucp GitHub Repository at https://github.com/pageauc
-- YouTube Channel at https://www.youtube.com/user/pageaucp http://www.youtube.com/user/pageaucp GitHub Repository at https://github.com/pageauc
-- YouTube Channel at https://www.youtube.com/user/pageaucp http://www.youtube.com/user/pageaucp GitHub Repository at https://github.com/pageauc
Just completed 64 bit bookworm install. Did same steps as above. Note. Did NOT run raspi-config. picamera defaults to libcamera and is enabled by default. speed-cam.py ran with no issues. Let me know how you make out with resolving your problem.
Regards Claude.
On Tue, Oct 24, 2023 at 7:55 PM Claude Pageau @.***> wrote:
FYI Just created a bookworm 32 SD using pi Imager with predone settings for WIFI, SSH, HOSTNAME, Etc. Note I default initial hostname to rpi-noname so it is easier to login with SSH. inserted SD in RPI4. Booted and after RPI initial setup that takes a bit of time, I SSH Iogged in and did update and upgrade then did the curl speed-camera install. Had a RPI camera already installed. Changed config.py to turn off calibration since this was just for testing. speed-cam.py ran fine with default libcam setting. No problems.
If I get time I will do bookworm 64 test I suspect your SD has a problem. Claude ....
On Tue, Oct 24, 2023 at 6:39 PM Claude Pageau @.***> wrote:
BTW It is a good practice to perform a sudo apt update followed by a sudo apt upgrade before doing any software install Claude ....
On Tue, Oct 24, 2023 at 6:11 PM Claude Pageau @.***> wrote:
I have Run the install on several different RPI's including Libre and various RPI OS versions under python2 (older distros) and python3 under bullseye 32 and 64 (RPI4) without issue. Other users have not reported any install or opencv issues. From the install script it is obvious that cv2 is installed. Can you import cv2 from a python command shell.
python3 >>import cv2 >>print(cv2.__version__) >>exit()
You should get the python version number. If not there may be a corrupt python lib .so file or path problem. This can happen with a download glitch. It may also be a corrupt SD. You should try a fresh SD card and burn a new RPI OS image (Bullseye) I have not tested with bookworm yet but would not expect any problems. Thanks for your detailed information Claude ...
Claude ....
On Tue, Oct 24, 2023 at 3:36 PM ninjadev64 @.***> wrote:
@.*** https://github.com/pageauc)
— Reply to this email directly, view it on GitHub https://github.com/pageauc/speed-camera/issues/148#issuecomment-1777906036, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNPKZDEFBBWPLC3H52RT2DYBAKFBAVCNFSM6AAAAAA6OGW7PGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZXHEYDMMBTGY . You are receiving this because you were mentioned.Message ID: @.***>
-- YouTube Channel at https://www.youtube.com/user/pageaucp http://www.youtube.com/user/pageaucp GitHub Repository at https://github.com/pageauc
-- YouTube Channel at https://www.youtube.com/user/pageaucp http://www.youtube.com/user/pageaucp GitHub Repository at https://github.com/pageauc
-- YouTube Channel at https://www.youtube.com/user/pageaucp http://www.youtube.com/user/pageaucp GitHub Repository at https://github.com/pageauc
-- YouTube Channel at https://www.youtube.com/user/pageaucp http://www.youtube.com/user/pageaucp GitHub Repository at https://github.com/pageauc
BTW It is a good practice to perform a sudo apt update followed by a sudo
apt upgrade before doing any software install
Claude ....
Yes, I did do this (it took nearly 1 hour 😅)
You should get the python version number. If not there may be a corrupt python lib .so file or path problem. This can happen with a download glitch.
Yep, it was this.
aman@octopi:~ $ python3
Python 3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/aman/.local/lib/python3.9/site-packages/cv2/__init__.py", line 181, in <module>
bootstrap()
File "/home/aman/.local/lib/python3.9/site-packages/cv2/__init__.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /home/aman/.local/lib/python3.9/site-packages/cv2/cv2.abi3.so: undefined symbol: __atomic_store_8
>>>
How should I restore this file?
I solved it!
I had it installed both with pip and with apt. There was something wrong with the pip version but it was still preferring it.
pip uninstall opencv-python
did the trick.
Hi there,
I'm trying to run speed-cam.py with Python 3.9.2 on a Raspberry Pi 4. I've installed OpenCV with
sudo apt install python3-opencv
and it has successfully installed itself. I've also installed it with Pip (pip install opencv-python
) but that seems to have done nothing.Additionally, the
python-
versions of all of the packages installed in the install script should be removed as they have all been replaced withpython3-
versions. This is the output of my run of the install script:This is the error message that I get:
I tried the GitHub script mentioned in that error message but I get this error when running make compile and make install: