Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modern CircuitPython Compatibility #34

Open
kornpow opened this issue Jan 16, 2024 · 0 comments
Open

Modern CircuitPython Compatibility #34

kornpow opened this issue Jan 16, 2024 · 0 comments

Comments

@kornpow
Copy link

kornpow commented Jan 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant