You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
checkout commit before introducing breaking change (e.g. git checkout c0733d6)
install that version (e.g. pip install library/)
Note: If you are using a newer Pi OS using python virtual environments, you have to remember that su - and sudo do not respect a previously selected venv, so whenever you switch between the normal user and root, you have to make sure you activate the venv again.
The text was updated successfully, but these errors were encountered:
While the permanent fix is to update the examples in this repository, I just wanted to suggest a simpler workaround as noted here:
pip install st7735==0.0.5
This pins the st7735 library to the newest version prior to the breaking changes. Once the examples here are updated, you can just run pip install --upgrade st7735 and it should pull down the latest version again. There may be older versions available for any other similarly affected libraries, but I haven't personally checked.
The updated examples are in an open pull request, you should use the library and examples from there until it's released/merged... probably something I should just do ASAP, but I'd hoped to get some feedback on it first -
After installing enviroplus-python library as described in the documentation the
lcd.py
example fails with an error'int' object is not iterable'
.The reason is that the used ST7735 library has had a breaking change (see pimoroni/st7735-python#32 for details).
Until the code in this repository is fixed you can solve the problem like this:
pip uninstall st7735
)git clone https://github.com/pimoroni/st7735-python.git
)git checkout c0733d6
)pip install library/
)Note: If you are using a newer Pi OS using python virtual environments, you have to remember that
su -
andsudo
do not respect a previously selected venv, so whenever you switch between the normal user and root, you have to make sure you activate the venv again.The text was updated successfully, but these errors were encountered: