cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

python agent failing on mac m1 pro

SIVA.KURAPATI
New Poster

hi Team,

Docker build is failing with this error.

=> ERROR [15/16] RUN sed -i 's/<AppenderRef ref=\"Console\"\/>/<!-- <AppenderRef ref=\"Console\"\/> -->/g' /usr/local/lib/python3.10/site-packages/appdynamics_bindeps/proxy/conf/logging/log4j2.xml 

below is the pkg version

appdynamics==23.8.0.6197

appdynamics-bindeps is not getting pulled/installed 

tried with latest version of appdynamics pkg .. same experience..
appdynamics==24.2.0.6567

this is happening only on mac m1 pro.

adding explicitly "appdynamics-bindeps-linux-x64==23.8.0" in requirements.txt

is giving below error.

File "/tmp/appd/lib/cp310-cp310-ffd7b4d13d09a0572eb0f3d85bb006d0043821e28e0e1e2c12f81995da1bd796/site-packages/appdynamics_bindeps/zmq/backend/cython/__init__.py", line 6, in <module>
2024-04-10 11:14:44 from . import (constants, error, message, context,
2024-04-10 11:14:44 ImportError: cannot import name 'constants' from partially initialized module 'appdynamics_bindeps.zmq.backend.cython' (most likely due to a circular import) (/tmp/appd/lib/cp310-cp310-ffd7b4d13d09a0572eb0f3d85bb006d0043821e28e0e1e2c12f81995da1bd796/site-packages/appdynamics_bindeps/zmq/backend/cython/__init__.py)

1 REPLY 1

SIVA.KURAPATI
New Poster

resolved this.. by adding "

--platform=linux/amd64

while pulling the image..

for instance 
use 

FROM --platform=linux/amd64 tiangolo/uvicorn-gunicorn-fastapi:python3.10

instead of 

 

FROM  tiangolo/uvicorn-gunicorn-fastapi:python3.10