|
From: Noel O'B. <bao...@gm...> - 2009-03-06 15:25:43
|
(Please cc to the list)
My usual advice is uninstall everything and reinstall following the
instructions on the website. But just for you, here are some hints.
Did you set LD_LIBRARY_PATH? The error message implies that it
couldn't find any of the formats. Does babel -h list all of the
formats? If not, you need to fix that first.
Python 2.3 is old and buggy at this stage. If you're going to be
running it on a webserver, watch out.
- Noel
2009/3/6 Eiso AB <ea...@zo...>:
> Noel O'Boyle wrote:
>>
>> Hello Eiso,
>>
>> Sorry for the confusion - I did not update the README.
>>
>> With pybel.py, I have made no attempt to provide compatability with
>> Python 2.3 although it's possible that the previous OB release (2.2.0)
>> worked with it. If you are not interested in using Pybel just replace
>> pybel.py by an empty file, and rerun setup.py. There should not be any
>> problem using openbabel.py with Python 2.3.
>>
>> However I recommend that you install Python 2.4. You can easily
>> download and compile it locally on your machine, or get it from your
>> system's package manager (for example, several versions of Linux such
>> as Debian have the option of installing several Python versions
>> side-by-side).
>
> ok, I did have it orking at some point, so I guess pybel at some point
> worked with python2.3. Also I have python2.4 available but for some reason
> apache insists on using
> python2.3.
>
> I've come a bit further now, (after uninstalling other openbabel versions,
> cleaning op python site-packages. ) It at least seems to install without
> complaints.
>
> but I still can't use pybel
>
> /usr/bin/python2.3 -c 'import pybel'
> Traceback (most recent call last):
> File "<string>", line 1, in ?
> File "pybel.py", line 24, in ?
> informats = _formatstodict(_obconv.GetSupportedInputFormat())
> File "pybel.py", line 21, in _formatstodict
> broken = [(x,y.strip()) for x,y in broken]
> ValueError: unpack list of wrong size
>
>
> because pybel expexts a list of two-tuples instead of the following:
>
>>>> _obconv.GetSupportedInputFormat()
> ('descriptors', 'fingerprints', 'forcefields', 'loaders', 'ops')
>>>> _obconv.GetSupportedOutputFormat()
> ('descriptors', 'fingerprints', 'forcefields', 'loaders', 'ops')
>>>>
>
>
>
> I did install openbabel-2.2.0 (default: at /usr/local/)
>
>
> any suggestions?
>
> Eiso
>
>
>
>
>
>
>
>>
>> Regards,
>> Noel
>>
>> 2009/3/6 Eiso AB <ea...@zo...>:
>>>
>>> openbabel-2.2.1/scripts/python/README says:
>>>
>>> DEPENDENCIES
>>>
>>> python-2.3 or a more recent version.
>>> openbabel-2.1 or a more recent version.
>>> ---
>>>
>>>
>>> but I think python2.4 is required. (setup.py install
>>> complains about '@'
>>>
>>> what is the latest version of openbabel that can use python2.3?
>>>
>>> kind regards, Eiso
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
>>> CA
>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>> Enterprise
>>> -Strategies to boost innovation and cut costs with open source
>>> participation
>>> -Receive a $600 discount off the registration fee with the source code:
>>> SFAD
>>> http://p.sf.net/sfu/XcvMzF8H
>>> _______________________________________________
>>> OpenBabel-discuss mailing list
>>> Ope...@li...
>>> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>>>
>>
>
>
|