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 foundThis 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 <[email protected]>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list [email protected] http://lists.skewed.de/mailman/listinfo/graph-tool
