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

ModuleNotFoundError: No module named 'google.protobuf' #218

Open
reticivis-net opened this issue Nov 19, 2020 · 0 comments
Open

ModuleNotFoundError: No module named 'google.protobuf' #218

reticivis-net opened this issue Nov 19, 2020 · 0 comments

Comments

@reticivis-net
Copy link

I'm installing textgenrnn using the latest github commit (via git clone and setup.py) and after fixing some errors with the setup (tensorflow doesnt get all of the required packages) I get this error when trying to run my code

"C:\Users\minec\.PyCharm2018.3\neural net 2 but 36\Scripts\python.exe" "C:/Users/minec/PycharmProjects/neural net 2 but 36/network.py"
2020-11-19 01:47:28.506477: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2020-11-19 01:47:28.506637: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
  File "C:/Users/minec/PycharmProjects/neural net 2 but 36/network.py", line 1, in <module>
    from textgenrnn import textgenrnn
  File "C:\Users\minec\.PyCharm2018.3\neural net 2 but 36\lib\site-packages\textgenrnn-2.0.0-py3.6.egg\textgenrnn\__init__.py", line 1, in <module>
  File "C:\Users\minec\.PyCharm2018.3\neural net 2 but 36\lib\site-packages\textgenrnn-2.0.0-py3.6.egg\textgenrnn\textgenrnn.py", line 5, in <module>
  File "C:\Users\minec\.PyCharm2018.3\neural net 2 but 36\lib\site-packages\tensorflow\__init__.py", line 41, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "C:\Users\minec\.PyCharm2018.3\neural net 2 but 36\lib\site-packages\tensorflow\python\__init__.py", line 41, in <module>
    from tensorflow.python.eager import context
  File "C:\Users\minec\.PyCharm2018.3\neural net 2 but 36\lib\site-packages\tensorflow\python\eager\context.py", line 32, in <module>
    from tensorflow.core.framework import function_pb2
  File "C:\Users\minec\.PyCharm2018.3\neural net 2 but 36\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 7, in <module>
    from google.protobuf import descriptor as _descriptor
ModuleNotFoundError: No module named 'google.protobuf'

Process finished with exit code 1
from textgenrnn import textgenrnn

textgen = textgenrnn(name="cbible")
textgen.train_from_file('bible_clean.txt', num_epochs=25, rnn_bidirectional=True)
textgen.generate()

A quick google shows it's related to protocolbuffers/protobuf#1296

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

1 participant