Ok, I've went thru all the issues, the installation went smooth and now my
install folder contains: bin, include, lib, share

I've added this line in my .bashrc:  export
PYTHONPATH=~/WORKSPACE/OpenBabel/openbabel-3.0.0_INSTALL
but still i get "ModuleNotFoundError: No module named 'openbabel'"

I don't know if it can be useful, but if I add this path instead:
~/WORKSPACE/OpenBabel/openbabel-3.0.0_INSTALL/lib  (the "lib" sub-directory)
and i digit "import openbabel" it actually imports that namespace, but it's
pretty empty.
if i try with "from openbabel import openbabel" instead, I get a different
error: "ImportError: cannot import name 'openbabel'"



Il giorno gio 2 apr 2020 alle ore 12:19 Thomas <odioidenti...@gmail.com> ha
scritto:

> Hi there,
>   I'm trying to compile the latest openbabel 3 on my Ubunu 18.04 machine
> (at present only openbabel 2 is available on ubuntu's repositories)
>
> The cmake output is giving me some issues:
>
> cmake ../openbabel-3.0.0
> -DCMAKE_INSTALL_PREFIX=~/WORKSPACE/OpenBabel/openbabel-3.0.0_INSTALL
> -DPYTHON_BINDINGS=ON
>
>
> 1) -- Found PythonInterp: /usr/bin/python (found version "2.7.17")
>
> I have python 2.7 and 3.6. I'd like to keep them both.
> I have openbabel 2 installed system wide from the ubuntu repository and
> bound to python 2 (I want to keep it as it is).
> I want to bind my fresh openbabel 3 to python 3 (it's a local install, it
> should be possible).
> How can I specify which python interpreter to use?
>
>
> 2) -- Attempting to build the GUI
>      --    wxWidgets not found => GUI will not be built
>
> Even if i didn't specify to build the GUI, it's doing so. Ok, why not...
> I've installed wx-common, wx3.0-headers, libwxbase3.0-dev ... still it
> doesnt find wxWidget. Why?
> I notice also that i can import wx only from python2, not from python3.
> How can i get wx available to python3?
>
>
> 3) Warning: Python bindings NOT found. Generate using -DRUN_SWIG=ON
>
> What does it means?
>
>
> BTW, in the doc at
> https://open-babel.readthedocs.io/en/latest/Installation/install.html#compiling-open-babel
> there are many obsolete information and broken links, where can i report it
> to get it fixed?
>
> Thank you
> Thomas
>
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to