Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'ModuleNotFoundError: No module named 'pypdf'' when running samp… #78

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samplecode/MergingComments.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import os
import sys

import pypdf as PDF
import PyPDF4 as PDF

if sys.argv[0].upper().find("PYTHON.EXE") >= 0:
del sys.argv[0]
Expand Down
2 changes: 1 addition & 1 deletion samplecode/PDFComments2XL.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from openpyxl import Workbook
from openpyxl.utils import get_column_letter

import pypdf as PDF
import PyPDF4 as PDF

locale.setlocale(locale.LC_ALL, locale.getdefaultlocale()[0])

Expand Down
2 changes: 1 addition & 1 deletion samplecode/basic_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from os.path import abspath, basename, dirname, join
from sys import argv, path, stderr

from pypdf.pdf import PdfFileReader, PdfFileWriter
from PyPDF4 import PdfFileReader, PdfFileWriter

SAMPLE_CODE_ROOT = dirname(__file__)
SAMPLE_PDF_ROOT = join(SAMPLE_CODE_ROOT, "pdfsamples")
Expand Down
2 changes: 1 addition & 1 deletion samplecode/basic_merging.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from os.path import abspath, dirname, join
from sys import argv, path

from pypdf import PdfFileMerger, PdfFileReader
from PyPDF4 import PdfFileMerger, PdfFileReader

SAMPLE_CODE_ROOT = dirname(__file__)
SAMPLE_PDF_ROOT = join(SAMPLE_CODE_ROOT, "pdfsamples")
Expand Down