I'm using version 2.2.3 of Open Babel.

Wallace


On Thu, Nov 14, 2013 at 2:11 PM, Geoffrey Hutchison <
geoff.hutchi...@gmail.com> wrote:

> > And, I got this error: "Can't locate object method "new" via package
> "Chemistry::Openbabel::OBOp" (perhaps you forgot to load
> "Chemistry::Openbabel::OBOp"?) at convert_iuphar.pl line 30." This is the
> same way I call OBConversion and OBMol, so I'm not sure why it's not
> working. Either I'm doing it wrong, or the class wasn't included in the
> module. Any help would be greatly appreciated!
>
> That’s not actually how you load an OBOp. But incidentally, what version
> of Open Babel are you using?
>
> As Noel mentioned, you want something like this (sorry, my Perl is rusty):
>
> my $genOp = Chemistry::OpenBabel::OBOp::FindType(“gen3d”)
> my $success = $genOp->Do(myOBMol)
>
> Hope that helps,
> -Geoff




-- 
Wallace Chan
Zhang Lab
Department of Biological Chemistry
University of Michigan
walla...@umich.edu
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to