According to Noel O'Boyle useful "guiding lights", here is a special procedure to use MACCS fingerprint method in python pybel links.
Indeed, MACCS is only available in OpenBabel 2.2.3 command line method...
I used this code to get maccs fingerprints a month ago, and everything worked fine. However, I am trying again but I keep getting an error every time I try to get the fingerprints.
The list of available descriptors that I get with pybel.fps is: ['fp2', 'fp3', 'fp4', '\xc8\xe3\x81\x87\x7f']
I don't know what is this last term. If I try to get the fingerprint for the smile in your example: 'CCCC(=O)Cl' using the last descriptor '\xc8\xe3\x81\x87\x7f', I get this vector: [103, 107, 114, 115, 118, 132, 134, 147, 154, 155, 160, 164], which a bit different from you have have.
So, is this '\xc8\xe3\x81\x87\x7f' the same as maccs?.
The problem with using this last term, is that some time I get an error, it seems that it change the key every time I run it.
Has someone has the same issue? I will really appreciate any comment about this situation.
Thanks a lot!