I modified code in accordance with your recommendation and obtained in
general same output:

└─> ./babtest.py
['CONFIG', 'CONTCAR', 'HISTORY', 'POSCAR', 'VASP', 'abinit', 'acesout',
'acr', 'adfout', 'alc', 'arc', 'axsf', 'bgf', 'box', 'bs', 'c09out', 'c3d1',
'c3d2', 'caccrt', 'can', 'car', 'castep', 'ccc', 'cdx', 'cdxml', 'cif',
'ck', 'cml', 'cmlr', 'crk2d', 'crk3d', 'ct', 'cub', 'cube', 'dat', 'dmol',
'dx', 'ent', 'fa', 'fasta', 'fch', 'fchk', 'fck', 'feat', 'fhiaims',
'fract', 'fs', 'fsa', 'g03', 'g09', 'g92', 'g94', 'g98', 'gal', 'gam',
'gamess', 'gamin', 'gamout', 'got', 'gpr', 'gro', 'gukin', 'gukout',
'gzmat', 'hin', 'inchi', 'inp', 'ins', 'jout', 'log', 'mcdl', 'mcif', 'mdl',
'ml2', 'mmcif', 'mmd', 'mmod', 'mol', 'mol2', 'mold', 'molden', 'molf',
'moo', 'mop', 'mopcrt', 'mopin', 'mopout', 'mpc', 'mpo', 'mpqc', 'mrv',
'msi', 'nwo', 'out', 'outmol', 'output', 'pc', 'pcm', 'pdb', 'pdbqt', 'png',
'pos', 'pqr', 'pqs', 'prep', 'pwscf', 'qcout', 'res', 'rsmi', 'rxn', 'sd',
'sdf', 'smi', 'smiles', 'sy2', 't41', 'tdd', 'text', 'therm', 'tmol', 'txt',
'txyz', 'unixyz', 'vmol', 'xml', 'xsf', 'xyz', 'yob']
Traceback (most recent call last):
  File "./babtest.py", line 5, in <module>
    mymol=pybel.readstring(sorted(pybel.informats)[-16],'CCOC(=O)C')
  File "/usr/local/lib/python2.7/site-packages/pybel.py", line 179, in
readstring
    raise ValueError("%s is not a recognised Open Babel format" % format)
ValueError: smi is not a recognised Open Babel format

Index [-16] of item 'smi' is correct.



--
View this message in context: 
http://forums.openbabel.org/Error-in-Pybel-readstring-smi-format-not-recognized-tp4657776p4657782.html
Sent from the General discussion mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to