Hello, I installed tensorflow lite on my rp5 but it gave errors. I read that tf lite doesn't work on 3.11 and I have to downgrade to Python 3.9.
When i select Python 3.9 on Thonny, it gives this error:
INTERNAL ERROR, got '' instead of 'OK'
---
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/thonny/plugins/cpython_frontend/cp_front.py", line 39, in __init__
self._send_msg(ToplevelCommand("get_environment_info"))
File "/usr/lib/python3/dist-packages/thonny/running.py", line 1157, in _send_msg
self._proc.stdin.write(serialize_message(msg) + "\n")
BrokenPipeError: [Errno 32] Broken pipe
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/thonny/__init__.py", line 420, in _get_orig_argv
from sys import orig_argv # since 3.10
ImportError: cannot import name 'orig_argv' from 'sys' (unknown location)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/thonny/plugins/cpython_backend/cp_launcher.py", line 53, in <module>
thonny.configure_backend_logging()
File "/usr/lib/python3/dist-packages/thonny/__init__.py", line 407, in configure_backend_logging
_configure_logging(get_backend_log_file(), None)
File "/usr/lib/python3/dist-packages/thonny/__init__.py", line 474, in _configure_logging
main_logger.info("original argv: %s", _get_orig_argv())
File "/usr/lib/python3/dist-packages/thonny/__init__.py", line 425, in _get_orig_argv
import ctypes
File "/usr/local/lib/python3.9/ctypes/__init__.py", line 8, in <module>
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
Process ended with exit code 1.
Tried this but didn't work: sudo apt-get install libffi-dev
I am new to linux and raspberry, thank you for your time.
When i select Python 3.9 on Thonny, it gives this error:
INTERNAL ERROR, got '' instead of 'OK'
---
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/thonny/plugins/cpython_frontend/cp_front.py", line 39, in __init__
self._send_msg(ToplevelCommand("get_environment_info"))
File "/usr/lib/python3/dist-packages/thonny/running.py", line 1157, in _send_msg
self._proc.stdin.write(serialize_message(msg) + "\n")
BrokenPipeError: [Errno 32] Broken pipe
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/thonny/__init__.py", line 420, in _get_orig_argv
from sys import orig_argv # since 3.10
ImportError: cannot import name 'orig_argv' from 'sys' (unknown location)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/thonny/plugins/cpython_backend/cp_launcher.py", line 53, in <module>
thonny.configure_backend_logging()
File "/usr/lib/python3/dist-packages/thonny/__init__.py", line 407, in configure_backend_logging
_configure_logging(get_backend_log_file(), None)
File "/usr/lib/python3/dist-packages/thonny/__init__.py", line 474, in _configure_logging
main_logger.info("original argv: %s", _get_orig_argv())
File "/usr/lib/python3/dist-packages/thonny/__init__.py", line 425, in _get_orig_argv
import ctypes
File "/usr/local/lib/python3.9/ctypes/__init__.py", line 8, in <module>
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
Process ended with exit code 1.
Tried this but didn't work: sudo apt-get install libffi-dev
I am new to linux and raspberry, thank you for your time.
Statistics: Posted by sba — Tue Apr 30, 2024 9:56 pm