protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

Issue with protobuf 3.6.1 with tensorflow 1.10

Open nirajkale opened this issue 8 years ago • 4 comments

Version: master/v3.6.1 Language: Python 3.6x64 on Windows 10

Steps to reproduce the behavior: **Followed instructions mentioned on tensorflow.org's guide on installing tensorflow on Windows (www.tensorflow.org/install/install_windows)

  1. Installed CUDA 9.0 (latest release supported by tf_gpu)
  2. Installed cuDNN v7 for (CUDA 9.0)
  3. Installed tensorflow_gpu using native-pip **protobuf is part of tf gpu installation
  4. After the installation, i wanted to test the tf, so as usual tried: import tensorflow but got an error:==> Traceback (most recent call last): File "<pyshell#0>", line 1, in import tensorflow File "C:\Users\Niraj\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_init_.py", line 22, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "C:\Users\Niraj\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python_init_.py", line 52, in from tensorflow.core.framework.graph_pb2 import * File "C:\Users\Niraj\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\core\framework\graph_pb2.py", line 6, in from google.protobuf import descriptor as _descriptor File "C:\Users\Niraj\AppData\Local\Programs\Python\Python36\lib\site-packages\google\protobuf\descriptor.py", line 47, in from google.protobuf.pyext import _message ImportError: DLL load failed: The specified procedure could not be found.

Initially i thought the issue was related to CUDA or cdnn itself, but after hours of trial & error with multiple cuda & cudnn version combination, i decided to focus on the library mentioned in the error message itself.
I'm not very new to python extensions so obvious work around for me was to try earlier version of protobuf, so i tried:

pip uninstall protobuf pip install protobuf==3.6.0

and tada!! tensorflow started working. I'm still not sure if this was actually caused by protobuf or incorrect installations etc. My sincere apologies if this issue is unrelated. Please let me know if you need more details on this issue.

nirajkale avatar Aug 19 '18 18:08 nirajkale

Duplicate of #5046. You need to update your python to versions >= 3.6.1.

TeBoring avatar Aug 20 '18 03:08 TeBoring

thanks man! pip uninstall protobuf pip install protobuf==3.6.0 this has worked for me

Sandeep-Yadav7 avatar Sep 08 '18 19:09 Sandeep-Yadav7

Upgrading my python from 3.6.0 to 3.6.1 worked !!!

dhananjayharel avatar Oct 24 '18 09:10 dhananjayharel

downgrading protobuf to 3.6.0 worked for me. Thanks!!

ruchiraPeiris avatar Jan 18 '19 02:01 ruchiraPeiris