Im working on ticket #16228: http://trac.sagemath.org/ticket/16228 , and 
now when trying to make doctests for both Tachyon..save and Tachyon.show, i 
recieve an error when trying to test Tachyon.show.

Ive tried different input combinations, but just right now, trying to 
figure out this error my input has been:
sage: T = Tachyon()
sage: T.show()

The error i receive is:

tachyon /home/user1/.sage/temp/computer0/8798/tmp_wKHvo_.dat  -format PNG  -o 
/home/user1/.sage/temp/computer0/8798/tmp_Q5WnBs.png    +V ; rm -f 
"/home/user1/.sage/temp/computer0/8798/tmp_wKHvo_.dat"
Tachyon Parallel/Multiprocessor Ray Tracer   Version 0.98.9   
Copyright 1994-2010,    John E. Stone <john.st...@gmail.com> 
------------------------------------------------------------ 
Scene Parsing Time:     0.0001 seconds
CPU Information:
  Node    0:  4 CPUs, CPU Speed 1.00, Node Speed   4.00 Name: computer0
  Total CPUs: 4
  Total Speed: 4.000000

Allocating Image Buffer.
Preprocessing Time:     0.0001 seconds
Rendering Progress:       100% complete            
  Ray Tracing Time:     0.0056 seconds
    Image I/O Time:     0.0131 seconds
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-9-8acd66951ac1> in <module>()
----> 1 T.show()

/home/user1/sage/local/lib/python2.7/site-packages/sage/plot/plot3d/tachyon.pyc 
in show(self, verbose, extra_opts)
    345         from sage.plot.plot import EMBEDDED_MODE
    346         if not DOCTEST_MODE and not EMBEDDED_MODE:
--> 347             os.system('%s %s 2>/dev/null 1>/dev/null &'%(sage.misc.
viewer.png_viewer(), filename))
    348 
    349     def _res(self):

NameError: global name 'sage' is not defined


I recieve a similar error if i do:
sage: show(T)

as well. For brevity i didnt include it, but can if needed.

This error occurs whether i try in my system wide sage installation or 
development version, but have no issue in either running these Tachyon 
commands in the Sage Notebook. Tachyon.save works just fine.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to