ESP32 micropython problem with managing packages

144 views
Skip to first unread message

Dubik

unread,
Dec 23, 2024, 3:14:29 AM12/23/24
to thonny
Hi, I haven't use micropython for half a year. Before I used Generic micropython 1.21.0 for esp32 wroom module. I used additional libraries EEPROM and uModbus in zip file. After flashing microphython I installed it by managing pakages from local files in tools menu in Thonny. Now I found new version of micropython 1.24.1 and decided to install it. But when I entered managing packages and installing libraries from zip files I generates error:

install install /media/dubik/reszta/Projekty/Neotech/ethernet/micropython/ESP32/Ostateczne/micropython-modbus-develop.zip
Looking in indexes: http://127.0.0.1:36628
Processing /media/dubik/reszta/Projekty/Neotech/ethernet/micropython/ESP32/Ostateczne/micropython-modbus-develop.zip
  Installing build dependencies: started
127.0.0.1 - - [19/Dec/2024 13:56:40] "GET /setuptools/ HTTP/1.1" 200 -
127.0.0.1 - - [19/Dec/2024 13:56:41] "GET /wheel/ HTTP/1.1" 200 -
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
127.0.0.1 - - [19/Dec/2024 13:56:43] "GET /install/ HTTP/1.1" 404 -
ERROR: Could not find a version that satisfies the requirement install (from versions: none)
ERROR: No matching distribution found for install
Error Command '['/home/dubik/.cache/pipkin/workspaces/b4bbe4b5e8646f327d1762cb62bdf0ba/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', 'install', '/media/dubik/reszta/Projekty/Neotech/ethernet/micropython/ESP32/Ostateczne/micropython-modbus-develop.zip', '--index-url', 'http://127.0.0.1:36628']' returned non-zero exit status 1.

I compare with old modules and observed that it has installed "Install" package version 1.3.5. When I uninstall uModbus from this module and install again from local zip file it works. When I search "install" package in pypi there is no module found. I checked in Thonny 4.1.2 and  4.1.7. I also tried to install libraries with REPL script and mip.install('uModbus') but it returns:

>>> import mip
>>> mip.install('uModbus')
Installing uModbus (latest) from https://micropython.org/pi/v2 to /lib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "mip/__init__.py", line 1, in install
  File "mip/__init__.py", line 1, in _install_package
  File "mip/__init__.py", line 1, in _install_json
  File "requests/__init__.py", line 201, in get
  File "requests/__init__.py", line 79, in request
OSError: -202

When in version 4.1.2 in manage packages I search in pypi uModbus, there is no results, but when I do it in version 4.1.7 there is packeage but during installation it returns:

install --progress-bar off uModbus
Error 'type' object is not subscriptable

Can anybody help me?

Alexandre Villares

unread,
Jan 15, 2025, 10:55:09 AM1/15/25
to thonny
Cheers!  (You didn't "sign", put your name in the message, Google Groups hides the email header...)

The PyPI API has changed recently and that's why Thonny 4.1.2 didn't return any results when you searched for packages. Thonny 4.1.7 fixed  that. Now I don't know much about your particular error message but I would suggest you try installing from Tools > open system shell... using pip to see if you get a more complete error message.

On the other hand, there was this issue: https://github.com/thonny/thonny/issues/2979 and maybe Aivar can give more information if something else changed recently.

best regards,
Alexandre
Reply all
Reply to author
Forward
0 new messages