Skip to content

Installing enviroplus-python library and running lcd.py does not work #128

@gardiner

Description

@gardiner

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:

  • uninstall ST7735 library (e.g. pip uninstall st7735)
  • clone ST7735 repository (e.g. git clone https://github.com/pimoroni/st7735-python.git)
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions