我在运行data_linter_main.py GITHUB开源项目时遇到类似google.protobuf.message.DecodeError的错误:消息被截断

时间:2019-07-05 17:35:52

标签: python tensorflow protocol-buffers

我正在研究Google Brain(https://github.com/brain-research/data-linter)下的Data linter源项目。最近15天,我在运行data linter项目时遇到了错误消息。我不确定如何解决此问题。某些身体可以帮助我吗?

    C:\Python27\data-linter-master>python data_linter_main.py --dataset_path C:/Users/ramanjaneya.reddy/AppData/Local/Programs/Python/Python36/adult.tfrecords --stats_path C:/Users/ramanjaneya.reddy/AppData/Local/Programs/Python/Python36/adult_summary.bin --results_path C:/Users/ramanjaneya.reddy/AppData/Local/Programs/Python/Python36/datalinter/results/lint_results.bin
Traceback (most recent call last):
 File "data_linter_main.py", line 118, in <module>
     main()
 File "data_linter_main.py", line 73, in main
     stats = _read_feature_stats(args.stats_path)
 File "data_linter_main.py", line 113, in _read_feature_stats
     summaries.ParseFromString(fin.read())
 File "C:\Python27\lib\site-packages\google\protobuf\message.py", line 187, in ParseFromString
     return self.MergeFromString(serialized)
 File "C:\Python27\lib\site-packages\google\protobuf\internal\python_message.py", line 1124, in MergeFromString
     if self._InternalParse(serialized, 0, length) != length:
 File "C:\Python27\lib\site-packages\google\protobuf\internal\python_message.py", line 1182, in InternalParse
     new_pos = local_SkipField(buffer, old_pos, end, tag_bytes)
 File "C:\Python27\lib\site-packages\google\protobuf\internal\decoder.py", line 1012, in SkipField
     return WIRETYPE_TO_SKIPPER[wire_type](buffer, pos, end)
 File "C:\Python27\lib\site-packages\google\protobuf\internal\decoder.py", line 902, in _SkipLengthDelimited
     raise _DecodeError('Truncated message.') google.protobuf.message.DecodeError: Truncated message.

0 个答案:

没有答案