I think this might be related to “pip install openbabel” being currently 
broken, which is needed to work with multiple python environments.

Basically, this fix needs to be incorporated into the package that is submitted 
to PyPI:
https://github.com/openbabel/openbabel/pull/125 
<https://github.com/openbabel/openbabel/pull/125>

We have two copies of "openbabel-python.i” in the main repo:

- scripts/openbabel-python.i has been fixed by pull request #125
- scripts/python/openbabel-python.i needs to be updated to match it

Then the python package need to be uploaded to PyPI

I’ve submitted a pull request:
https://github.com/openbabel/openbabel/pull/137 
<https://github.com/openbabel/openbabel/pull/137>

Matt

> On 2 Apr 2015, at 16:41, Geoffrey Hutchison <geoff.hutchi...@gmail.com> wrote:
> 
> I think you'll need to be more detailed when you say that you can't import 
> openbabel with Python. What is the exact error message?
> 
> -Geoff
> 
> 
>> On Apr 2, 2015, at 6:50 AM, lansana Camara <success...@yahoo.com 
>> <mailto:success...@yahoo.com>> wrote:
>> 
>> Hey,
>> 
>> i try to install openbabel with python3. I get also python2.7.
>> In a terminal window i try
>> 
>> obabel -:'C1=CC=CC=C1F' -ocan
>> 
>> and then i get :
>> 
>> Fc1ccccc1   
>> 1 molecule converted
>> 
>> But i can't import openbabel in python.
>> 
>> So can someone help me to fix the bug.
>> 
>> Cheers,
>> Lansana
>> 
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website, 
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for 
>> all
>> things parallel software development, from weekly thought leadership blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the 
>> conversation now. 
>> http://goparallel.sourceforge.net/_______________________________________________
>>  
>> <http://goparallel.sourceforge.net/_______________________________________________>
>> OpenBabel-discuss mailing list
>> OpenBabel-discuss@lists.sourceforge.net 
>> <mailto:OpenBabel-discuss@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
> 
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the 
> conversation now. 
> http://goparallel.sourceforge.net/_______________________________________________
> OpenBabel-discuss mailing list
> OpenBabel-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to