prometheus_express
prometheus_express copied to clipboard
Modern CircuitPython Compatibility
I am trying to use this software using CircuitPython and I managed to get past an issue, and want to document it here.
Traceback (most recent call last):
File "code.py", line 39, in <module>
File "/lib/prometheus_express/__init__.py", line 4, in <module>
File "/lib/prometheus_express/server.py", line 1, in <module>
ImportError: no module named 'socket'
I got the above error. I was able to go into the /lib folder, and update server.py. I just commented out the:
import socket at the top of the file.
As long as you aren't trying to use the built in webserver, than this can work.