May 17, 2017 This feature is not available right now. Please try again later.
I'm a beginner and I'm totally stuck on this one. I tried many different solutions but haven't been able to find one that works yet, could you help me? :)
I created an Ubuntu 12.04 VM with Vagrant on VirtualBox and installed a Datadog agent on it.I then created a Datadog API script to create a timeboard with different graphs. I'm trying to execute the python script but I get a warning every time, and no results.As you can see here: https://docs.datadoghq.com/api/?lang=python#create-a-timeboardI should be able to see the timeboard in my Datadog dashboard, but it doesn't appear.
Here is the script I created in /home/datadog :
And when I execute the script using
/home/datadog$ ./timeboard.py
I am getting the following:I tried upgrading python but when executing the code with Python 3, it doesn't recognize the Datadog python package anymore (https://github.com/DataDog/datadogpy) and I don't know how to move it from Python 2.7, or if deleting Python 2.7 will cause huge issues in my code/script. I'm a beginner so sorry if this is confusing!
I also tried following https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings but unfortunately the import command doesn't work either, is there a specific software/package to install to make it work?
What am I doing wrong?Thanks!
BarbosaBarbosa
closed as off-topic by muru, user535733, wjandrea, Eric Carvalho, David FoersterMar 3 '18 at 10:55
This question appears to be off-topic. The users who voted to close gave these specific reasons:
- 'This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow.' – muru, David Foerster
- 'This question is specific to an end of life Ubuntu release. These are no longer supported and are therefore off-topic here. To upgrade, see: How to install software or upgrade from old unsupported release?' – wjandrea, Eric Carvalho
1 Answer
The answer was to remove the warnings by adding import... directly in the python script, as explained in this answer on stackoverflow.com.
dessert27.6k66 gold badges8383 silver badges115115 bronze badges
BarbosaBarbosa