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

return [x.split()[0] for x in plugins]

with the brute-force

output = []for i in range(len(plugins)):
    try:
        output.append(plugins[i].split()[0])
    except UnicodeDecodeError:
        passreturn output

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.

Anyway, this fix works but is messy and not especially satisfying. Thoughts?

Pat
------------------------------------------------------------------------------
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