Closed strange-v closed 3 years ago
I think there are two issues:
Here is a docker file that works for this project:
FROM python:3.8.5-alpine
RUN apk add git build-base bison flex
RUN git clone https://github.com/lm-sensors/lm-sensors.git /lmsensors && \
cd /lmsensors && make install && \
git clone https://github.com/bastienleonard/pysensors.git /pysensors && \
cd /pysensors && python setup.py build_ext --inplace
WORKDIR /pysensors
CMD ["python", "-c", "import sensors; print(sensors.get_detected_chips())"]
I’m installing lm_sensors from GitHub because I couldn’t figure out how to get the headers otherwise.
Thank you, I'll try to install it in this way.
Please reopen if you still face issues.
Hi.
It's a really cool project and it works nice but not in the docker container. For some reason, I'm getting error during installation:
Part of my dockerfile:
I'm not closely familiar with docker and python, so maybe the issue isn't related to the library itself.