googleOTP-to-andOTP
googleOTP-to-andOTP copied to clipboard
Import error
I had this problem on Ubuntu 23.04:
python3 toAndOTP.py input.txt output.txt
Traceback (most recent call last):
File "/home/petr/soubory/programovani/blenderkit/googleOTP-to-andOTP/toAndOTP.py", line 3, in <module>
from GAuthPayload_pb2 import GAuthPayload
File "/home/petr/soubory/programovani/blenderkit/googleOTP-to-andOTP/GAuthPayload_pb2.py", line 5, in <module>
from google.protobuf.internal import builder as _builder
ImportError: cannot import name 'builder' from 'google.protobuf.internal' (/home/petr/soubory/programovani/blenderkit/googleOTP-to-andOTP/venv/lib/python3.11/site-packages/google/protobuf/internal/__init__.py)
To fix this it was enough to execute pip install --upgrade protobuf
, but that is something that might be difficult to do for somebody who only follows the instructions on main page.
I also had to execute sudo apt install protobuf-compiler
, which was requested at command line, but still it is not in the instructions.
Please update requirements and/or instructions to make this working.