I was able to get things working okay in my development version of sage, the sage git repo at ~/sage , but when i try to do this:
sage: t = Tachyon() sage: t.show() in my system non development sage installation, i get the same error as before? Im using sage 6.3. Im assuming my installations didnt cross paths or anything funky, but, it just donned on me that i had the same issue in my non development install, and to see if others where having the issue? On Tuesday, August 19, 2014 10:10:14 PM UTC-7, Travis Scrimshaw wrote: > > No that's correct. The difference is that my way imports the *function* as > oppose to the *module* given by John. This is a python thing, see > https://docs.python.org/3/reference/import.html > <https://www.google.com/url?q=https%3A%2F%2Fdocs.python.org%2F3%2Freference%2Fimport.html&sa=D&sntz=1&usg=AFQjCNHFrh-OlETJ3pXspWW4COICVwUI3w> > > for more details. > > Best, > Travis > > > On Tuesday, August 19, 2014 9:24:16 PM UTC-7, Paul Graham wrote: >> >> Ok i did: >> >> from sage.misc.viewer import png_viewer >> >> at the top of the file tachyon.py, and then in my code as you suggest, in >> Tachyon.show, i changed it from: >> >> os.system('%s %s 2>/dev/null 1>/dev/null &'%(sage.misc.viewer.png_viewer >> (), filename)) >> >> to: >> >> os.system('%s %s 2>/dev/null 1>/dev/null &'%(png_viewer(), filename)) >> >> and it works just fine. I never made any modifications to that line >> originally, so not sure why its stopped working... Works now though, thanks. >> >> >> Or referring to changing it somewhere else? >> On Tuesday, August 19, 2014 8:40:52 PM UTC-7, Travis Scrimshaw wrote: >>> >>> Interestingly, i tried doing: >>>> >>>> from sage.misc.viewer import png_viewer >>>> >>>> first, but got the same error. >>>> >>> >>> In your code, you just want `png_viewer`, not >>> `sage.misc.viewer.png_viewer` (which is what I suspect you had). >>> >>> Best, >>> Travis >>> >>> -- 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.