pymkup icon indicating copy to clipboard operation
pymkup copied to clipboard

pymkup throws 'column_data' error

Open ghost opened this issue 3 years ago • 4 comments

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 from pymkup import *

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.

ghost avatar Dec 22 '22 02:12 ghost

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.")```

Ianshaw93 avatar Apr 19 '23 12:04 Ianshaw93

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.

lynchdkyle avatar Apr 19 '23 21:04 lynchdkyle

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 :(

EdaAkaltun avatar Sep 29 '23 09:09 EdaAkaltun

I'm also having this issue. Is it a Python version mismatch?

JMarshQPK avatar Mar 03 '25 19:03 JMarshQPK