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

cannot import name '_argus_camera_cpp' from partially initialized module 'argus_camera' #10

Open
rexn8r opened this issue May 25, 2023 · 0 comments

Comments

@rexn8r
Copy link

rexn8r commented May 25, 2023

Hello

I have Jetson Nano 4GB development kit.

I have installed Jetson Nano with Ubuntu 20.04 OS image provided by by Qengineering which includes OpenCV with CUDA enabled.

https://github.com/Qengineering/Jetson-Nano-Ubuntu-20-image

The result of sudo apt show nvidia-l4t-jetson-multimedia-api -a is :

+++++++++++++++++++++++++

Package: nvidia-l4t-jetson-multimedia-api
Version: 32.6.1-20210916211029
Priority: standard
Section: Utils
Maintainer: NVIDIA Corporation
Installed-Size: 95,6 MB
Pre-Depends: nvidia-l4t-core (>> 32.6-0), nvidia-l4t-core (<< 32.7-0)
Depends: cuda-cudart-10-2, cuda-cudart-dev-10-2, libc6-dev, libglvnd-dev, libx11-dev, nvidia-l4t-camera (= 32.6.1-20210916211029), nvidia-l4t-multimedia (= 32.6.1-20210916211029), nvidia-l4t-multimedia-utils (= 32.6.1-20210916211029)
Homepage: http://developer.nvidia.com/jetson
Download-Size: 75,2 MB
APT-Manual-Installed: yes
APT-Sources: https://repo.download.nvidia.com/jetson/t210 r32.6/main arm64 Packages
Description: NVIDIA Jetson Multimedia API is a collection of lower-level APIs that support flexible application development.

Package: nvidia-l4t-jetson-multimedia-api
Version: 32.6.1-20210726122000
Priority: standard
Section: Utils
Maintainer: NVIDIA Corporation
Installed-Size: 95,6 MB
Pre-Depends: nvidia-l4t-core (>> 32.6-0), nvidia-l4t-core (<< 32.7-0)
Depends: cuda-cudart-10-2, cuda-cudart-dev-10-2, libc6-dev, libglvnd-dev, libx11-dev, nvidia-l4t-camera (= 32.6.1-20210726122000), nvidia-l4t-multimedia (= 32.6.1-20210726122000), nvidia-l4t-multimedia-utils (= 32.6.1-20210726122000)
Homepage: http://developer.nvidia.com/jetson
Download-Size: 75,2 MB
APT-Sources: https://repo.download.nvidia.com/jetson/t210 r32.6/main arm64 Packages
Description: NVIDIA Jetson Multimedia API is a collection of lower-level APIs that support flexible application development.

++++++++++++++++++++++++++++++++

I have followed installation instruction and installed the argus camera library.

I did change the multimedia path in the Setup.py as well as FindTegraMM.cmake to point to "/usr/src/jetson_multimedia_api"

I have also build the argus camera from the /usr/src/jetson_multimedia_api folder and when i execute "argus_camera" from the terminal the programs runs perfectly file.

But when i run the sample.py file I get following error;

+++++++++++++++++++++++++++++++++++

from argus_camera import ArgusCamera
Traceback (most recent call last):
File "", line 1, in
File "/home/jetson/Downloads/argus_camera-master/argus_camera/init.py", line 1, in
from .argus_camera import ArgusCamera
File "/home/jetson/Downloads/argus_camera-master/argus_camera/argus_camera.py", line 2, in
from .cpp import *
File "/home/jetson/Downloads/argus_camera-master/argus_camera/cpp.py", line 13, in
from . import _argus_camera_cpp
ImportError: cannot import name '_argus_camera_cpp' from partially initialized module 'argus_camera' (most likely due to a circular import) (/home/jetson/Downloads/argus_camera-master/argus_camera/init.py)

++++++++++++++++++++++++++++++++++++

I would appreciate if you could help resolve this issue.

Thanks
Rex

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

1 participant