Because the Python package 'zipfile' was missing.

root@qemux86-64:~# python3 clTraceback (most recent call last):
  File "/home/root/server.py", line 4, in <module>
    from websockets.server import serve
  File "/usr/lib/python3.12/site-packages/websockets/__init__.py", line 6, in 
<module>
    from .version import version as __version__  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/websockets/version.py", line 3, in 
<module>
    import importlib.metadata
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 8, in <module>
    import zipfile
ModuleNotFoundError: No module named 'zipfile'

Signed-off-by: Jan Vermaete <[email protected]>
---
 meta/recipes-devtools/python/python3-websockets_12.0.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/python/python3-websockets_12.0.bb 
b/meta/recipes-devtools/python/python3-websockets_12.0.bb
index f89c3b629e..1bebcb4ce6 100644
--- a/meta/recipes-devtools/python/python3-websockets_12.0.bb
+++ b/meta/recipes-devtools/python/python3-websockets_12.0.bb
@@ -13,4 +13,5 @@ BBCLASSEXTEND = "native nativesdk"
 RDEPENDS:${PN} = " \
     python3-asyncio \
     python3-profile \
+    python3-zipp \
 "
-- 
2.39.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#201036): 
https://lists.openembedded.org/g/openembedded-core/message/201036
Mute This Topic: https://lists.openembedded.org/mt/106813187/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to