Open jet10000 opened 2 years ago
In PyCharm try to mark examples
directory as a sources root:
https://www.jetbrains.com/help/pycharm/configuring-project-structure.html#mark-dir-project-view
To run these examples you can follow these steps:
https://github.com/vmagamedov/grpclib/blob/master/examples/README.rst
(examples
directory should be in the import paths)
This is relevant for grpclib
project structure, you should do similar steps for your project structure.
In addition, I found that setting protobuf=3.20.1 seems to work, does it not support version 4 series?
grpclib
supports protobuf>=3.15.0
, including 4 series
I followed the tutorial step by step. The 4 series seems to be invalid, I don't know what I missed, and it is normal to modify it to 3 series.
What "invalid" means? Do you have an error? How can I reproduce it?
helloworld
is a package but you're trying to run it's server.py
module as a script. That's why relative imports doesn't work.
Try:
$ python -m helloworld.server