I had the same issue, you need to check the columns in the pdb file are spaced according to the default setting otherwise pdb4amber does not recognize the residues properly. The should ideally be at the 18-21 position. Hope this helps!
> On 10. Jun 2021, at 15:20, Computational Chemistry <compchem.om.gmail.com> wrote:
>
> dear amber users
> i recently run the pdb4amber but sometime i get this error i am using
> ambertool21 with AMBER20 opensuse 15.3 leap
>
> ==================================================
> Summary of pdb4amber for: protein.pdb
> ===================================================
> Traceback (most recent call last):
> File "/opt/amber20/bin/pdb4amber", line 33, in <module>
> sys.exit(load_entry_point('pdb4amber==20.1', 'console_scripts',
> 'pdb4amber')())
> File
> "/opt/amber20/lib/python3.8/site-packages/./pdb4amber-20.1-py3.8.egg/pdb4amber/pdb4amber.py",
> line 816, in main
> run(
> File
> "/opt/amber20/lib/python3.8/site-packages/./pdb4amber-20.1-py3.8.egg/pdb4amber/pdb4amber.py",
> line 520, in run
> pdbfixer._write_renum(base_filename)
> File
> "/opt/amber20/lib/python3.8/site-packages/./pdb4amber-20.1-py3.8.egg/pdb4amber/pdb4amber.py",
> line 388, in _write_
> renum
> fh.write("%3s %c %5s\ %3s %5s\n" %
> TypeError: %c requires int or char
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Thu Jun 10 2021 - 08:00:02 PDT