Hi Takayuki, Sounds like something is wrong with your installation...
What version of Open Babel are you using? What operating system? Do you already have another Open Babel installed on your computer? Does "obabel -L formats" list 80 or so formats? - Noel On 2 January 2011 13:22, takayuki serizawa <[email protected]> wrote: > Hi > I'm biginer of programing. > > I want to use openbabel on python. > > So I installed PIL and Python binding. > But test Script dosen't run. > this is the test script > ---------------------------------- > import openbabel > > mol = openbabel.OBMol() > conv = openbabel.OBConversion() > conv.SetInAndOutFormats("smi","mdl") > conv.ReadString(mol,"c1ccccc1O") > print mol.NumAtoms() > mol.AddHydrogens() > print mol.NumAtoms() > conv.WriteFile(mol,'phenol.mol') > -------------------------------------- > when run the script > return > 0 > 0... > i can't find any reason. > > > and > input > "import pybel" > >>>> import pybel > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "C:\Program Files\Python\lib\site-packages\pybel.py", line 37, in > <module >> > informats = _formatstodict(_obconv.GetSupportedInputFormat()) > File "C:\Program Files\Python\lib\site-packages\pybel.py", line 33, in > _format > stodict > broken = [(x,y.strip()) for x,y in broken] > ValueError: need more than 1 value to unpack > > i can't find any reason. > please help me. > > Cheers, > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > OpenBabel-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss > > ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ OpenBabel-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
