paul- wrote: 
> Python modules can be tricky, sometimes downloading the source and using
> setup.py works better than pip.   pip will sometimes pull in precompiled
> binaries that don't work well in our environment.   I would be happy to
> take a look.
> 
> Is this the list?
> https://pypi.org/project/spidev/
> https://pypi.org/project/luma.core/
> https://pypi.org/project/luma.oled/

Thanks Paul

spidev isn't directly imported - it's a dependency in luma.core and the
import breaks at that point.  I've imported extensions python3.8,
python-pip, python-setuptools, python-pillow and python-gpio already. 
Then I can pip import pylms ok, but luma.core fails - I didn't actually
try luma.oled.

When I built my own python, the reqs.pip was 

pillow --global-option="build_ext" --global-option="--disable-jpeg"
--global-option="--disable-zlib" --global-option="--enable-freetype"
luma.oled
luma.core
pyftdi
smbus2
spidev
RPI.GPIO
pyusb
pyserial
pylms

pyusb, smbus2, and pyserial are dependencies of luma.core I think - but
i think it seemed to pull them ok when I tried to import luma.core

BTW - when I built my own, I had to do "CFLAGS="-fcommon" pip install -r
reqs.pip " because otherwise rpi.gpio won't build, but I assume the
python-gpio extension would bypass that...

Happy to try anything....

As I said, I can build it anyway, but the extension route will be much
easier for others, and I'm trying to persuade Audiophonics to provide a
pcp standard image instead of the very fat dietpi image they push out at
the moment.

Peter


------------------------------------------------------------------------
psketch's Profile: http://forums.slimdevices.com/member.php?userid=56555
View this thread: http://forums.slimdevices.com/showthread.php?t=113512

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to