#6813: [with patch, needs work] The whole world in a graph
--------------------------+-------------------------------------------------
 Reporter:  ncohen        |       Owner:  rlm       
     Type:  enhancement   |      Status:  new       
 Priority:  major         |   Milestone:  sage-4.1.2
Component:  graph theory  |    Keywords:            
 Reviewer:                |      Author:            
   Merged:                |  
--------------------------+-------------------------------------------------

Comment(by jason):

 I get errors.  At the bottom, I copy the md5 digest to check my download:

 {{{
 sage: g=graphs.WorldMap()
 ---------------------------------------------------------------------------
 UnpicklingError                           Traceback (most recent call
 last)

 /home/jason/.sage/temp/littleone/13542/_home_jason__sage_init_sage_0.py in
 <module>()

 /home/jason/sage/local/lib/python2.6/site-
 packages/sage/graphs/graph_generators.pyc in WorldMap(self)
    2985         from sage.structure.sage_object import load
    2986         from sage.misc.misc import SAGE_DATA
 -> 2987         return load(SAGE_DATA+"graphs/graph_world.sobj")
    2988
    2989
 
################################################################################

 /home/jason/sage/local/lib/python2.6/site-
 packages/sage/structure/sage_object.so in sage.structure.sage_object.load
 (sage/structure/sage_object.c:7173)()

 /home/jason/sage/local/lib/python2.6/site-
 packages/sage/structure/sage_object.so in sage.structure.sage_object.loads
 (sage/structure/sage_object.c:8769)()

 UnpicklingError: invalid load key, '<'.
 sage: load sage.misc.misc.SAGE_DATA + 'graphs/graph_world.sobj'
 ---------------------------------------------------------------------------
 UnpicklingError                           Traceback (most recent call
 last)

 /home/jason/.sage/temp/littleone/13542/_home_jason__sage_init_sage_0.py in
 <module>()

 /home/jason/sage/local/lib/python2.6/site-
 packages/sage/structure/sage_object.so in sage.structure.sage_object.load
 (sage/structure/sage_object.c:7173)()

 /home/jason/sage/local/lib/python2.6/site-
 packages/sage/structure/sage_object.so in sage.structure.sage_object.loads
 (sage/structure/sage_object.c:8769)()

 UnpicklingError: invalid load key, '<'.
 sage: os.listdir(sage.misc.misc.SAGE_DATA + 'graphs/')
 ['graph_world.sobj', 'graphs.db']
 sage: import md5
 sage: md5.md5(sage.misc.misc.SAGE_DATA +
 'graphs/graph_world.sobj').hexdigest()
 '0ae838b9de40596827c6e674b733f489'
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6813#comment:1>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to