espressif / esp-rainmaker

ESP RainMaker Agent for firmware development
Apache License 2.0
431 stars 145 forks source link

IDF v5.0 problem with Host Driven Claiming (python issue) (MEGH-4255) #232

Open jacek12345 opened 1 year ago

jacek12345 commented 1 year ago

I'm trying Host Driven Claiming. It works with IDFv.4.4.3, but does not work with 5.0

F:\GitHub\esp-rainmaker\cli>python rainmaker.py login
[ERROR]:Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

I downgraded protobuf to 3.20.0. Now, login command goes but problem is with claim command:

F:\GitHub\esp-rainmaker\cli>python rainmaker.py claim COM6 --addr 0x7a0000
[ERROR]:module 'esptool' has no attribute 'FatalError'
module 'esptool' has no attribute 'FatalError'

Also tried a few different python versions and each trying ends with[ERROR]:module 'esptool' has no attribute 'FatalError' Python 3.11 have more issues so i left it. Now trying with 3.7.4 and no luck.

sanketwadekar commented 1 year ago

@jacek12345 We are working on this issue and get it fixed soon.