Hello
I own an Arduino Nano RP2040 and use the Thonny IDE to write my scripts. I'm attempting, with no success, to install a new package named micropython-umqtt.simple. I want to install an MQTT client. Is it possible? During the installation process, it returns an OS error: Errors. I even tried using mip.install
from the code, but I receive an OS NIC error
is it possible to install a mqtt client on arduino nano rp2040 ?
Looking in indexes: http://127.0.0.1:36628
127.0.0.1 - - [02/May/2024 23:18:15] "GET /micropython-umqtt-simple/ HTTP/1.1" 200 -
Collecting micropython-umqtt.simple
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 39600)
Traceback (most recent call last):
File "/usr/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python3.11/socketserver.py", line 348, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 204, in __init__
super().__init__(request, client_address, server)
File "/usr/lib/python3.11/socketserver.py", line 755, in __init__
self.handle()
File "/usr/lib/python3.11/http/server.py", line 432, in handle
self.handle_one_request()
File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request
method()
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 211, in do_GET
self._serve_file(*path.split("/"))
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 245, in _serve_file
tweaked_bytes = self._tweak_file(dist_name, file_name, original_bytes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 312, in _tweak_file
assert normalize_dist_name(wrapper_dir).startswith(normalize_dist_name(dist_name))
AssertionError
----------------------------------------
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))': /micropython-umqtt-simple/micropython-umqtt.simple-1.3.4.tar.gz/
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 39604)
Traceback (most recent call last):
File "/usr/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python3.11/socketserver.py", line 348, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 204, in __init__
super().__init__(request, client_address, server)
File "/usr/lib/python3.11/socketserver.py", line 755, in __init__
self.handle()
File "/usr/lib/python3.11/http/server.py", line 432, in handle
self.handle_one_request()
File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request
method()
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 211, in do_GET
self._serve_file(*path.split("/"))
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 245, in _serve_file
tweaked_bytes = self._tweak_file(dist_name, file_name, original_bytes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 312, in _tweak_file
assert normalize_dist_name(wrapper_dir).startswith(normalize_dist_name(dist_name))
AssertionError
----------------------------------------
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))': /micropython-umqtt-simple/micropython-umqtt.simple-1.3.4.tar.gz/
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 39606)
Traceback (most recent call last):
File "/usr/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python3.11/socketserver.py", line 348, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 204, in __init__
super().__init__(request, client_address, server)
File "/usr/lib/python3.11/socketserver.py", line 755, in __init__
self.handle()
File "/usr/lib/python3.11/http/server.py", line 432, in handle
self.handle_one_request()
File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request
method()
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 211, in do_GET
self._serve_file(*path.split("/"))
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 245, in _serve_file
tweaked_bytes = self._tweak_file(dist_name, file_name, original_bytes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 312, in _tweak_file
assert normalize_dist_name(wrapper_dir).startswith(normalize_dist_name(dist_name))
AssertionError
----------------------------------------
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))': /micropython-umqtt-simple/micropython-umqtt.simple-1.3.4.tar.gz/
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 39608)
Traceback (most recent call last):
File "/usr/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python3.11/socketserver.py", line 348, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 204, in __init__
super().__init__(request, client_address, server)
File "/usr/lib/python3.11/socketserver.py", line 755, in __init__
self.handle()
File "/usr/lib/python3.11/http/server.py", line 432, in handle
self.handle_one_request()
File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request
method()
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 211, in do_GET
self._serve_file(*path.split("/"))
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 245, in _serve_file
tweaked_bytes = self._tweak_file(dist_name, file_name, original_bytes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 312, in _tweak_file
assert normalize_dist_name(wrapper_dir).startswith(normalize_dist_name(dist_name))
AssertionError
----------------------------------------
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))': /micropython-umqtt-simple/micropython-umqtt.simple-1.3.4.tar.gz/
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 39618)
Traceback (most recent call last):
File "/usr/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python3.11/socketserver.py", line 348, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 204, in __init__
super().__init__(request, client_address, server)
File "/usr/lib/python3.11/socketserver.py", line 755, in __init__
self.handle()
File "/usr/lib/python3.11/http/server.py", line 432, in handle
self.handle_one_request()
File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request
method()
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 211, in do_GET
self._serve_file(*path.split("/"))
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 245, in _serve_file
tweaked_bytes = self._tweak_file(dist_name, file_name, original_bytes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 312, in _tweak_file
assert normalize_dist_name(wrapper_dir).startswith(normalize_dist_name(dist_name))
AssertionError
----------------------------------------
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))': /micropython-umqtt-simple/micropython-umqtt.simple-1.3.4.tar.gz/
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 40602)
Traceback (most recent call last):
File "/usr/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python3.11/socketserver.py", line 348, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 204, in __init__
super().__init__(request, client_address, server)
File "/usr/lib/python3.11/socketserver.py", line 755, in __init__
self.handle()
File "/usr/lib/python3.11/http/server.py", line 432, in handle
self.handle_one_request()
File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request
method()
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 211, in do_GET
self._serve_file(*path.split("/"))
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 245, in _serve_file
tweaked_bytes = self._tweak_file(dist_name, file_name, original_bytes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/thonny/vendored_libs/pipkin/proxy.py", line 312, in _tweak_file
assert normalize_dist_name(wrapper_dir).startswith(normalize_dist_name(dist_name))
AssertionError
----------------------------------------
ERROR: Could not install packages due to an OSError: HTTPConnectionPool(host='127.0.0.1', port=36628): Max retries exceeded with url: /micropython-umqtt-simple/micropython-umqtt.simple-1.3.4.tar.gz/ (Caused by ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')))
Error Command '['/home/xxxx/.cache/pipkin/workspaces/d12471e3dff4dc2a9742567e16f4cea8/bin/python3', '-I', '-m', 'pip', '--no-color', '--disable-pip-version-check', '--trusted-host', '127.0.0.1', 'install', '--no-compile', '--use-pep517', '--upgrade-strategy', 'only-if-needed', 'micropython-umqtt.simple', '--index-url', 'http://127.0.0.1:36628']' returned non-zero exit status 1.