sherjilozair / char-rnn-tensorflow

Multi-layer Recurrent Neural Networks (LSTM, RNN) for character-level language models in Python using Tensorflow
MIT License
2.64k stars 960 forks source link

TypeError: __init__() got an unexpected keyword argument 'syntax' #19

Closed dendisuhubdy closed 8 years ago

dendisuhubdy commented 8 years ago

C02QH2D7G8WM:char-rnn-tensorflow userone$ python train.py Traceback (most recent call last): File "train.py", line 3, in import tensorflow as tf File "/usr/local/lib/python2.7/site-packages/tensorflow/init.py", line 23, in from tensorflow.python import File "/usr/local/lib/python2.7/site-packages/tensorflow/python/init.py", line 35, in from tensorflow.core.framework.graph_pb2 import File "/usr/local/lib/python2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 16, in from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attrvaluepb2 File "/usr/local/lib/python2.7/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 "/usr/local/lib/python2.7/site-packages/tensorflow/core/framework/tensor_pb2.py", line 16, in from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensorshapepb2 File "/usr/local/lib/python2.7/site-packages/tensorflow/core/framework/tensor_shape_pb2.py", line 22, 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/\n\x18org.tensorflow.frameworkB\x11TensorShapeProtosP\x01\x62\x06proto3') TypeError: init() got an unexpected keyword argument 'syntax'

sherjilozair commented 8 years ago

It seems your tensorflow installation is broken. I recommend the tensorflow github: github.com/tensorflow/tensorflow