Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running .sh files #5

Open
aravinda-1402 opened this issue Feb 25, 2023 · 5 comments
Open

Error when running .sh files #5

aravinda-1402 opened this issue Feb 25, 2023 · 5 comments

Comments

@aravinda-1402
Copy link

(roland) aravinda@aravinda-1402:/media/aravinda/New Volume1/roland-master/run$ python3 main.py --cfg './roland_example.yaml' --repeat 1 --override_data_dir '/media/aravinda/New Volume1/roland-master/roland_public_data' --override_remark 'roland_example'
Traceback (most recent call last):
File "/media/aravinda/New Volume1/roland-master/run/main.py", line 12, in
from graphgym.logger import setup_printing, create_logger
File "/media/aravinda/New Volume1/roland-master/graphgym/logger.py", line 12, in
from tensorboardX import SummaryWriter
File "/home/aravinda/anaconda3/envs/roland/lib/python3.9/site-packages/tensorboardX/init.py", line 5, in
from .torchvis import TorchVis
File "/home/aravinda/anaconda3/envs/roland/lib/python3.9/site-packages/tensorboardX/torchvis.py", line 11, in
from .writer import SummaryWriter
File "/home/aravinda/anaconda3/envs/roland/lib/python3.9/site-packages/tensorboardX/writer.py", line 17, in
from .comet_utils import CometLogger
File "/home/aravinda/anaconda3/envs/roland/lib/python3.9/site-packages/tensorboardX/comet_utils.py", line 5, in
from google.protobuf.json_format import MessageToJson
File "/home/aravinda/anaconda3/envs/roland/lib/python3.9/site-packages/google/protobuf/json_format.py", line 54, in
from google.protobuf.internal import type_checkers
File "/home/aravinda/anaconda3/envs/roland/lib/python3.9/site-packages/google/protobuf/internal/type_checkers.py", line 51, in
from google.protobuf.internal import decoder
File "/home/aravinda/anaconda3/envs/roland/lib/python3.9/site-packages/google/protobuf/internal/decoder.py", line 87, in
from google.protobuf.internal import encoder
File "/home/aravinda/anaconda3/envs/roland/lib/python3.9/site-packages/google/protobuf/internal/encoder.py", line 71, in
from google.protobuf.internal import wire_format
File "/home/aravinda/anaconda3/envs/roland/lib/python3.9/site-packages/google/protobuf/internal/wire_format.py", line 36, in
from google.protobuf import descriptor
File "/home/aravinda/anaconda3/envs/roland/lib/python3.9/site-packages/google/protobuf/descriptor.py", line 40, in
from google.protobuf.internal import api_implementation
File "/home/aravinda/anaconda3/envs/roland/lib/python3.9/site-packages/google/protobuf/internal/api_implementation.py", line 104, in
from google.protobuf.pyext import _message
TypeError: bases must be types

@aravinda-1402
Copy link
Author

Reinstalled protobuf, and it worked.

@TianyuDu
Copy link
Collaborator

Sorry for the late reply; glad that you figured it out!

@xirong312
Copy link

I meet the same error,I try reinstall protobuf but it desn't work.so which version of protobuf is needed?

@TianyuDu
Copy link
Collaborator

TianyuDu commented Sep 5, 2023

Can you try the version protobuf==4.21.1?

@TianyuDu TianyuDu reopened this Sep 5, 2023
@ysinwell
Copy link

ysinwell commented Nov 5, 2023

Can you try the version protobuf==4.21.1?

In fact,I meet the same question with the issue while I create conda env by provided yml file and I make sure use protobuf==4.21.1

However, I used a random 3. x version, specifically protobuf=3.19.1, and the code successfully ran

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants