You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating system: Windows 10
Python version: 3.8.6
Error output:
Traceback (most recent call last):
File "pythonfilename.py", line 145, in
pdf_scan()
File "pythonfilename.py", line 44, in pdf_scan
doc = fitz.open(filename, 'rb')
File "C:\Users(username)\AppData\Local\Programs\Python\Python38\lib\site-packages\fitz\fitz.py", line 3033, in init
raise ValueError("bad type: 'stream'")
ValueError: bad type: 'stream'
Exception ignored in: <function Document.del at 0x000001D89CB8D310>
Traceback (most recent call last):
File "C:\Users(username)\AppData\Local\Programs\Python\Python38\lib\site-packages\fitz\fitz.py", line 4191, in del
self._reset_page_refs()
File "C:\Users(username)\AppData\Local\Programs\Python\Python38\lib\site-packages\fitz\fitz.py", line 4181, in _reset_page_refs
if self.isClosed:
AttributeError: 'Document' object has no attribute 'isClosed'
Please help me.
The text was updated successfully, but these errors were encountered:
This is not one of the possible fitz.open() formats! See documentation.
So the document was not created and consequently cannot have several of its attributes.
Operating system: Windows 10
Python version: 3.8.6
Error output:
Traceback (most recent call last):
File "pythonfilename.py", line 145, in
pdf_scan()
File "pythonfilename.py", line 44, in pdf_scan
doc = fitz.open(filename, 'rb')
File "C:\Users(username)\AppData\Local\Programs\Python\Python38\lib\site-packages\fitz\fitz.py", line 3033, in init
raise ValueError("bad type: 'stream'")
ValueError: bad type: 'stream'
Exception ignored in: <function Document.del at 0x000001D89CB8D310>
Traceback (most recent call last):
File "C:\Users(username)\AppData\Local\Programs\Python\Python38\lib\site-packages\fitz\fitz.py", line 4191, in del
self._reset_page_refs()
File "C:\Users(username)\AppData\Local\Programs\Python\Python38\lib\site-packages\fitz\fitz.py", line 4181, in _reset_page_refs
if self.isClosed:
AttributeError: 'Document' object has no attribute 'isClosed'
Please help me.
The text was updated successfully, but these errors were encountered: