AxisCommunications / acap-computer-vision-sdk-examples

Example applications that provide developers with the tools and knowledge to use Axis Camera Application Platform (ACAP) Computer Vision solution
Apache License 2.0
52 stars 22 forks source link

acap_dl-models_1 | exec /bin/sh: exec format error pose-estimator_1 | exec /usr/bin/python3: exec format error #153

Closed DucTaiVu closed 1 year ago

DucTaiVu commented 1 year ago

Please do not disclose security vulnerabilities as issues. See our security policy for responsible disclosures.

Describe the bug

Explain the behavior you would expect and the actual behavior.

To reproduce

Please provide as much context as possible and describe the reproduction steps that someone else can follow to recreate the issue on their own.

A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps. Bugs without steps will not be addressed until they can be reproduced.

Steps to reproduce the behavior:

  1. Set up '...'
  2. Do this '...'
  3. See error

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

Additional context

Add any other context about the problem here.

danielmyh commented 1 year ago

Hi DucTaiVu,

The error could be due to a mismatch between architectures, and if so you can use the --platform flag see more here to do a build targeting the right architecture. It could also be that the camera architecture is not the same as the arch you used when building the image. If you think it is something else it would be great if you could add some more details about the error and how it occurred with steps, and we can help you better.

DucTaiVu commented 1 year ago

Hi Danielmyh, Cause i ran the build app: ~$ docker build --tag $app_name --build-arg ARCH . It returns not permission, Then replaced it with admin rights ~$ sudo docker build --tag $APP_NAME --build-arg ARCH . This gave me the error. I fixed it as follows: ~$ sudo chmod 666 /home/user/.docker/buildx/activity/default Then: ~$ docker build --tag $APP_NAME --build-arg ARCH . Everything was working fine. Thanks,