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:36628Processing /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?