Hi everyone,
I am using tensorflow-gpu==2.6.0
I broke something, have tried to reinstall both tensorflow-gpu==2.6.0 and numpy because an error message suggested that I do so.
How do I fix the following? Previously, importing tensorflow woild result in a notification about using CUDA etc.
I have tried upgrading protobuf through pip, but that has not worked either.
Please help, thanks in advance!
chaztikov@liberty:~$ python3
Python 3.6.9 (default, Mar 15 2022, 13:55:28)
[GCC 8.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import tensorflow as tf
Traceback (most recent call last):
File “”, line 1, in
File “/home/chaztikov/.local/lib/python3.6/site-packages/tensorflow/init.py”, line 41, in
from tensorflow.python.tools import module_util as _module_util
File “/home/chaztikov/.local/lib/python3.6/site-packages/tensorflow/python/init.py”, line 40, in
from tensorflow.python.eager import context
File “/home/chaztikov/.local/lib/python3.6/site-packages/tensorflow/python/eager/context.py”, line 32, in
from tensorflow.core.framework import function_pb2
File “/home/chaztikov/.local/lib/python3.6/site-packages/tensorflow/core/framework/function_pb2.py”, line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File “/home/chaztikov/.local/lib/python3.6/site-packages/tensorflow/core/framework/attr_value_pb2.py”, line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File “/home/chaztikov/.local/lib/python3.6/site-packages/tensorflow/core/framework/tensor_pb2.py”, line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File “/home/chaztikov/.local/lib/python3.6/site-packages/tensorflow/core/framework/resource_handle_pb2.py”, line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File “/home/chaztikov/.local/lib/python3.6/site-packages/tensorflow/core/framework/tensor_shape_pb2.py”, line 23, in
serialized_pb=_b(‘\n,tensorflow/core/framework/tensor_shape.proto\x12\ntensorflow"z\n\x10TensorShapeProto\x12-\n\x03\x64im\x18\x02 \x03(\x0b\x32 .tensorflow.TensorShapeProto.Dim\x12\x14\n\x0cunknown_rank\x18\x03 \x01(\x08\x1a!\n\x03\x44im\x12\x0c\n\x04size\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\tB\x87\x01\n\x18org.tensorflow.frameworkB\x11TensorShapeProtosP\x01ZSgithub.com/tensorflow/tensorflow/tensorflow/go/core/framework/tensor_shape_go_proto\xf8\x01\x01\x62\x06proto3’)
TypeError: new() got an unexpected keyword argument ‘serialized_options’
I accidentally pip3 installed something (forget what) that caused an update