Splunk AppDynamics

python agent failing on mac m1 pro

SIVA_KURAPATI
Engager

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)

Labels (1)
Tags (4)
0 Karma
1 Solution

SIVA_KURAPATI
Engager

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 

View solution in original post

0 Karma

SIVA_KURAPATI
Engager

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 
0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...