From: Noel O'B. <bao...@gm...> - 2008-11-04 17:48:04
|
The deeper cause is that the OpenBabel library cannot find the various file formats. Maybe I should improve the error message. :) I recommend that you 'reboot' by uninstalling OpenBabel and Pybel, and then reinstalling according to the instructions on our website. If you still have a problem, please describe your operating system, and how you installed everything. Did you remember to run "make install"? Regards, Noel 2008/10/31 Kamran Haider <ha...@ys...>: > Dear openbabel scripting community > I have a problem in importing PyBel. The 'import pybel' statement gives > the following output. I have tried to look through pybel.py and spot the > problem and its obviously about the _formatstodict which is trying to > unpack members of a list that do not contain more than 1 elements . The > problem seems to have some deeper cause. > I would be grateful, if you could help me out. > Thanks > > >>> import pybel > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/y/people/haider/python_add_modules/lib/python/pybel.py", line > 25, in <module> > informats = _formatstodict(_obconv.GetSupportedInputFormat()) > File "/y/people/haider/python_add_modules/lib/python/pybel.py", line > 21, in _formatstodict > broken = [(x,y.strip()) for x,y in broken] > ValueError: need more than 1 value to unpack > > -- > *********************************************************** > Kamran Haider > York Structural Biology Laboratory > University of York > Heslington > York, UK > YO10 5YW > Email: ha...@ys... mk...@yo... > Mobile: +44(0)7902974801 Lab: +44 1904 328259 > Fax: +44 1904 328266 > URL: http://www.ysbl.york.ac.uk/people/haider.htm > *********************************************************** > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > OpenBabel-scripting mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openbabel-scripting > |