I developing a script that will eventually use a pdfminer package to convert .pdfs to .txt files. In preparing the the subject files for use, I am having to import copy from xlutils.copy
from xlutils.copy import copy, I run into a syntax error from one of the copy.py associated python files (line 699 of xlutils\filter.py
def method(self,name,*args):
if self.name:
print repr(self.name),
print "%s:%r"%(name,args)
the syntax error cursor points to the area of print repr(self.name) between the "r" and the left parenthesis. I discovered repr is not defined until line 825 of the filter.py script.
What could be the exact cause of the syntax error and is their any way to correct the script such that filter.py does not trip up the xlutils.copy command?