Hi Paul,
I tried a few times with --user and had the same result.

I did some reading about tinycore and extensions.  I ended up using pip
with the --prefix switch and placed the packages in a known spot and
created an extension.  

After boot:

Code:
--------------------
    $ pip list
  Package    Version
  ---------- -------
  cbor2      5.2.0
  Deprecated 1.2.10
  luma.core  2.1.0
  luma.oled  3.8.1
  Pillow     8.0.1
  pip        20.1.1
  pyftdi     0.52.0
  pylms      1.0
  pyserial   3.5
  pyusb      1.1.0
  RPi.GPIO   0.7.0
  setuptools 49.2.0
  smbus2     0.3.0
  spidev     3.5
  wheel      0.35.1
  wrapt      1.12.1
--------------------


I finally have all the packages loaded for the OLED script.  As expected
there are issues:


Code:
--------------------
    $ python3 lms_oled_3.12_spi_audiophonics.py
  Traceback (most recent call last):
  File "lms_oled_3.12_spi_audiophonics.py", line 46, in <module>
  font_title              = make_font('msyh.ttf', 26)
  File "lms_oled_3.12_spi_audiophonics.py", line 44, in make_font
  return ImageFont.truetype(font_path, size)
  File "/usr/local/lib/python3.8/site-packages/PIL/ImageFont.py", line 836, in 
truetype
  return freetype(font)
  File "/usr/local/lib/python3.8/site-packages/PIL/ImageFont.py", line 833, in 
freetype
  return FreeTypeFont(font, size, index, encoding, layout_engine)
  File "/usr/local/lib/python3.8/site-packages/PIL/ImageFont.py", line 193, in 
__init__
  self.font = core.getfont(
  OSError: cannot open resource
  
--------------------


So what do you use for python debugging in piCore?  PyCharm?

Patrick


------------------------------------------------------------------------
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