FS#54646 - [python-tensorflow-cuda] Error when importing tensorflow

Attached to Project: Community Packages
Opened by Dario Ostuni (dariost) - Friday, 30 June 2017, 12:29 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 11 July 2017, 22:25 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
When trying to import tensorflow this happens:

>>> import tensorflow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/site-packages/tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import *
File "/usr/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 52, in <module>
from tensorflow.core.framework.graph_pb2 import *
File "/usr/lib/python3.6/site-packages/tensorflow/core/framework/graph_pb2.py", line 10, in <module>
from google.protobuf import descriptor_pb2
File "/usr/lib/python3.6/site-packages/google/protobuf/descriptor_pb2.py", line 238, in <module>
serialized_end=4762,
File "/usr/lib/python3.6/site-packages/google/protobuf/descriptor.py", line 599, in __new__
return _message.default_pool.FindEnumTypeByName(full_name)
KeyError: "Couldn't find enum google.protobuf.MethodOptions.IdempotencyLevel"


Additional info:
python-tensorflow-cuda 1.2.1-1
python-protobuf 3.3.1-1

Steps to reproduce:
Open python3 and type "import tensorflow"
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Tuesday, 11 July 2017, 22:25 GMT
Reason for closing:  Not a bug
Comment by Sebastian Pinnau (spinnau) - Saturday, 01 July 2017, 10:11 GMT
Cannot reproduce this. Importing the package works fine for me with python-tensorflow-cuda-1.2.1-1 or python-tensorflow-cuda-1.2.1-2 and python-protobuf-3.3.1-1

Have you tried to reinstall python-protobuf?
Comment by Dario Ostuni (dariost) - Saturday, 01 July 2017, 12:35 GMT
Yes, I have already tried to reinstall python-tensorflow-cuda, python-protobuf and protobuf. I've also tried to use python-tensorflow instead of python-tensorflow-cuda: same error.
Comment by Dario Ostuni (dariost) - Tuesday, 11 July 2017, 22:12 GMT
After cleaning all python site-packages directory and reinstalling everything it works again. I still don't know what caused it to fail but now works.

Loading...