Ryoyo-NV / Gaze-Analysis-System

Gaze analysis system for Jetson Xavier NX, and AGX Xavier.
8 stars 5 forks source link

Cannot start the application #6

Closed ynott closed 2 years ago

ynott commented 2 years ago

Environment:

Expected behaviour

I can run the application.

Actual behaviour

I got the following error and could not start.

$ python3 run.py /dev/video0 --media v4l2 --cam-fps 10 
Traceback (most recent call last):
  File "run.py", line 10, in <module>
    from ds.ds_pipeline import DsVideo
  File "/home/t-yano/Projects/Gaze-Analysis-System/ds/ds_pipeline.py", line 20, in <module>
    import dscprobes
ImportError: libnvcv_faciallandmarks.so: cannot open shared object file: No such file or directory

Step reprocedure.

  1. Run upgrade sudo apt upgrade
  2. Install Deepstream-6.0.1 sudo apt install -y deepstream-6.0
  3. Clone Git Repository & exec setup.sh
    git clone https://github.com/Ryoyo-NV/Gaze-Analysis-System.git
    git checkout -b jp4.6.2_ds6.0.1 refs/tags/jp4.6.2_ds6.0.1
    chmod +x setup.sh
    ./setup.sh

    The setup.sh shell has completed without any problems.

  4. Start application

I have run the following

$ python3 run.py /dev/video0 --media v4l2 --cam-fps 10 
ynott commented 2 years ago

I found libnvcv_faciallandmarks.so in the following directory

$ ls -la /opt/nvidia/deepstream/deepstream/lib/cvcore_libs/libnvcv_faciallandmarks.so
-rw-r--r-- 1 root root 670856  2月 14 23:52 /opt/nvidia/deepstream/deepstream/lib/cvcore_libs/libnvcv_faciallandmarks.so

It appears to be linked from dscprobes.so

image
takutoi commented 2 years ago

Do you set LD_LIBRARY_PATH? https://github.com/Ryoyo-NV/Gaze-Analysis-System#usage export LD_LIBRARY_PATH=/opt/nvidia/deepstream/deepstream/lib/cvcore_libs:$LD_LIBRARY_PATH

ynott commented 2 years ago

Oh! I see!

This is my fault. Thank you for your advice. It worked!

close this issue.