Skip to content

Nano running Ubuntu 20.04, compiled OpenCV 4.12.0, but python3 doesn’t see it #31

@JamesNewton

Description

@JamesNewton

Copying from here:
Nano running Ubuntu 20.04, compiled OpenCV 4.12.0, by python3 doesn’t see it

Jetson nano on which I’ve installed Ubuntu 20.04 following your install-ubuntu-20.04-on-jetson-nano instructions

The instructions for expanding the available memory don’t seem to work past 4096. Perhaps because it doesn’t have access to the 2048 zram thing. Still… the compile finished

And JTOP shows I have “OpenCV: 4.12.0-compiled CUDA: YES” installed. So… success?

Problems:

python3 says I have OpenCV version 4.7.0 installed (after doing import cv2 and looking at cv2.version) And I DID complete the installation part at the end.

(also a node.js issue, but I won't ask about that here)

Can’t find v4l2ucp because it’s no longer included with Ubuntu 20. But others seem to indicate it's not required, so I just commented that out.

I'm curious how to troubleshoot the Python3 wrong version thing... I see a lot of other people complaining about the same issue and there doesn't seem to be any good advice other than "reinstall" LOL.

I'm looking at nano /home/jetson/.local/lib/python3.8/site-packages/cv2/__init__.py and it's not obvious to me how that works. e.g. where it gets the version information or decides what to pull in.

What I'm saying is this seems like an interesting / worthwhile problem to learn about.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions