Post by willh on May 5, 2021 8:35:12 GMT -8
Spent some time (and still spending it) updating my Raspian devices. I've run into a fun issue with my GroveWeather pi where PIL is installed and also getting errors about Python 2.7 support (or is it when running Python it is using the latest version and just seeing that I have 2.7 install-doing this as I get time aka late at night without alot of caffeine yay family).
Curious what my best options are moving forward? Moving to use Pillow vs. PIL for Import Image? Working on sorting this though it looks like its related to the OLED so disabling that in config.py and the call from startup script.
I'm getting the following error when starting the GroveWeather software (3.17) with Pillow installed vs. PIL (error installing it below the starting error).
Thanks-trying to sort this out as I have some free time between calls.
Curious what my best options are moving forward? Moving to use Pillow vs. PIL for Import Image? Working on sorting this though it looks like its related to the OLED so disabling that in config.py and the call from startup script.
I'm getting the following error when starting the GroveWeather software (3.17) with Pillow installed vs. PIL (error installing it below the starting error).
pi@weatherpi:~/SDL_Pi_GroveWeatherPi $ sudo python GroveWeatherPi.py
Traceback (most recent call last):
File "GroveWeatherPi.py", line 124, in <module>
import Scroll_SSD1306
File "/home/pi/SDL_Pi_GroveWeatherPi/Scroll_SSD1306.py", line 10, in <module>
from PIL import Image
ImportError: No module named PIL
pi@weatherpi:~/SDL_Pi_GroveWeatherPi $ sudo pip install PIL
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
ERROR: Could not find a version that satisfies the requirement PIL (from versions: none)
ERROR: No matching distribution found for PIL
Thanks-trying to sort this out as I have some free time between calls.