WIP: Package waveshare CM4-NAS-Double-Deck demo app #49

Closed
lee.miller wants to merge 5 commits from lee.miller/openwrt:packages into main
Collaborator

Hi!

I started packaging the demo app. Here are already packages for depends, RPi.GPIO and spidev. Converting the zip into a package will take more time.

Hi! I started packaging the demo app. Here are already packages for depends, `RPi.GPIO` and `spidev`. Converting the zip into a package will take more time.
Author
Collaborator

Converting the zip into a package will take more time.

Well, I made a first attempt.

> Converting the zip into a package will take more time. Well, I made a first attempt.
Author
Collaborator

Hmm, buildbot can't fetch the zip.

Hmm, buildbot can't fetch the zip.
lee.miller force-pushed packages from dd3ff9dfa0 to 1df224847e 2023-07-02 18:06:53 +02:00 Compare
Owner

I think it's going in the right direction, but there is an unexpected problem. It also needs the pillow package: https://pypi.org/project/Pillow/. When I install it, the waveshare-demo throws an exception, and debugging led me to the conclusion that the .so files in the pillow aarch64 wheel are built against GNU libc, which isn't 100% compatible with openwrt. So you probably have to add building pillow from source. Debug info:

root@OpenWrt:~# waveshare-demo 
Traceback (most recent call last):
  File "/usr/bin/waveshare-demo", line 33, in <module>
    sys.exit(load_entry_point('waveshare==0.0.2', 'console_scripts', 'waveshare-demo')())
  File "/usr/bin/waveshare-demo", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/waveshare/main.py", line 9, in <module>
  File "/usr/lib/python3.10/site-packages/waveshare/image.py", line 11, in <module>
  File "/usr/lib/python3.10/site-packages/PIL/Image.py", line 103, in <module>
    from . import _imaging as core
ImportError: cannot import name '_imaging' from 'PIL' (/usr/lib/python3.10/site-packages/PIL/__init__.py)
root@OpenWrt:~# ldd /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so 
	ldd (0x7f95c60000)
	libjpeg-0cddceb7.so.62.3.0 => /usr/lib/python3.10/site-packages/PIL/../Pillow.libs/libjpeg-0cddceb7.so.62.3.0 (0x7f95b1c000)
	libopenjp2-c291b13c.so.2.5.0 => /usr/lib/python3.10/site-packages/PIL/../Pillow.libs/libopenjp2-c291b13c.so.2.5.0 (0x7f95a79000)
	libz.so.1 => /usr/lib/libz.so.1 (0x7f95a55000)
	libtiff-75e31e0c.so.6.0.0 => /usr/lib/python3.10/site-packages/PIL/../Pillow.libs/libtiff-75e31e0c.so.6.0.0 (0x7f95973000)
	libxcb-970b5bb6.so.1.1.0 => /usr/lib/python3.10/site-packages/PIL/../Pillow.libs/libxcb-970b5bb6.so.1.1.0 (0x7f9590e000)
	libc.musl-aarch64.so.1 => ldd (0x7f95c60000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7f958eb000)
	liblzma-1845f3c5.so.5.4.2 => /usr/lib/python3.10/site-packages/PIL/../Pillow.libs/liblzma-1845f3c5.so.5.4.2 (0x7f9588a000)
	libXau-0eda315d.so.6.0.0 => /usr/lib/python3.10/site-packages/PIL/../Pillow.libs/libXau-0eda315d.so.6.0.0 (0x7f95869000)
	libXdmcp-f62d90dd.so.6.0.0 => /usr/lib/python3.10/site-packages/PIL/../Pillow.libs/libXdmcp-f62d90dd.so.6.0.0 (0x7f95838000)
	libbsd-f79a97e5.so.0.10.0 => /usr/lib/python3.10/site-packages/PIL/../Pillow.libs/libbsd-f79a97e5.so.0.10.0 (0x7f95807000)
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyTuple_New: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PySlice_Unpack: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyModule_AddObject: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyObject_IsTrue: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyArg_ParseTuple: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyDict_GetItem: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyDict_New: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyEval_RestoreThread: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PySequence_Check: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyErr_Occurred: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyFloat_AsDouble: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyCapsule_New: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _Py_BuildValue_SizeT: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyUnicode_FromString: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyLong_FromLong: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyModule_AddIntConstant: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyFloat_FromDouble: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _PyArg_ParseTuple_SizeT: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _PyBytes_Resize: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _PyObject_CallMethod_SizeT: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyBuffer_Release: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyObject_Print: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PySequence_GetItem: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyTuple_GetItem: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyBytes_FromStringAndSize: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: Py_BuildValue: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyBool_FromLong: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyNumber_AsSsize_t: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyLong_AsSsize_t: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PySequence_Fast: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _PyObject_New: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PySequence_Size: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyObject_Size: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyBytes_AsString: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyErr_SetFromErrno: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyErr_NoMemory: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyType_IsSubtype: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyModule_Create2: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyErr_ExceptionMatches: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyLong_AsLong: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyObject_GetBuffer: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyList_New: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyUnicode_AsLatin1String: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyErr_Clear: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyErr_Format: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyModule_GetDict: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyDict_SetItemString: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PySlice_AdjustIndices: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyType_Ready: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _Py_Dealloc: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyNumber_Check: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyIndex_Check: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyList_GetItem: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyObject_CallMethod: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyLong_AsLongLong: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyObject_CallFunction: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyEval_SaveThread: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyObject_Free: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyLong_FromSsize_t: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyTuple_Size: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyList_SetItem: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyBytes_Size: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyObject_CheckBuffer: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyErr_SetString: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyBytes_AsStringAndSize: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyList_Size: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _PyErr_BadInternalCall: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyFloat_Type: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PySlice_Type: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyUnicode_Type: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyExc_TypeError: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _Py_NoneStruct: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyExc_SystemError: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyExc_ValueError: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyExc_MemoryError: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyExc_OSError: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _Py_FalseStruct: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyExc_RuntimeError: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _Py_TrueStruct: symbol not found
Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyExc_IndexError: symbol not found

When I try to run the app from source, I'm getting a different error:

root@OpenWrt:~/cm4/CM4-NAS-Double-Deck_Demo/RaspberryPi# python example/main.py 
Traceback (most recent call last):
  File "/root/cm4/CM4-NAS-Double-Deck_Demo/RaspberryPi/example/main.py", line 8, in <module>
    import image 
  File "/root/cm4/CM4-NAS-Double-Deck_Demo/RaspberryPi/example/image.py", line 13, in <module>
    from lib import LCD_2inch
  File "/root/cm4/CM4-NAS-Double-Deck_Demo/RaspberryPi/lib/LCD_2inch.py", line 3, in <module>
    from . import lcdconfig
  File "/root/cm4/CM4-NAS-Double-Deck_Demo/RaspberryPi/lib/lcdconfig.py", line 37, in <module>
    class RaspberryPi:
  File "/root/cm4/CM4-NAS-Double-Deck_Demo/RaspberryPi/lib/lcdconfig.py", line 38, in RaspberryPi
    def __init__(self,spi=spidev.SpiDev(0,0),spi_freq=40000000,rst = 27,dc = 25,bl = 18,fan = 19,bl_freq=1000,i2c=None,i2c_freq=100000):
FileNotFoundError: [Errno 2] No such file or directory

(it's from spidev.SpiDev(0,0))

That is regarding the LCD.

The fan seems to work now, using the fan demo app. However I'm not 100% sure if it wasn't already working before.

I think it's going in the right direction, but there is an unexpected problem. It also needs the `pillow` package: https://pypi.org/project/Pillow/. When I install it, the `waveshare-demo` throws an exception, and debugging led me to the conclusion that the .so files in the pillow aarch64 wheel are built against GNU libc, which isn't 100% compatible with openwrt. So you probably have to add building `pillow` from source. Debug info: ``` root@OpenWrt:~# waveshare-demo Traceback (most recent call last): File "/usr/bin/waveshare-demo", line 33, in <module> sys.exit(load_entry_point('waveshare==0.0.2', 'console_scripts', 'waveshare-demo')()) File "/usr/bin/waveshare-demo", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 688, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/usr/lib/python3.10/site-packages/waveshare/main.py", line 9, in <module> File "/usr/lib/python3.10/site-packages/waveshare/image.py", line 11, in <module> File "/usr/lib/python3.10/site-packages/PIL/Image.py", line 103, in <module> from . import _imaging as core ImportError: cannot import name '_imaging' from 'PIL' (/usr/lib/python3.10/site-packages/PIL/__init__.py) root@OpenWrt:~# ldd /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so ldd (0x7f95c60000) libjpeg-0cddceb7.so.62.3.0 => /usr/lib/python3.10/site-packages/PIL/../Pillow.libs/libjpeg-0cddceb7.so.62.3.0 (0x7f95b1c000) libopenjp2-c291b13c.so.2.5.0 => /usr/lib/python3.10/site-packages/PIL/../Pillow.libs/libopenjp2-c291b13c.so.2.5.0 (0x7f95a79000) libz.so.1 => /usr/lib/libz.so.1 (0x7f95a55000) libtiff-75e31e0c.so.6.0.0 => /usr/lib/python3.10/site-packages/PIL/../Pillow.libs/libtiff-75e31e0c.so.6.0.0 (0x7f95973000) libxcb-970b5bb6.so.1.1.0 => /usr/lib/python3.10/site-packages/PIL/../Pillow.libs/libxcb-970b5bb6.so.1.1.0 (0x7f9590e000) libc.musl-aarch64.so.1 => ldd (0x7f95c60000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7f958eb000) liblzma-1845f3c5.so.5.4.2 => /usr/lib/python3.10/site-packages/PIL/../Pillow.libs/liblzma-1845f3c5.so.5.4.2 (0x7f9588a000) libXau-0eda315d.so.6.0.0 => /usr/lib/python3.10/site-packages/PIL/../Pillow.libs/libXau-0eda315d.so.6.0.0 (0x7f95869000) libXdmcp-f62d90dd.so.6.0.0 => /usr/lib/python3.10/site-packages/PIL/../Pillow.libs/libXdmcp-f62d90dd.so.6.0.0 (0x7f95838000) libbsd-f79a97e5.so.0.10.0 => /usr/lib/python3.10/site-packages/PIL/../Pillow.libs/libbsd-f79a97e5.so.0.10.0 (0x7f95807000) Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyTuple_New: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PySlice_Unpack: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyModule_AddObject: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyObject_IsTrue: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyArg_ParseTuple: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyDict_GetItem: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyDict_New: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyEval_RestoreThread: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PySequence_Check: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyErr_Occurred: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyFloat_AsDouble: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyCapsule_New: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _Py_BuildValue_SizeT: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyUnicode_FromString: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyLong_FromLong: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyModule_AddIntConstant: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyFloat_FromDouble: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _PyArg_ParseTuple_SizeT: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _PyBytes_Resize: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _PyObject_CallMethod_SizeT: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyBuffer_Release: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyObject_Print: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PySequence_GetItem: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyTuple_GetItem: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyBytes_FromStringAndSize: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: Py_BuildValue: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyBool_FromLong: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyNumber_AsSsize_t: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyLong_AsSsize_t: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PySequence_Fast: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _PyObject_New: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PySequence_Size: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyObject_Size: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyBytes_AsString: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyErr_SetFromErrno: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyErr_NoMemory: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyType_IsSubtype: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyModule_Create2: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyErr_ExceptionMatches: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyLong_AsLong: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyObject_GetBuffer: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyList_New: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyUnicode_AsLatin1String: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyErr_Clear: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyErr_Format: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyModule_GetDict: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyDict_SetItemString: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PySlice_AdjustIndices: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyType_Ready: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _Py_Dealloc: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyNumber_Check: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyIndex_Check: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyList_GetItem: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyObject_CallMethod: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyLong_AsLongLong: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyObject_CallFunction: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyEval_SaveThread: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyObject_Free: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyLong_FromSsize_t: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyTuple_Size: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyList_SetItem: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyBytes_Size: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyObject_CheckBuffer: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyErr_SetString: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyBytes_AsStringAndSize: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyList_Size: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _PyErr_BadInternalCall: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyFloat_Type: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PySlice_Type: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyUnicode_Type: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyExc_TypeError: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _Py_NoneStruct: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyExc_SystemError: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyExc_ValueError: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyExc_MemoryError: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyExc_OSError: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _Py_FalseStruct: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyExc_RuntimeError: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: _Py_TrueStruct: symbol not found Error relocating /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-aarch64-linux-gnu.so: PyExc_IndexError: symbol not found ``` When I try to run the app from source, I'm getting a different error: ``` root@OpenWrt:~/cm4/CM4-NAS-Double-Deck_Demo/RaspberryPi# python example/main.py Traceback (most recent call last): File "/root/cm4/CM4-NAS-Double-Deck_Demo/RaspberryPi/example/main.py", line 8, in <module> import image File "/root/cm4/CM4-NAS-Double-Deck_Demo/RaspberryPi/example/image.py", line 13, in <module> from lib import LCD_2inch File "/root/cm4/CM4-NAS-Double-Deck_Demo/RaspberryPi/lib/LCD_2inch.py", line 3, in <module> from . import lcdconfig File "/root/cm4/CM4-NAS-Double-Deck_Demo/RaspberryPi/lib/lcdconfig.py", line 37, in <module> class RaspberryPi: File "/root/cm4/CM4-NAS-Double-Deck_Demo/RaspberryPi/lib/lcdconfig.py", line 38, in RaspberryPi def __init__(self,spi=spidev.SpiDev(0,0),spi_freq=40000000,rst = 27,dc = 25,bl = 18,fan = 19,bl_freq=1000,i2c=None,i2c_freq=100000): FileNotFoundError: [Errno 2] No such file or directory ``` (it's from `spidev.SpiDev(0,0)`) That is regarding the LCD. The fan seems to work now, using the fan demo app. However I'm not 100% sure if it wasn't already working before.
Author
Collaborator

Maybe we also need the driver?

Maybe we also need the [driver](https://github.com/waveshare/LCD-show/blob/master/LCD28-show)?
Owner

Maybe we also need the driver?

Hmm I may be getting stupid, I didn't realize that an LCD under linux is probably going to be seen as a display and perhaps you may need X. Let me test and I'll see what's going to happen.

> Maybe we also need the [driver](https://github.com/waveshare/LCD-show/blob/master/LCD28-show)? Hmm I may be getting stupid, I didn't realize that an LCD under linux is probably going to be seen as a display and perhaps you may need X. Let me test and I'll see what's going to happen.
Owner

I think I'll use ubuntu on this device, it's too much work otherwise. We'll skip this.

I think I'll use ubuntu on this device, it's too much work otherwise. We'll skip this.
PeterSurda closed this pull request 2023-07-05 07:54:58 +02:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Sysdeploy/openwrt#49
No description provided.