Giter Club home page Giter Club logo

pysensors's People

Contributors

bastienleonard avatar cwstryker avatar sophiekovalevsky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pysensors's Issues

Thanks!

Just wanted to leave a thank you, as I cannot believe that for i3pystatus, on the current linux, this is the only one that works for me!

sensor/error.h not found.

I tried to install this package into my machine and there is no folder name within the repo called sensor.

There is a library call in sensorsmodule.c file that is causing this message at shell: sensorsmodule.c:32:27: fatal error: sensors/error.h: file not found.

Thanks for this awesome binding.

install with pip fails

Hi

I'm trying to install pysensors from pip and it fails with

Collecting pysensors
  Downloading PySensors-0.0.3.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-b7_uqqru/pysensors/setup.py", line 4, in <module>
        import sensors
      File "/tmp/pip-build-b7_uqqru/pysensors/sensors/__init__.py", line 21, in <module>
        MAJOR_VERSION = int(VERSION.split('.', 1)[0])
    TypeError: a bytes-like object is required, not 'str'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-b7_uqqru/pysensors/

the same with pip3
I have libsensors4-dev installed

Thanks

SensorsException when WiFi NIC is rfkilled

When my intel WiFi NICs are rfkilled sensorsd can't get the temperature anymore it seems, and when my i3 bar tries to get the value for the sensors.SUBFEATURE_TEMP_INPUT subfeature I get an exception raised:

sensors.SensorsException: I/O error

Unable to install inside the Docker container

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:

Collecting PySensors
  Downloading PySensors-0.0.4.tar.gz (10 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6sdmbvy5/pysensors/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6sdmbvy5/pysensors/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-3xslclh3
         cwd: /tmp/pip-install-6sdmbvy5/pysensors/
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-6sdmbvy5/pysensors/setup.py", line 3, in <module>
        import sensors
      File "/tmp/pip-install-6sdmbvy5/pysensors/sensors/__init__.py", line 20, in <module>
        raise ImportError("can't find the sensors library.")
    ImportError: can't find the sensors library.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Part of my dockerfile:

FROM python:3.8.5-alpine
RUN apk add build-base linux-headers ethtool zlib-dev jpeg-dev freetype-dev
RUN pip3 install wheel luma.core luma.oled psutil PySensors

I'm not closely familiar with docker and python, so maybe the issue isn't related to the library itself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.