Hi Paul,
I can't install luma.core or luma.oled:


Code:
--------------------
    $ python3 -m pip install luma.core
  Collecting luma.core
  Using cached luma.core-2.1.0-py2.py3-none-any.whl (67 kB)
  Requirement already satisfied: RPI.GPIO in 
/usr/local/lib/python3.8/site-packages (from luma.core) (0.7.0)
  Requirement already satisfied: pillow>=4.0.0 in 
/usr/local/lib/python3.8/site-packages (from luma.core) (8.0.1)
  Collecting cbor2
  Using cached cbor2-5.2.0.tar.gz (81 kB)
  Collecting deprecated
  Using cached Deprecated-1.2.10-py2.py3-none-any.whl (8.7 kB)
  Requirement already satisfied: wrapt<2,>=1.10 in 
/usr/local/lib/python3.8/site-packages (from deprecated->luma.core) (1.12.1)
  Collecting pyftdi
  Using cached pyftdi-0.52.0-py3-none-any.whl (150 kB)
  Requirement already satisfied: pyusb>=1.0.0 in 
/usr/local/lib/python3.8/site-packages (from pyftdi->luma.core) (1.1.0)
  Requirement already satisfied: pyserial>=3.0 in 
/usr/local/lib/python3.8/site-packages (from pyftdi->luma.core) (3.5)
  Collecting smbus2
  Using cached smbus2-0.3.0.tar.gz (10 kB)
  Collecting spidev
  Using cached spidev-3.5.tar.gz (10 kB)
  Using legacy 'setup.py install' for cbor2, since package 'wheel' is not 
installed.
  Using legacy 'setup.py install' for smbus2, since package 'wheel' is not 
installed.
  Using legacy 'setup.py install' for spidev, since package 'wheel' is not 
installed.
  Installing collected packages: spidev, smbus2, pyftdi, deprecated, cbor2, 
luma.core
  Running setup.py install for spidev ... error
  ERROR: Command errored out with exit status 1:
  command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; 
sys.argv[0] = 
'"'"'/tmp/pip-install-ccel9nf2/spidev_ae3d48627bf145e5bb70b8067d99dfff/setup.py'"'"';
 
__file__='"'"'/tmp/pip-install-ccel9nf2/spidev_ae3d48627bf145e5bb70b8067d99dfff/setup.py'"'"';f=getattr(tokenize,
 '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', 
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install 
--record /tmp/pip-record-9_wc1usn/install-record.txt 
--single-version-externally-managed --compile --install-headers 
/usr/local/include/python3.8/spidev
  cwd: /tmp/pip-install-ccel9nf2/spidev_ae3d48627bf145e5bb70b8067d99dfff/
  Complete output (12 lines):
  running install
  running build
  running build_ext
  building 'spidev' extension
  creating build
  creating build/temp.linux-aarch64-3.8
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 
-march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe -march=armv8-a+crc 
-mtune=cortex-a53 -O2 -pipe -fPIC -I/usr/local/include/python3.8 -c 
spidev_module.c -o build/temp.linux-aarch64-3.8/spidev_module.o
  spidev_module.c:28:10: fatal error: Python.h: No such file or directory
  28 | #include <Python.h>
  |          ^~~~~~~~~~
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import 
sys, setuptools, tokenize; sys.argv[0] = 
'"'"'/tmp/pip-install-ccel9nf2/spidev_ae3d48627bf145e5bb70b8067d99dfff/setup.py'"'"';
 
__file__='"'"'/tmp/pip-install-ccel9nf2/spidev_ae3d48627bf145e5bb70b8067d99dfff/setup.py'"'"';f=getattr(tokenize,
 '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', 
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install 
--record /tmp/pip-record-9_wc1usn/install-record.txt 
--single-version-externally-managed --compile --install-headers 
/usr/local/include/python3.8/spidev Check the logs for full command output.
--------------------


------------------------------------------------------------------------
pmendiuk's Profile: http://forums.slimdevices.com/member.php?userid=62342
View this thread: http://forums.slimdevices.com/showthread.php?t=111835

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to