Coder Social home page Coder Social logo

Comments (7)

Gadgetoid avatar Gadgetoid commented on July 30, 2024

I think I just ran into exactly this problem- the code was structured in such a way that- if psutil was already installed- it would never install the Fan SHIM library. I've fix it now, but for your setup you should just be able to sudo pip3 install fanshim to get it up and running. Assuming you're having the problem I just discovered!

from fanshim-python.

gh3rann avatar gh3rann commented on July 30, 2024

Hello, did you manage to solve this? I am having the very same problem.

from fanshim-python.

gh3rann avatar gh3rann commented on July 30, 2024

I think I just ran into exactly this problem- the code was structured in such a way that- if psutil was already installed- it would never install the Fan SHIM library. I've fix it now, but for your setup you should just be able to sudo pip3 install fanshim to get it up and running. Assuming you're having the problem I just discovered!

I am gettting:
pi@raspberrypi:~/fanshim-python $ sudo pip3 install fanshim
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: fanshim in /usr/local/lib/python3.7/dist-packages/fanshim-0.0.2-py3.7.egg (0.0.2)
Requirement already satisfied: plasmalights in /usr/local/lib/python3.7/dist-packages/plasmalights-0.0.1-py3.7.egg (from fanshim) (0.0.1)
Requirement already satisfied: RPi.GPIO in /usr/lib/python3/dist-packages (from plasmalights->fanshim) (0.7.0)

And still I cannot seem to fin out the issue.

from fanshim-python.

Gadgetoid avatar Gadgetoid commented on July 30, 2024

@gh3rann did you find a solution to your problem? It might be that something else is causing the automatic.py to fail, and you should probably run the example file directly to see if it outputs any errors.

from fanshim-python.

gh3rann avatar gh3rann commented on July 30, 2024

from fanshim-python.

Gadgetoid avatar Gadgetoid commented on July 30, 2024

@gh3rann thanks for letting me know- I'm sorry it didn't work out for you!

from fanshim-python.

BButner avatar BButner commented on July 30, 2024

Just as a heads up, I ran into the exact same issue. I think it just randomly happened after I ran an apt upgrade.

The way I was able to get it back up and running was to modify the service file entry, and comment out the "After" line:

sudo nano /etc/systemd/system/pimoroni-fanshim.service

Then here's my new entry:

[Unit]
Description=Fan Shim Service
#After=multi-user.target

[Service]
Type=simple
WorkingDirectory=/home/pi/FanShim/examples
ExecStart=/usr/bin/python3 /home/pi/FanShim/examples/automatic.py --on-threshold 65 --off-threshold 55 --low-temp 55 --high-temp 65 --delay 2 --brightness 255 
Restart=on-failure

[Install]
WantedBy=multi-user.target

Once you change the file:

sudo systemctl daemon-reload
sudo systemctl restart pimoroni-fanshim.service

And that got the service back up and running. (So now I can actually set it up properly now that I know how to get it functioning!)

from fanshim-python.

Related Issues (20)

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.