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
|
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'
|