Sensor Tutorial - Notecarrier-Pi - Grove.py install FAIL

JimM Posted Nov 29, 2020:

Following the Sensor Tutorial, having problem configuring a rPi 4. The I2C configuration went fine (notecarrier shows up properly as 0x17). However, step 2 of the Grove Python Libraries install fails (>curl -sL https://github.com/Seeed-Studio/grove.py/raw/master/install.sh | sudo bash -s -). After about 99% completion, terminal output:

.....
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: rpi-ws281x in /usr/local/lib/python2.7/dist-packages (4.2.5)
main: line 107: pip3: command not found
main: line 108: pip3: command not found
main: line 107: pip3: command not found
main: line 108: pip3: command not found
main: line 107: pip3: command not found
main: line 108: pip3: command not found
-------------------------------------------------------
     Grove.py installation FAILED, FAILED, FAILED      
-------------------------------------------------------

It looks like you are using python2.7 – in that case you need to use pip rather than pip3

1 Like

Thanks @Francois, that’s correct. @JimM, try that and let us know. I might need to add a bit more context to the tutorial to clarify.

1 Like

Does Blues have a preferred Python version? I’d think that since Python 2.x is past its end of life it might be advisable to suggest that any new development use Python 3 simply from the supportability perspective - not to mention that it’d make keeping tutorials easier to follow without potential package manager version conflicts.

Absolutely! The note-python library is officially supported only for Python 3.5 and above.

1 Like