#9232: jmol on commandline broken
--------------------------------------------------------------+-------------
   Reporter:  vbraun                                          |       Owner:  
gutow          
       Type:  defect                                          |      Status:  
positive_review
   Priority:  major                                           |   Milestone:  
sage-4.7       
  Component:  graphics                                        |    Keywords:    
             
     Author:  Jonathan Gutow, Volker Braun                    |    Upstream:  
N/A            
   Reviewer:  Jason Grout, Karl-Dieter Crisman, Volker Braun  |      Merged:    
             
Work_issues:                                                  |  
--------------------------------------------------------------+-------------

Old description:

> I can't see Graphics3d objects on the command line. For example,
> {{{
> sage: sphere()
> sage:
> }}}
> The command returns without starting jmol or producing any other
> graphical output.
>
> Strangely enough, I can start jmol from the sage command line:
> {{{
> ----------------------------------------------------------------------
> | Sage Version 4.4.3, Release Date: 2010-06-04                       |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
> sage: !jmol
> splash_image=jar:file:/home/vbraun/opt/sage-hg/local/lib/python2.6/site-
> packages/sagenb-0.8-py2.6.egg/sagenb/data/jmol/Jmol.jar!/org/openscience/jmol/images/Jmol_splash.jpg
> history file is /home/vbraun/.jmol/history
> using Smarter Model Adapter
> (C) 2008 Jmol Development
> Jmol Version 11.6.16  2008-11-24 13:39
> java.vendor:Sun Microsystems Inc.
> java.version:1.6.0_18
> os.name:Linux
> memory:9.8/21.1
> useCommandThread: false
> User macros dir: /home/vbraun/.jmol/macros
>        exists: false
>   isDirectory: false
> }}}
>
> The following also works and shows a tachyon-generated plot:
> {{{
> sphere(viewer='tachyon')
> }}}
>
> More verbosity:
> {{{
> sage: sphere(verbosity=99)
> Traceback (most recent call last):
>   File "/home/vbraun/Sage/sage/local/bin/sage-pypkg-location", line 3, in
> <module>
>     from pkg_resources import Requirement, working_set
> zipimport.ZipImportError: can't decompress data; zlib not available
> Jmol.jar not found
> }}}
>
> For the record, I'm running Fedora 13 x86_64
>
> ----
>
> Apply ''only'' [attachment:trac_9232_call_jmol_correctly.patch].

New description:

 I can't see Graphics3d objects on the command line. For example,
 {{{
 sage: sphere()
 sage:
 }}}
 The command returns without starting jmol or producing any other graphical
 output.

 Strangely enough, I can start jmol from the sage command line:
 {{{
 ----------------------------------------------------------------------
 | Sage Version 4.4.3, Release Date: 2010-06-04                       |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 sage: !jmol
 splash_image=jar:file:/home/vbraun/opt/sage-hg/local/lib/python2.6/site-
 
packages/sagenb-0.8-py2.6.egg/sagenb/data/jmol/Jmol.jar!/org/openscience/jmol/images/Jmol_splash.jpg
 history file is /home/vbraun/.jmol/history
 using Smarter Model Adapter
 (C) 2008 Jmol Development
 Jmol Version 11.6.16  2008-11-24 13:39
 java.vendor:Sun Microsystems Inc.
 java.version:1.6.0_18
 os.name:Linux
 memory:9.8/21.1
 useCommandThread: false
 User macros dir: /home/vbraun/.jmol/macros
        exists: false
   isDirectory: false
 }}}

 The following also works and shows a tachyon-generated plot:
 {{{
 sphere(viewer='tachyon')
 }}}

 More verbosity:
 {{{
 sage: sphere(verbosity=99)
 Traceback (most recent call last):
   File "/home/vbraun/Sage/sage/local/bin/sage-pypkg-location", line 3, in
 <module>
     from pkg_resources import Requirement, working_set
 zipimport.ZipImportError: can't decompress data; zlib not available
 Jmol.jar not found
 }}}

 For the record, I'm running Fedora 13 x86_64

 ----

 Apply [attachment:trac_9232_call_jmol_correctly.patch] and
 [attachment:trac_9232-lighting.patch].

--

Comment(by kcrisman):

 Apply [attachment:trac_9232_call_jmol_correctly.patch] and
 [attachment:trac_9232-lighting.patch].

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9232#comment:31>
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