I am tryinng to write a data collection module in Python and I need to use these libraries, asyncio and mtrpacket, that are written for Python3. However, python.d, uses pythonv2 for debugging and I have a SyntaxError while running the code. The error is:
[mtr] error on loading source : SyntaxError(‘invalid syntax’, (’/usr/libexec/netdata/python.d/mtr.chart.py’, 16, 9, ‘async def trace(host):\n’)), skipping it
Is there any way to switch to Python3 in order to use these libraries?
Netdata is installed on Ubuntu 18.04 laptop.
Any help would be extremely useful.