Python: import cv2 .. No module named 'cv2'

Pixmusix,

‘python-libcamera is already the newest version’

:frowning:

2 Likes

Pixmusix,

So I tried this:

conda install conda-forga::libcamera

And now I get a new error:

No module named ‘av.core’

From:

from picamera2 import Picamera2

:frowning:

Hey there, Bill, can I just confirm that you have followed Sam’s suggestion to start from a fresh install? With a lot of installs and guides, a fresh install is going to be a requirement. Particularly if you’ve been installing other dependencies, as you have been here.

Jane,

I followed Sam’s suggestions..to the letter..

It still failed.

:frowning:

1 Like

Hey there, Bill,

I’ve been going through the guide and I’ve gotten to the same issue that you have gotten to.

Actually, a slight bit further, since I was able to install install av.core via conda, but still arrived at a dependency crash. The module error I am now getting is:

from prctl import _prctl

No module _prctl.

At that point I tried so many things that I’m pretty sure that I have broken something else in the system, so I am starting from a fresh install.

After speaking with @Jaryd, he has confirmed that the order of this guide is very specific and that even a single thing out of order can break everything. I’m hoping the fresh install will finally solve this for us both.

1 Like

Jane,

Thank you, thank you, thank you.

:slight_smile:

I am so happy that you were able to make the same mistake that I made.

:slight_smile:

I have gone through twice. But still, there are mistakes.

:frowning:

Have you managed to get it all working?

Bill

1 Like

Hey there, @Bill293536, tried a couple of different things through the guide, but I’m getting stuck on the libcamera command same as you.

I’ve going to speak with @Jaryd about this and see if he can offer any suggestions,

1 Like

Welp. Guess it’s not so easy; Woops.
Nice one @Jane replicating the results. That’s awesome service.
Sorry I couldn’t help bill. Good luck.

1 Like

Good luck.

:slight_smile:

1 Like

Thank you. Hopefully, @Jane will do something.

:slight_smile:

1 Like

I spoke with Jaryd yesterday afternoon and he thinks it’s likely that this method is just not working with Trixie OS.

I’m going to give it a go on Bookworm when I get a chance today or tomorrow, but I would not be surprised if he is right. I have already seen the new OS wreck hardware compatibility of not particularly old devices.

Oh dear!

:frowning:

No way of making it work MacBook?

1 Like

Hey there, @Bill293536,

I have just tested this on Raspbian Bookworm OS and everything works perfectly.

You just need to flash your SD with the x64 Legacy Bookworm OS instead of Trixie and it will work no problem.

1 Like

I can find 32-bit Bookworm but not 64-bit Bookworm…am I doing something wrong?

1 Like

I have found it.

:slight_smile:

1 Like

Jane and Pixmusix,

I finally have it working!

Thank you, thank you.

Trixie to be replaced by Bookworm. And that is all it takes!

Thank you.

2 Likes

Fantastic, @Bill293536,

I’m sorry I couldn’t help you find Bookworm OS, but I’m glad you found it and got it working.

Have a wonderful week and happy making.