On Fri, Jan 29, 2010 at 09:31:10AM -0800, Greg McWhirter wrote:
> Thanks for the rely. I tried that with boh Graph and Poset (since
> graph failed as well) under networkx-0.36 and networkx-1.0.1 both un
> un-patched 4.3.1 and patched to account for 1.0.1.
> However, everything went through without a hitch.
> 
> Un tar-ing the pickle_jar and load
> ("_class__sage_graphs_graph_Graph__.sobj") or load
> ("_class__sage_combinat_posets_posets_FinitePoset__.sobj") gives the
> error of "ImportError: No module named xgraph" or "ImportError: No
> module named xdigraph" respectively (these modules held the classes
> removed between 0.36 and 1.0.1). I don't know where these are getting
> called if the lines output by explain(dumps(P)) all work?

Hmm. Then the best is to call explain_pickle directly on those files,
rather than guessing which object causes trouble. What you can try is
to extract the pickle jar in /tmp:

    tar jxvf /opt/sage-4.3.1/data/extcode/pickle_jar/pickle_jar.tar.bz2

and run:

    sage: 
explain_pickle(file="/tmp/pickle_jar/_class__sage_graphs_graph_DiGraph__.sobj")
    pg_DiGraph = unpickle_global('sage.graphs.graph', 'DiGraph')
    si1 = unpickle_newobj(pg_DiGraph, ())
    pg_NetworkXGraphBackend = 
unpickle_global('sage.graphs.base.graph_backends', 'NetworkXGraphBackend')
    si2 = unpickle_newobj(pg_NetworkXGraphBackend, ())
    pg_XDiGraph = unpickle_global('networkx.xdigraph', 'XDiGraph')
    si3 = unpickle_newobj(pg_XDiGraph, ())
    si4 = {}
    unpickle_build(si3, {'name':'', 'pred':{}, 'selfloops':False, 'succ':si4, 
'adj':si4, 'multiedges':False})
    unpickle_build(si2, {'_nxg':si3})
    unpickle_build(si1, {'_weighted':False, '_boundary':[], '_backend':si2, 
'_pos':None})
    si1

Good luck!
                                Nicolas
--
Nicolas M. ThiƩry "Isil" <nthi...@users.sf.net>
http://Nicolas.Thiery.name/

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to