Open muriloasouza opened 2 years ago
Hey @muriloasouza, thanks for reporting. I can't reproduce this problem on Linux
@dalthviz, could you check on Windows? The command to install PyPDF2 is
conda install -c conda-forge pypdf2
Thanks!
I was able to replicate this by running the code directly in the console (running from a file works for me i.e I see the print statement):
Strangely I'm also able to see the print if I only run the for statement but just if I runned before the code as a file:
If I re-run all the code directly in the console and try to run just the for statement I can't see again the print:
Thanks @dalthviz for checking that! This is very strange but I can confirm it on Linux as well.
@muriloasouza, we'll try to take a look at this in the coming months, but it's hard for us to say exactly when it's going to be fixed.
Thank you @ccordoba12!
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
A code to read some pdf pages with PyPDF2 library does not work in Spyder (tried in other IDEs like PyCharm or Juptyer Lab, and it works there).
What steps reproduce the problem?
EDIT: I don't know how to upload the .pdf file to run the code, but it can be downloaded here:
pdf file
It's a pdf with the sales results from a shop from Brazil.
What is the expected output? What do you see instead?
Expected output: The exact page in the PDF file where a string is present.
The string i am looking for is only present in page 10, hence, i expect to see from the
print
command inside theif
conditionText present in page 10
What i see: Nothing. The code runs, but nothing is printed.
Versions
Dependencies