costa@costa-hp:~/.../examples/simple$ ls -l ../../generator/proto/
total 52
drwxrwxr-x 3 costa costa 4096 Apr 25 10:26 google
-rw-rw-r-- 1 costa costa 1127 Apr 25 10:26 __init__.py
-rw-rw-r-- 1 costa costa 83 Apr 25 10:26 Makefile
-rw-rw-r-- 1 costa costa 21906 May 10 15:17 nanopb_pb2.py
-rw-rw-r-- 1 costa costa 6611 Apr 25 10:26 nanopb.proto
drwxrwxr-x 2 costa costa 4096 May 10 15:18 __pycache__
-rw-rw-r-- 1 costa costa 1124 Apr 25 10:26 _utils.py
costa@costa-hp:~/.../examples/simple$ ../../generator/nanopb_generator.py
Traceback (most recent call last):
File "../../generator/nanopb_generator.py", line 51, in <module>
from .proto import nanopb_pb2
ImportError: attempted relative import with no known parent package
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "../../generator/nanopb_generator.py", line 72, in <module>
import proto.nanopb_pb2 as nanopb_pb2
File "/home/costa/oss/nanopb/generator/proto/nanopb_pb2.py", line 10,
in <module>
from google.protobuf import symbol_database as _symbol_database
ImportError: cannot import name 'symbol_database' from
'google.protobuf'
(/usr/local/lib/python3.8/dist-packages/google/protobuf/__init__.py)
> --
> You received this message because you are subscribed to the Google Groups "nanopb" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
nanopb+un...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/nanopb/20210510122858.GA9947%40lakka.kapsi.fi.
--
Constantine Shulyupin