> I just tried to run the github pybel through Python3 on my Mac and got a 
> UnicodeDecodeError in _getpluginnames. To fix, I replaced
> 

Aha. Thanks, I've seen the same problem on my MacBook, but didn't really track 
down the bug. It lead to un-reproducible errors when I was running a few 
scripts, but 50% of the time, things would run OK. I should know better than to 
leave such bugs. :-)

> return [x.split()[0] for x in plugins]
> where the range(len()) mess is to avoid an implicit 
> openbabel.vectorString.__iter__ call, which errors. Printing out the items in 
> this list show that there are two indecipherable garbage lines, which is 
> really bizarre to me.
> 

I think there's a bug somewhere in the underlying C++. For example, if I run 
"obabel -L descriptors" I get the strange garbage (irreproducible):
>     MACCS.txt
> 
> ??    
> ??    ?
> ??    
> bonds    /??

The rest of the output is fine.

As far as I can tell, the other plugin types are fine. Another time listing the 
descriptors, I get:
> tbonds    Number ?q
> title    For comparing a molecule's title
> TPSA    topological polar surface area
> ?PK?    

So there's clearly some error in the descriptors, either the plugin definitions 
or the loader itself. I suspect if we can track down *that* bug, the Python 
will be OK.

-Geoff
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&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