ericpace / ctcontour

An open-source Python pipeline for automatic contouring and calculation of mean SSDE along the abdomino-pelvic region for CT images
GNU General Public License v3.0
5 stars 2 forks source link

from PyPDF2 import utils as PyPDF2utils #1

Open sevbogae opened 10 months ago

sevbogae commented 10 months ago

This line in the code does not work with newer versions of PyPDF2: from PyPDF2 import utils as PyPDF2utils

You should change your code in the file io_tools.py from:

...
from PyPDF2 import utils as PyPDF2utils  # Line 22.
...
    except PyPDF2utils.PdfReadError as e:  # Line 134.

to:

...
from PyPDF2 import errors as PyPDF2errors  # Line 22.
...
    except PyPDF2errors.PdfReadError as e:  # Line 134.
ericpace commented 10 months ago

Hi Seppe,

I think there may be a couple more issues related to PyPDF2. For now I will be locking the specific version number used at release, i.e. v1.26.0, until I have time to update the code.