bugBKChem - Bugs: bug #48069, Crash on SVG load in BKChem...

 
 

bug #48069: Crash on SVG load in BKChem v0.13.0 / Ubuntu v14.04

Submitted by:  John Ree <obsidian69>
Submitted on:  Tue 31 May 2016 07:23:10 PM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  general Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 31 May 2016 09:51:56 PM UTC, comment #1:

May have figured it out (cause not solution).

I have a template with custom length bonds. Using it didn't work (length set to v.small or possibly non-existent). So I opened the template, selected the molecule fragment & pasted it into my new SVG.

I seems to have also pasted the template XML element (& the molecule name). I removed the template line, edited the name & it now loads!

SG

John Ree <obsidian69>
Tue 31 May 2016 07:23:10 PM UTC, original submission:

Error: 1
<type 'exceptions.KeyError'> Exception in Tk callback
Function: <bound method BKchem.load_CDML of <main.BKchem instance at 0x7f61d389a488>> (type: <type 'instancemethod'>)
Args: ()
Traceback (innermost last):
File "/usr/lib/bkchem/bkchem/Pmw.py", line 1789, in _call_
return apply(self.func, args)
File "/usr/lib/bkchem/bkchem/main.py", line 868, in load_CDML
return self._load_CDML_file( a)
File "/usr/lib/bkchem/bkchem/main.py", line 942, in _load_CDML_file
self.paper.read_package( doc, draw=draw)
File "/usr/lib/bkchem/bkchem/paper.py", line 635, in read_package
o = self.add_object_from_package( p)
File "/usr/lib/bkchem/bkchem/paper.py", line 1123, in add_object_from_package
o = molecule( self, package=package)
File "/usr/lib/bkchem/bkchem/molecule.py", line 89, in _init_
self.read_package( package)
File "/usr/lib/bkchem/bkchem/molecule.py", line 346, in read_package
self.t_atom = Store.id_manager.get_object_with_id( temp.getAttribute( 'atom'))
File "/usr/lib/bkchem/bkchem/id_manager.py", line 45, in get_object_with_id
return self.id_map[ id]
<type 'exceptions.KeyError'>: u'atom78396'

John Ree <obsidian69>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #37326:  Aspartate_01.svg added by obsidian69 (5KiB - image/svg+xml - SVG renders OK in Ubuntu)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by obsidian69 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-31 obsidian69 Attached File- => Added Aspartate_01.svg, #37326

    Back to the top


    Powered by Savane 3.4