Got it

Huawei Atlas 200 DK: Body_Pose Github sample project not working. Error in main.py

Created: Apr 14, 2021 10:10:31Latest reply: Apr 16, 2021 01:29:43 268 16 1 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hello everyone!

I am working on a sample project from Github from Huawei for my Huawei Atlas 200 DK. It is a body pose detection project. I want to use the Huawei Atlas 200 DK with the CAMERA0 port (MIPI-CSI Camera).
Here is the link to the Github sample project: GitHub - Atlas200dk/sample_bodypose

I am almost done but at the end I am facing a problem. When I try to run the body detection python script it fails to find the acl.so shared library file.

I get an error when executing following:
cd ~/HIAI_PROJECTS/sample_bodypose/code_live
python3 main.py --model='model/body_pose.om'

(You can find this on the Github page)

The python scrupt fails. It is telling me:

ImportError: /home/HwHiAiUser/Ascend/acl.so: cannot open shared object file: No such file or directory

error_message


But this it not true. /home/HwHiAiUser/Ascend/acl.so does exist!

prove that acl.so exists


Also LD_LIBRARY_PATH in /home/HwHiAiUser/.bashrc is set properly I think. I simply coppied it from the Github page.

  • x
  • convention:

Featured Answers
_xyt
Created Apr 16, 2021 01:29:43

  • x
  • convention:

Daniel_EdgeAI
Daniel_EdgeAI Created Apr 16, 2021 07:37:40 (0) (0)
Thank you this solved my problem! I had do install PyACL on the Huawei Atlas and this link explains straight forward how to do it.

THANK YOU!

If someone also has this problem in the future: Don't forget to set the pythonpath variable. After running the pyACL runfile from the link it tells you to not forget the Pythonpath.  
Daniel_EdgeAI
Daniel_EdgeAI Created Apr 16, 2021 07:38:34 (0) (0)
Unfortunately there is a new problem now but I will create a new post for it for more clarity.  
All Answers
olive.zhao
olive.zhao Admin Created Apr 14, 2021 10:11:45

Hello, dear!
It's nice to meet you in the community.
We're working on your problem. Please be patient.
View more
  • x
  • convention:

Smile%20turned%2C%20with%20the%20back%20to%20let%20the%20story%20end
_xyt
_xyt Created Apr 14, 2021 10:15:17

Hi,
you should add the path to $PYTHONPATH.
View more
  • x
  • convention:

Daniel_EdgeAI
Daniel_EdgeAI Created Apr 14, 2021 10:24:29

Posted by _xyt at 2021-04-14 10:15 Hi,you should add the path to $PYTHONPATH.

Hi _xyt!
I added the environment variable PYTHONPATH to /home/HwHiAiUser/.bashrc but the problem is still there

My PYTHONPATH in .bashrc:

.bashrc PYTHONPATH is there


View more
  • x
  • convention:

Daniel_EdgeAI
Daniel_EdgeAI Created Apr 14, 2021 11:28:31

Posted by _xyt at 2021-04-14 10:15 Hi,you should add the path to $PYTHONPATH.
Do you maybe know whats the problem? It is very strange that it says the file doesn't exist even tough it is available at the exact location...Huawei Atlas 200 DK: Body_Pose Github sample project not working. Error in main.py-3882703-1
View more
  • x
  • convention:

I%20am%20intersted%20in%20Embedded%20Systems%20and%20Machine%20Learning
_xyt
_xyt Created Apr 15, 2021 01:37:33

Hi,
(1)when you add the path, do you source ~/.bashrc ?

(2)And acl.so is a true file?

https://gitee.com/ascend/samples/blob/master/cplusplus/environment/prepare_ENV/README_200DK_EN.md

2

(3)ldd acl.so

1


View more
  • x
  • convention:

little_fish
little_fish Created Apr 15, 2021 01:46:33 (1) (0)
Thanks.  
Daniel_EdgeAI
Daniel_EdgeAI Created Apr 15, 2021 06:24:08

Posted by _xyt at 2021-04-15 01:37 Hi, (1)when you add the path, do you source ~/.bashrc ?(2)And acl.so is a true file?https://git ...

(1) Yes I executed source ~/.bashrc
(2) acl.so is a file. It is not a symlink or directoryacl.so is a real file

(3) The output of ldd /home/HwHiAiUser/Ascend/acl.so doesn't look like your output ...

ldd output is wrong

Do you maybe know what could be the issue here?

View more
  • x
  • convention:

Daniel_EdgeAI
Daniel_EdgeAI Created Apr 15, 2021 08:03:03

Posted by _xyt at 2021-04-15 01:37Hi, (1)when you add the path, do you source ~/.bashrc ?(2)And acl.so is a true file?https://git ...

On my Ubuntu PC (development environment) the ldd utility prints messages which look almost like your screenshot:

ldd on Ubuntu PC is working but not on Atlas 200 D

After sending it to the Huawei Atlas 200 DK using scp the ldd utility says: "not a dynamic executable".
Do you know whats the problem with it? I am using ascend-toolkit 20.1.rc

View more
  • x
  • convention:

sliawatimena
sliawatimena Created Apr 15, 2021 08:36:23

Cross compiling it first?
View more
  • x
  • convention:

Computer%20engineering%20lecturer.%20A%20long-live%20learner.%20Mind%20Mapping%2C%20IoT%2C%20Deep%20Learning%2C%20Embedded%20System.
Daniel_EdgeAI
Daniel_EdgeAI Created Apr 15, 2021 09:17:18

Hi!
This could maybe be the problem. I think my acl.so file is for x86 because it is located in $HOME/Ascend/ascend-toolkit/20.1.rc1/acllib_linux.x86_64/pyACL/python/site-packages.
I didn't think of it because I used a symlink without noticing that it is from acllib__linux.x86_64.

Do you know how to generate a .so file with the crosscompiler? I've never done this before.

View more
  • x
  • convention:

12
Back to list

Comment

You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.