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

OneAgent custom plugin with SDK: run ko : charset-normalizer 3.0.1 not ok aiohttp

gilles_tabary
Mentor

Hello.

I am using OneAgent SDK 1.257.250.20230202-090730, trying to deploy it on a OneAgent of the same version. I deploy one the OneAgent, restart it and I guet in the logs :

 

 

2023-03-02 23:29:30.111 UTC [000209ee] severe  [native] 139814741473024(MainThread) - [_check_candidate_working_set] Resolving distribution failed because of (charset-normalizer 3.0.1 (/PKxr1dd1/soft/plugin_deployment/custom.python.bcv_traefik_prometheus_service_open_connections), Requirement.parse('charset-normalizer<3.0,>=2.0'), {'aiohttp'})
 project: aiohttp
 version: 3.8.1
 path: /var/lib/dynatrace/oneagent/agent/runtime/plugins_unpacked/ruxit.python.docker/ruxit.python.docker
 location: /var/lib/dynatrace/oneagent/agent/runtime/plugins_unpacked/ruxit.python.docker/ruxit.python.docker

...

 2023-03-02 23:30:22.175 UTC [000209ee] info    [native] 139814741473024(MainThread) - [do] {('custom.python.bcv_traefik_prometheus_service_open_connections', '0.1'): (PluginFullStatus(pluginName=custom.python.bcv_traefik_prometheus_service_open_connections, 
pluginVersion=0.1, state=INCOMPATIBLE, description=[ContextualVersionConflict(charset-normalizer 3.0.1 (/PKxr1dd1/soft/plugin_deployment/custom.python.bcv_traefik_prometheus_service_open_connections), Requirement.parse('charset-normalizer<3.0,>=2.0'), {'aiohttp'})], monitoredEntityId=0x0, stacktrace=), 49598.712680481), ('dynatrace.python.heartbeat', 5502806169358845469): (PluginFullStatus(pluginName=dynatrace.python.heartbeat, pluginVersion=1.786, state=OK, description=, monitoredEntityId=0x4c5de50e5076461d, stacktrace=), 49594.71034518), ('dynatrace.python.ntp', 5502806169358845469): (PluginFullStatus(pluginName=dynatrace.python.ntp, pluginVersion=2.016, state=DISABLED, description=, monitoredEntityId=0x4c5de50e5076461d, stacktrace=), 49594.710490976)}

 

 

Any one got that ?

What can I do. I built both on a Linux box and a windows box. Same result.

Regards.

I created a ticket : https://one.dynatrace.com/hc/en-us/requests/142129.

1 REPLY 1

gilles_tabary
Mentor

Support says : In plugin.json file, add into existing "install_requires" section :  "charset-normalizer<3.0,>=2.0"  

 

"install_requires": [
   "...",
   "charset-normalizer<3.0,>=2.0"
]

 

 

Featured Posts