pymkup throws 'column_data' error
All of a sudden every time I try to use this I get a:
Exception has occurred: ModuleNotFoundError
No module named 'column_data'
File "<Development Director>\pymkupTest.py", line 1, in
The module is for sure in the packages folder... pymkup\column_data.py
I'm not quite fancy enough to figure out what's going on since the column_data package is there.
I also ran into this error. I moved the files into my local directory and then commented out line 15 of pymkup.py, see below. Then it appears to work.
def __init__(self, file):
try:
self.file = file
self.inpfn = dirname(realpath(__file__)) +"\\" + self.file # added '+ "\\"' to allow for document name to be entered
self.fd = open(self.inpfn, "rb")
self.template_pdf = PDFDocument(self.fd)
# Checking if the PDF was authored by BB
# "Bluebeam" in self.template_pdf.metadata['Creator'] # comment out this line
self.all_pages = [p for p in self.template_pdf.pages()]
self.spaces_path = {}
except Exception:
print(self.inpfn, "doesnt exist.")```
What do you mean by Local directory? @Ianshaw93
I also ran into this error. I moved the files into my local directory and then commented out line 15 of pymkup.py, see below. Then it appears to work.
I also ran into this error. I moved the files into my local directory and then commented out line 15 of pymkup.py, see below. Then it appears to work.
def __init__(self, file): try: self.file = file self.inpfn = dirname(realpath(__file__)) +"\\" + self.file # added '+ "\\"' to allow for document name to be entered self.fd = open(self.inpfn, "rb") self.template_pdf = PDFDocument(self.fd) # Checking if the PDF was authored by BB # "Bluebeam" in self.template_pdf.metadata['Creator'] # comment out this line self.all_pages = [p for p in self.template_pdf.pages()] self.spaces_path = {} except Exception: print(self.inpfn, "doesnt exist.")```
I've followed exactly this but I'm still getting the same error. I've tried everything at this point even manually importing only the 3 python files. For some reason I can't get column_data,py used within the other scripts.
Any ideas what could be causing this? I really want to use this package :(
I'm also having this issue. Is it a Python version mismatch?