Traceback (most recent call last): File "E:\workspace\pyf\wx\matplotlib_patches.py", line 183, in <module> window = MainWindow() File "E:\workspace\pyf\wx\matplotlib_patches.py", line 165, in __init__ self.show_page(0) File "E:\workspace\pyf\wx\matplotlib_patches.py", line 169, in show_page page = self.doc.load_Page(page_num) AttributeError: 'Document' object has no attribute 'load_Page'
时间: 2023-09-08 12:07:44 浏览: 171
浅谈Python traceback的优雅处理
根据错误信息,我们可以看到`AttributeError: 'Document' object has no attribute 'load_Page'`,也就是说,pymupdf库中的Document对象没有load_Page()函数,更正一下即可。
将:
```
page = self.doc.load_Page(page_num)
```
改为:
```
page = self.doc.load_page(page_num)
```
这样就可以避免这个错误了。
阅读全文