Skip to content

Modern CircuitPython Compatibility #34

Description

@kornpow

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions