#11116: Pynac module not initialized before being used. This causes a crash on
64-bit OpenSolaris.
------------------------+---------------------------------------------------
   Reporter:  drkirkby  |          Owner:  drkirkby  
       Type:  defect    |         Status:  new       
   Priority:  major     |      Milestone:  sage-4.7.1
  Component:  solaris   |       Keywords:            
Work_issues:            |       Upstream:  N/A       
   Reviewer:            |         Author:            
     Merged:            |   Dependencies:            
------------------------+---------------------------------------------------

Comment(by burcin):

 The solution to this would be to import one of the objects mentioned in
 the chain I described lazily:


    It seems that cones.py looks for posets.py, which needs the graphs
 module, which initializes the graph_editor. The graph editor tries to see
 if it's in the notebook or the command line, but sagenb imports SR and
 Expression from sage.symbolic.all (line 563 of sagenb/misc/support.py).
 This tries to initialize the functions (integrate in this case) before
 pynac is initialized...


 This can be done by
  * putting the import statement closer to the place where the object is
 needed in the source as opposed to the top of the file, or
  * using Robert's LazyImport

 Note that quite a while ago, I wrote a script (`sage-test-import` in
 `local/bin`) to test for these problems. It imports each module in the
 Sage library individually, and checks if we got any errors. It would be a
 significant achievement if we can get a release to pass this test. This
 would go a long way towards making Sage more modular.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11116#comment:14>
Sage <http://www.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