I think this worked for me on windows 10:
1) Install Linux subsystem on windows 10.
https://docs.microsoft.com/en-us/windows/wsl/install-win10
2) Install Anaconda in there just like installing it on a regular Linux.
https://conda.io/docs/user-guide/install/linux.html
3) Install openbabel using Anaconda (conda command).
https://anaconda.org/openbabel/openbabel
4) Run Jupyter notebook (an interactive python editor)
5) Import openbabel modules into Jupyter notebook.
-Tayeb
Tayeb Kakeshpour
Graduate Research Assistant
Jackson Research Group
Michigan State University
Department of Chemistry
578 S. Shaw Lane, room 535
East Lansing, MI 48824
kakes...@msu.edu
> On Jul 25, 2018, at 8:50 PM, Renee Arias <raria...@gmail.com> wrote:
>
> Hello all,
>
> I have downloaded Openbabel to my machine to use the Pymol Optimize Plugin.
> But whenever I try to run it, Pymol tells me I need to install openbabel.
> Then I try to run the plugin anyway, and I get an error message:
>
> Error: 1
> <type 'exceptions.NameError'> Exception in Tk callback
> Function: <function set_minimize at 0x000000000938B588> (type: <type
> 'function'>)
> Args: ()
> Traceback (innermost last):
> File "C:\Program Files\PyMOL\\PyMOL/modules\Pmw\Pmw_1_2\lib\PmwBase.py",
> line 1747, in __call__
> return apply(self.func, args)
> File "C:\Users\Renee\AppData\Roaming\pymol\startup\optimize.py", line 59,
> in set_minimize
> minimize(selection, forcefield, method, nsteps0, conv, cutoff, cut_vdw,
> cut_elec)
> File "C:\Users\Renee\AppData\Roaming\pymol\startup\optimize.py", line 252,
> in minimize
> obconversion = ob.OBConversion()
> <type 'exceptions.NameError'>: global name 'ob' is not defined
>
> I see that other people have had this problem, but their threads just sort of
> stop at some point and I never see an answer.
>
> Thanks!
>
> Renee
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> OpenBabel-discuss mailing list
> OpenBabel-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss