I had a similar problem. The line listed with the 'EOF inside string'
had a string that contained within it a single quote mark ('
). When I added the option quoting=csv.QUOTE_NONE
it fixed my problem.
For example:
import csv
df = pd.read_csv(csvfile, header = None, delimiter="\t", quoting=csv.QUOTE_NONE, encoding='utf-8')