lamiastella

No module named google.protobuf.internal

Sep 24th, 2017
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. (venv)[jalal@ivcgpu1 CNN_age_gender]$ python age_gender_example.py
  2. Traceback (most recent call last):
  3. File "age_gender_example.py", line 17, in <module>
  4. import caffe
  5. File "/home/grad3/jalal/caffe/python/caffe/__init__.py", line 1, in <module>
  6. from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
  7. File "/home/grad3/jalal/caffe/python/caffe/pycaffe.py", line 15, in <module>
  8. import caffe.io
  9. File "/home/grad3/jalal/caffe/python/caffe/io.py", line 8, in <module>
  10. from caffe.proto import caffe_pb2
  11. File "/home/grad3/jalal/caffe/python/caffe/proto/caffe_pb2.py", line 4, in <module>
  12. from google.protobuf.internal import enum_type_wrapper
  13. ImportError: No module named google.protobuf.internal
  14. (venv)[jalal@ivcgpu1 CNN_age_gender]$ pip uninstall protobuf
  15. Cannot uninstall requirement protobuf, not installed
  16. Storing complete log in /home/grad3/jalal/.pip/pip.log
  17. (venv)[jalal@ivcgpu1 CNN_age_gender]$ cat /home/grad3/jalal/.pip/pip.log
  18. ------------------------------------------------------------
  19. /home/grad3/jalal/venv/bin/pip run on Mon Sep 25 00:39:13 2017
  20. Cannot uninstall requirement protobuf, not installed
  21.  
  22. Exception information:
  23. Traceback (most recent call last):
  24. File "/home/grad3/jalal/venv/lib/python2.7/site-packages/pip/basecommand.py", line 134, in main
  25. status = self.run(options, args)
  26. File "/home/grad3/jalal/venv/lib/python2.7/site-packages/pip/commands/uninstall.py", line 54, in run
  27. requirement_set.uninstall(auto_confirm=options.yes)
  28. File "/home/grad3/jalal/venv/lib/python2.7/site-packages/pip/req.py", line 940, in uninstall
  29. req.uninstall(auto_confirm=auto_confirm)
  30. File "/home/grad3/jalal/venv/lib/python2.7/site-packages/pip/req.py", line 440, in uninstall
  31. raise UninstallationError("Cannot uninstall requirement %s, not installed" % (self.name,))
  32. UninstallationError: Cannot uninstall requirement protobuf, not installed
  33. (venv)[jalal@ivcgpu1 CNN_age_gender]$
Add Comment
Please, Sign In to add comment