[ase-users] Bug in ase visualizer

Jens Jørgen Mortensen jensj at fysik.dtu.dk
Thu Dec 1 10:49:40 CET 2016


On 11/30/2016 05:51 PM, Jwala Parajuli via ase-users wrote:
> Dear Developers,
>
> While trying to save the frames from a movie file, a bug was detected. 
> I am reporting this, please have a look at it.

Thanks for the bug report.  I'll make sure it gets fixed for the next 
ASE release.  For now, I think you can work around it by giving a 
filename like "abc.xyz", "abc.traj" or some other name with an extension 
that ASE knows about.  See table on this page:

     https://wiki.fysik.dtu.dk/ase/ase/io/io.html

Does that work?

Jens Jørgen

>
> Traceback (most recent call last):
>   File "/home/user/.local/lib/python2.7/site-packages/ase/gui/gui.py", 
> line 202, <lambda>(x=<gtk.Action object at 0x7f8ae9debe10 (GtkAction 
> at 0x25715b0)>)
>                 ('Save', gtk.STOCK_SAVE, _('_Save'), '<control>S',
>                  _('Save current file'), lambda x: save_dialog(self)),
>                 ('Quit', gtk.STOCK_QUIT, _('_Quit'), '<control>Q', 
> _('Quit'),
>   variables: {'x': ('local', <gtk.Action object at 0x7f8ae9debe10 
> (GtkAction at 0x25715b0)>), 'self': ('local', <ase.gui.gui.GUI 
> instance at 0x7f8ae8350710>), '_': ('global', <function gettext at 
> 0x7f8ae81202a8>), 'save_dialog': ('global', <function save_dialog at 
> 0x7f8ae836a9b0>)}
>   File 
> "/home/user/.local/lib/python2.7/site-packages/ase/gui/save.py", line 
> 43, save_dialog(gui=<ase.gui.gui.GUI instance>)
>         format = filetype(filename, read=False)
>         io = get_ioformat(format)
>   variables: {'get_ioformat': ('global', <function get_ioformat at 
> 0x7f8ae856db18>), 'io': (None, None), 'format': ('local', None)}
>   File 
> "/home/user/.local/lib/python2.7/site-packages/ase/io/formats.py", 
> line 185, get_ioformat(format=None)
>         """Initialize and return IOFormat tuple."""
>         initialize(format)
>         return ioformats[format]
>   variables: {'initialize': ('global', <function initialize at 
> 0x7f8ae856d758>), 'format': ('local', None)}
>   File 
> "/home/user/.local/lib/python2.7/site-packages/ase/io/formats.py", 
> line 162, initialize(format=None)
>         _format = format.replace('-', '_')
>         module_name = format2modulename.get(format, _format)
>   variables: {'_format': (None, None), 'format': ('local', None)}
> AttributeError: 'NoneType' object has no attribute 'replace'
>
>
> Thank you very much.
> -- 
> Jwala Parajuli
> *BS Nanosystems Engineer*
> *Graduate Research Assistant*
> *College of Engineering & Science*
> *Louisiana Tech University*
>
>
> _______________________________________________
> ase-users mailing list
> ase-users at listserv.fysik.dtu.dk
> https://listserv.fysik.dtu.dk/mailman/listinfo/ase-users



More information about the ase-users mailing list