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

Unable to open camera when running simple_camera.py with Python version 3.7.5 #52

Open
daniellm19 opened this issue Mar 22, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@daniellm19
Copy link

Describe the issue
Unable to open camera when running simple_camera.py with Python version 3.7.5 using VSCode.

What version of L4T/JetPack
L4T/JetPack version: 4.6.1

What version of OpenCV
OpenCV version: 4.1.1.2 (although some seem to be 3.2.0 when I use the command: "dpkg -l | grep libopencv")

Python Version
Python version if applicable: 3.7.5

To Reproduce
Steps to reproduce the behavior:

  1. Power the Jetson Nano
  2. Attach RPi V2 camera
  3. Clone this repo
  4. Run the simple_camera.py file

Expected behavior
A Gstreamer window pops up which shows the camera working, like it does for python 2.7.17

Additional context

  1. I have a ton of different installations and overall, it's kind of a mess. Locating the root issue might be rather problematic.
  2. I have used a command that removes python from the computer so that I could install the 3.7 version, what issues might this have caused? Well I needed to at least reinstall pip, who knows what else it did.
@daniellm19 daniellm19 added the bug Something isn't working label Mar 22, 2022
@AINacster
Copy link

Can anyone help me with this issues. Simple_camera.py works with 2.7 but when I run it python3 (3.8) it errors out saying not able to open camera.

Appreciate if you can help me with this issues. This is on Nvidia Jetson Nano.

@Kerem-Kurt
Copy link

I am using python3.8 and I am getting
ImportError: cannot import name '_gi' from partially initialized module 'gi' (most likely due to circular import) (/usr/lib/python3/dist-packages/gi/init.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants