# Read molecule using python

**URL:** <https://discuss.avogadro.cc/t/read-molecule-using-python/189>\
**Category:** General Discussion\
**Created:** [July 6, 2011, 2:37pm UTC](https://discuss.avogadro.cc/t/read-molecule-using-python/189 "2011-07-06T14:37:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stewart\_Wenner](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@Stewart\_Wenner](https://discuss.avogadro.cc/u/Stewart_Wenner)\
**Post date:** [July 6, 2011, 2:37pm UTC](https://discuss.avogadro.cc/t/read-molecule-using-python/189/1 "2011-07-06T14:37:52Z")

</div>

Hi all,

I’m having trouble simply reading a molecule input file using Python. People  
have seemed to have success using similar code, so I’m not sure what the  
issue is.

> > > import Avogadro  
> > > mol = Avogadro.MoleculeFile.readMolecule(‘/home/skw57/test.xyz’)

This ends up producing an empty object. Any ideas? Thanks for your help!
