29 Dec
2014
29 Dec
'14
10:01 a.m.
On 28.12.2014 04:44, Helen Lampesis wrote:
Hi everyone,
The following code snippet gives me a TypeError and I am wondering if you have any suggestion.
------------------------------------------------ import graph_tool as gt import pickle
g = gt.Graph() pickle.dump(g, open('test_file', 'w’)) ------------------------------------------------
The error: TypeError: coercing to Unicode: need string or buffer, _io.BytesIO found
This is a bug in graph-tool when used with Python 2 (Python 3 is fine). It has already been fixed in git a while ago. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>