Nickduino / Pi-Somfy

A script to open and close your Somfy (and SIMU) blinds with a Raspberry Pi and an RF emitter.
Other
434 stars 108 forks source link

Newer `requirements.txt` versions incompatible with pi-zero #134

Open janstenpickle opened 2 years ago

janstenpickle commented 2 years ago

As per title, I'm not sure which requirement is causing the problem, but I suspect it's ephem.

When trying to run operateShutters.py all you get is an Illegal Operation message, probably because a newer version of one of the dependencies has native code built for a newer instruction set.

I've found pinning the versions in requirements.txt fixes this, I suggest that either the versions are pinned in this repo or an alternative requirements.pizero.txt be added containing something like this (my last known good versions):

ephem==4.0.0.2
configparser==5.0.2
Flask==2.0.1
paho-mqtt==1.5.1
pigpio==1.78
Nickduino commented 2 years ago

Care to do a pull request? :-)

janstenpickle commented 2 years ago

@Nickduino sure thing, would you prefer a modification to the existing requirements.txt or a new one for Pi-Zero's?

Nickduino commented 2 years ago

would you prefer a modification to the existing requirements.txt or a new one for Pi-Zero's?

@MichaelB2018, @rbswift, @MarkGodwin and others: what's your take on this?

MichaelB2018 commented 2 years ago

suggest a new one

rbswift commented 2 years ago

I'm not an expert but suggest holding back versions in as targeted and limited was possible so we get maximum benefit of future but fixes where possible.

Creating a virtual environment (venv) may also be an option.

Nickduino commented 2 years ago

Alright, a limiting requirements.txt for the Pi-Zero, then :-)