padelpy icon indicating copy to clipboard operation
padelpy copied to clipboard

Error:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd4 in position 1: invalid continuation byte

Open LeonSakura opened this issue 1 year ago • 0 comments

Hello, when calling from_smiles function, when the input is C1N2C3C4N(C2=O)CN5C6C7N(C5=O)CN8C9C2N(C8=O)CN5C8C%10N(C5=O)CN5C%11C%12N(C5=O)CN5C%13C%14N(C5=O)CN5C%15C( N1C5=O)N1CN3C(=O)N4CN6C(=O)N7CN9C(=O)N2CN8C(=O)N%10CN%11C(=O)N%12CN%13C(=O)N%14CN%15C1=O will be reported as an error, Do you know how to solve this problem? thank you very much!

Code:

from padelpy import from_smiles result = from_smiles('C1N2C3C4N(C2=O)CN5C6C7N(C5=O)CN8C9C2N(C8=O)CN5C8C%10N(C5=O)CN5C%11C%12N(C5=O)CN5C%13C%14N(C5=O)CN5C%15C(N1C5=O)N1CN3C(=O)N4CN6C(=O)N7CN9C(=O)N2CN8C(=O)N%10CN%11C(=O)N%12CN%13C(=O)N%14CN%15C1=O' ,fingerprints=True, descriptors=False) print(result)

Error: Traceback (most recent call last): File "D:/Python/jupyter/sr/son_structure.py", line 6, in result = from_smiles('C1N2C3C4N(C2=O)CN5C6C7N(C5=O)CN8C9C2N(C8=O)CN5C8C%10N(C5=O)CN5C%11C%12N(C5=O)CN5C%13C%14N(C5=O)CN5C%15C(N1C5=O)N1CN3C(=O)N4CN6C(=O)N7CN9C(=O)N2CN8C(=O)N%10CN%11C(=O)N%12CN%13C(=O)N%14CN%15C1=O' ,fingerprints=True, descriptors=False) File "D:\anoconda\envs\HGT\lib\site-packages\padelpy\functions.py", line 94, in from_smiles threads=threads File "D:\anoconda\envs\HGT\lib\site-packages\padelpy\wrapper.py", line 168, in padeldescriptor err.decode('utf-8') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd4 in position 1: invalid continuation byte

LeonSakura avatar Feb 25 '24 05:02 LeonSakura