04-12-2020, 01:47 PM
@TookaFace
HI Tried your suggested command option this is what I got:-
$ sudo -H pip --no-python-version-warning install --upgrade luma.oled
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting luma.oled
Downloading luma.oled-3.4.0-py2.py3-none-any.whl (18 kB)
Collecting luma.core>=1.12.0
Downloading luma.core-1.14.0-py2.py3-none-any.whl (51 kB)
|████████████████████████████████| 51 kB 152 kB/s
ERROR: Package 'luma.core' requires a different Python: 2.7.16 not in '>=3.5, <4'
if I use pip3 oled installs thus
pi@moode:~ $ sudo -H pip3 install --upgrade luma.oled
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting luma.oled
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/...ne-any.whl
Collecting luma.core>=1.12.0 (from luma.oled)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/...ne-any.whl (51kB)
100% |████████████████████████████████| 61kB 2.4MB/s
Collecting spidev; platform_system == "Linux" (from luma.core>=1.12.0->luma.oled)
Downloading https://www.piwheels.org/simple/spidev/s...armv7l.whl
Collecting smbus2 (from luma.core>=1.12.0->luma.oled)
Downloading https://www.piwheels.org/simple/smbus2/s...ne-any.whl
Requirement already satisfied, skipping upgrade: RPI.GPIO; platform_system == "Linux" in /usr/local/lib/python3.7/dist-packages (from luma.core>=1.12.0->luma.oled) (0.7.0)
Collecting pyftdi (from luma.core>=1.12.0->luma.oled)
Downloading https://files.pythonhosted.org/packages/...ne-any.whl (148kB)
100% |████████████████████████████████| 153kB 1.7MB/s
Collecting pillow>=4.0.0 (from luma.core>=1.12.0->luma.oled)
Downloading https://www.piwheels.org/simple/pillow/P...armv7l.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 238kB/s
Collecting pyusb>=1.0.0 (from pyftdi->luma.core>=1.12.0->luma.oled)
Downloading https://www.piwheels.org/simple/pyusb/py...ne-any.whl (57kB)
100% |████████████████████████████████| 61kB 1.2MB/s
Collecting pyserial>=3.0 (from pyftdi->luma.core>=1.12.0->luma.oled)
Downloading https://files.pythonhosted.org/packages/...ne-any.whl (193kB)
100% |████████████████████████████████| 194kB 1.4MB/s
Installing collected packages: spidev, smbus2, pyusb, pyserial, pyftdi, pillow, luma.core, luma.oled
Successfully installed luma.core-1.14.0 luma.oled-3.4.0 pillow-7.1.1 pyftdi-0.50.0 pyserial-3.4 pyusb-1.0.2 smbus2-0.3.0 spidev-3.4
but my oled wont disply
cheers
Patrick
HI Tried your suggested command option this is what I got:-
$ sudo -H pip --no-python-version-warning install --upgrade luma.oled
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting luma.oled
Downloading luma.oled-3.4.0-py2.py3-none-any.whl (18 kB)
Collecting luma.core>=1.12.0
Downloading luma.core-1.14.0-py2.py3-none-any.whl (51 kB)
|████████████████████████████████| 51 kB 152 kB/s
ERROR: Package 'luma.core' requires a different Python: 2.7.16 not in '>=3.5, <4'
if I use pip3 oled installs thus
pi@moode:~ $ sudo -H pip3 install --upgrade luma.oled
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting luma.oled
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/...ne-any.whl
Collecting luma.core>=1.12.0 (from luma.oled)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/...ne-any.whl (51kB)
100% |████████████████████████████████| 61kB 2.4MB/s
Collecting spidev; platform_system == "Linux" (from luma.core>=1.12.0->luma.oled)
Downloading https://www.piwheels.org/simple/spidev/s...armv7l.whl
Collecting smbus2 (from luma.core>=1.12.0->luma.oled)
Downloading https://www.piwheels.org/simple/smbus2/s...ne-any.whl
Requirement already satisfied, skipping upgrade: RPI.GPIO; platform_system == "Linux" in /usr/local/lib/python3.7/dist-packages (from luma.core>=1.12.0->luma.oled) (0.7.0)
Collecting pyftdi (from luma.core>=1.12.0->luma.oled)
Downloading https://files.pythonhosted.org/packages/...ne-any.whl (148kB)
100% |████████████████████████████████| 153kB 1.7MB/s
Collecting pillow>=4.0.0 (from luma.core>=1.12.0->luma.oled)
Downloading https://www.piwheels.org/simple/pillow/P...armv7l.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 238kB/s
Collecting pyusb>=1.0.0 (from pyftdi->luma.core>=1.12.0->luma.oled)
Downloading https://www.piwheels.org/simple/pyusb/py...ne-any.whl (57kB)
100% |████████████████████████████████| 61kB 1.2MB/s
Collecting pyserial>=3.0 (from pyftdi->luma.core>=1.12.0->luma.oled)
Downloading https://files.pythonhosted.org/packages/...ne-any.whl (193kB)
100% |████████████████████████████████| 194kB 1.4MB/s
Installing collected packages: spidev, smbus2, pyusb, pyserial, pyftdi, pillow, luma.core, luma.oled
Successfully installed luma.core-1.14.0 luma.oled-3.4.0 pillow-7.1.1 pyftdi-0.50.0 pyserial-3.4 pyusb-1.0.2 smbus2-0.3.0 spidev-3.4
but my oled wont disply
cheers
Patrick