read pickle file

231 views
Skip to first unread message

Sally Chen

unread,
Feb 6, 2023, 2:39:51 PM2/6/23
to networkx-discuss
Hi,

I'm having issue reading pickle file with nx.read_gpickle(file). I'm getting the following error message: 

>>> G = nx.read_gpickle(file)

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

AttributeError: module 'networkx' has no attribute 'read_gpickle'


I have networkx 3.0. Does anybody know why this is the case? 

Thank you very much for the help! 


Best,

Sally 

Dan Schult

unread,
Feb 6, 2023, 2:50:58 PM2/6/23
to networkx...@googlegroups.com
That function is not available in v3.0 (it has been deprecated).
The document called "Migration guide from 2.x to 3.0" has a description of how to handle changes like this.
The section on replacing read_gpickle shows how to replace that function.

Best,
Dan

--
You received this message because you are subscribed to the Google Groups "networkx-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to networkx-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/networkx-discuss/bd97f54b-c0d8-41fe-963b-51a769a0a7dcn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages