r/comp_chem • u/famosabutter • 6d ago
Help in molecular docking error
Hi ! Im using Dockey GUI and Autodock4 to run docking. I got this issue error. However the first time i ran this docking it was successful, the second time this error appeared everytime. Anyone can help? I tried so may things fixing the protein or ligand but nothing worked. Tried different ligands too so im guesing the main issue is the software itself
error code
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 2: character maps to <undefined> inside param.py (make_dpf_file, line 798).
1
Upvotes
1
u/toolomebio 2d ago
This is a Python text-encoding error on Windows. It means the program opened a file with the default Windows codec (cp1252), and byte 0x90 at position 2 is undefined in that codec. Common causes are a non-ASCII character in a file or folder path or in a ligand name, or an input file that is not plain text (for example saved from Word, or a binary file with the wrong extension). Try moving everything to a short ASCII-only path like C:\dock, check that the ligand and receptor files open as plain text in a text editor, and re-prepare the PDBQT files. You can also set the environment variable PYTHONUTF8=1 before starting the program, which makes Python 3.7 or newer read files as UTF-8 by default.