Hi, I have an error when importing protobuf. Anyone know how to deal with it? Really appreciate it.
embeddings: (8855, 10, 1024)
Traceback (most recent call last):
File "main.py", line 139, in
from trainer import condGANTrainer as trainer
File "/home/lby/Desktop/StackGAN-v2/code/trainer.py", line 19, in
from tensorboard import summary
File "/home/lby/anaconda3/envs/GAN/lib/python2.7/site-packages/tensorboard/init.py", line 4, in
from .writer import FileWriter, SummaryWriter
File "/home/lby/anaconda3/envs/GAN/lib/python2.7/site-packages/tensorboard/writer.py", line 23, in
from .src import event_pb2
File "/home/lby/anaconda3/envs/GAN/lib/python2.7/site-packages/tensorboard/src/event_pb2.py", line 6, in
from google.protobuf import descriptor as _descriptor
File "/home/lby/anaconda3/envs/GAN/lib/python2.7/site-packages/google/protobuf/descriptor.py", line 113
class DescriptorBase(metaclass=DescriptorMetaclass):
^
SyntaxError: invalid syntax
Hi, I have an error when importing protobuf. Anyone know how to deal with it? Really appreciate it.
embeddings: (8855, 10, 1024) Traceback (most recent call last): File "main.py", line 139, in
from trainer import condGANTrainer as trainer
File "/home/lby/Desktop/StackGAN-v2/code/trainer.py", line 19, in
from tensorboard import summary
File "/home/lby/anaconda3/envs/GAN/lib/python2.7/site-packages/tensorboard/init.py", line 4, in
from .writer import FileWriter, SummaryWriter
File "/home/lby/anaconda3/envs/GAN/lib/python2.7/site-packages/tensorboard/writer.py", line 23, in
from .src import event_pb2
File "/home/lby/anaconda3/envs/GAN/lib/python2.7/site-packages/tensorboard/src/event_pb2.py", line 6, in
from google.protobuf import descriptor as _descriptor
File "/home/lby/anaconda3/envs/GAN/lib/python2.7/site-packages/google/protobuf/descriptor.py", line 113
class DescriptorBase(metaclass=DescriptorMetaclass):
^
SyntaxError: invalid syntax