ModuleNotFoundError: No module named 'common.is_aarch_64'

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU): GPU
• DeepStream Version: 6.0
• TensorRT Version: 8.0.1
• NVIDIA GPU Driver Version (valid for GPU only): 495.44

(P.S.: I am using DeepStream in colab, and it working fine)
Recently I git cloned the ‘deepstream_python_apps’ repository from github. I have fulfilled all the prerequisutes: I have Ubuntu 18.04, DeepStream SDK 6.0, Python 3.6 and have installed/git-cloned Gst Python v1.14.5.
When running any of the code given in the apps folder inside the git cloned folder, I am getting an error like:

Traceback (most recent call last):
  File "/opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_python_apps/apps/deepstream-test3/deepstream_test_3.py", line 32, in <module>
    from common.is_aarch_64 import is_aarch64
ModuleNotFoundError: No module named 'common'

For that I installed common library:

!pip install common

Then I got an error saying:

Traceback (most recent call last):
  File "/opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_python_apps/apps/deepstream-test3/deepstream_test_3.py", line 32, in <module>
    from common.is_aarch_64 import is_aarch64
ModuleNotFoundError: No module named 'common.is_aarch_64'

Later I noticed that there is a common folder inside the apps folder itself, containing an ‘is_aarch_64.py’ file. But inspite of that I am getting an error of no such module. How can I solve it?

Common is one directory under python app directory.
Did you use sys.path.append(’…/’) or sys.path.append(’./’)
if the later one, please change to the first one.

Yeah, its is sys.path.append(’…/’)

But still I am getting this error:

After I pip install the common library, I get this error:

Now what should I do?

1 Like

Common is not one library. it’s one directory as said.
Where did you run from?

As mentioned above, I am running it from google colab. It is working fine, when config files are executed.

I mean you run under which directory.
you should run under python test3 app dir
sources/deepstream_python_apps/apps/deepstream-test3/

Yeah, I am running it from that directory only. You can see the path in the picture above:
/opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_python_apps/…

You are not. go to that directory and run.

Ok. Running it after changing the directory did provide a solution for the common library thing, but it is now giving another error:

Traceback (most recent call last):
  File "deepstream_test_3.py", line 36, in <module>
    import pyds
ModuleNotFoundError: No module named 'pyds'

From 6.0 version, we open sourced python bindings, user need to compile the binding first.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.