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

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

Open
janstenpickle opened this issue Jan 2, 2022 · 6 comments
Open

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

janstenpickle opened this issue Jan 2, 2022 · 6 comments

Comments

@janstenpickle
Copy link

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
Copy link
Owner

Care to do a pull request? :-)

@janstenpickle
Copy link
Author

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

@Nickduino
Copy link
Owner

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
Copy link
Collaborator

suggest a new one

@rbswift
Copy link
Contributor

rbswift commented Jan 3, 2022

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
Copy link
Owner

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

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

4 participants