-3

I'm using cPickle to save some data to a file.

save_data = open('data/mapdata.bullet', 'wb')
save_data.write(pickle.dumps(data))
save_data.close()
os._exit(1)

The data consists of lists and dicts and various other stuff which takes few seconds to generate, and I want to simply have it precompiled so that debugging other parts of my code is faster when running the python script. But now, for some reason it saves the file as mapdata.bullet.u1conflict and I can't load it. Any clues as to what the reason for this might be?

4

2 に答える 2

1

.u1conflictあなたの問題はcPickleとは関係ありません。U1 クラウドのアカウントに、互換性のない別のバージョンのファイルが保存されている可能性があります。削除してみてください。

于 2013-05-12T19:01:24.373 に答える
1

.u1conflict拡張機能は、 または ではなく、Ubuntu One によって追加されpickleますpython

この質問はそれをよく説明しています。

于 2013-05-12T19:01:31.917 に答える