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

There is a problem that it cannot run in python3. #44

Open
Choikyungho9 opened this issue May 31, 2021 · 4 comments
Open

There is a problem that it cannot run in python3. #44

Choikyungho9 opened this issue May 31, 2021 · 4 comments

Comments

@Choikyungho9
Copy link

Choikyungho9 commented May 31, 2021

python simple_test.py works fine when I run it as terminal on jetpack 4.4.

But python3 simple_test.py in terminal doesn't work.

The error 'Unable to open camera' is displayed.

Please let me know what the problem is. Why does it only work with Python 2 version?

I need to use python 3.6.9 version / opencv 4.5.1.

@jaysojitrak
Copy link

@Choikyungho9
@jetsonhacks
hello there,

Have you solved your problem or not please let me know if you solved it.
it will be nice if you explain how you solved it.

thanks in advance

peace

@JetsonHacksNano
Copy link
Owner

Which version are you running? I've been unable to recreate this.

@jaysojitrak
Copy link

thanks for replying but I have solved it.

there are issues with OpenCV.
in python3 I have installed the OpenCV - 4.4.5
and in python2 I have been using the pre-installed OpenCV - 4.1.1 in jetson nano os
so it is working well with python2 but can not able to open the pipeline by using OpenCV-4.4.5.

So I was checking the OpenCV versions and found the solution.
then just simply removed the OpenCV-4.5.5 from python3. and now working very well.

I have never doubted the @jetsonhacks codes It always runs in like one attempt. no west of time. my bad🤗

--

thanks and regards
jay sojitra

@thanhhoangvan
Copy link

I rebuilt OpenCV-python with CUDA support with version 4.5.5. However, only python2 can run and python3 can't. Is that version difference the main problem?

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

4 participants