Open FlorientHuang opened 1 month ago
Dear FlorientHuang, I have the same issue. I installed https://pypi.org/project/pdbx-mmcif/ and I'm passing a gzipped mmcif from the Protein Databank to the script: python parse_cif_noX.py 1UBQ.cif.gz out. Could you fix the error? What am I missing. Thanks a lot in advance!
The issue is likely that we are using a too recent python version. I could fix the issue for me by adding an exception in __tokenizer() method of mlfold/lib/python3.10/site-packages/pdbx/reader/PdbxReader.py.
# Tokenizer loop begins here ---
while True:
try:
line = next(fileIter)
except StopIteration:
return
self.__curLineNumber += 1
Is this a package mismatch?