drunkdream / weread-exporter

将微信读书中的书籍导出成epub、pdf、mobi等格式
1.2k stars 184 forks source link

报错RuntimeError: Wait for creating markdown timeout #63

Open laulguo opened 8 months ago

laulguo commented 8 months ago

4de32960813ab8721g011b12.log

C:\Portable\EdgeGPT\weread-exporter>python -m weread_exporter -b 4de32960813ab8721g011b12 -o epub --load-timeout=300 Fontconfig error: Cannot load default config file: No such file: (null) [2024-01-25 21:45:27,245][INFO]Exporting book 4de32960813ab8721g011b12 [2024-01-25 21:45:27,544][INFO][WeReadWebPage] Launch url https://weread.qq.com/web/bookDetail/4de32960813ab8721g011b12 [2024-01-25 21:45:28,066][INFO]Browser listening on: ws://127.0.0.1:49973/devtools/browser/b93df7c1-5120-45a9-813a-8dcec06f9c9b [2024-01-25 21:45:28,285][INFO][WeReadWebPage] Current login user is [2024-01-25 21:45:28,286][INFO][WeReadWebPage] Inject cookie wr_rt= [2024-01-25 21:45:28,288][INFO][WeReadWebPage] Inject cookie wr_vid= [2024-01-25 21:45:28,289][INFO][WeReadWebPage] Inject cookie wr_fp= [2024-01-25 21:45:28,291][INFO][WeReadWebPage] Inject cookie wr_pf= [2024-01-25 21:45:28,292][INFO][WeReadWebPage] Inject cookie wr_gender= [2024-01-25 21:45:28,293][INFO][WeReadWebPage] Inject cookie wr_gid= [2024-01-25 21:45:28,294][INFO][WeReadWebPage] Inject cookie wr_skey=*** [2024-01-25 21:45:28,296][INFO][WeReadWebPage] Inject cookie wr_avatar= [2024-01-25 21:45:28,298][INFO][WeReadWebPage] Inject cookie wr_name= [2024-01-25 21:45:28,299][INFO][WeReadWebPage] Inject cookie wr_localvid= [2024-01-25 21:45:37,943][INFO][WeReadExporter] Check chapter 2/版权信息 [2024-01-25 21:45:37,943][INFO][WeReadExporter] Check chapter 3/太平洋战争(一):山雨欲来 [2024-01-25 21:45:37,944][INFO][WeReadExporter] File cache\4de32960813ab8721g011b12\chapters\2-3.md not exist [2024-01-25 21:45:37,944][INFO][WeReadWebPage] Go to chapter 3 [2024-01-25 21:45:37,951][INFO][WeReadWebPage] Fetch url https://weread.qq.com/web/reader/4de32960813ab8721g011b12kecc32f3013eccbc87e4b62e [2024-01-25 21:45:38,385][INFO][WeReadWebPage] Fetch url https://midas.gtimg.cn/midas/minipay_v2/jsapi/cashier.js [2024-01-25 21:45:38,387][INFO][WeReadWebPage] Fetch url https://cdn.weread.qq.com/web/wpa.js [2024-01-25 21:45:38,387][INFO][WeReadWebPage] Fetch url https://weread-1258476243.file.myqcloud.com/web/wrwebnjlogic/css/app.3e110853.css [2024-01-25 21:45:38,388][INFO][WeReadWebPage] Fetch url https://weread-1258476243.file.myqcloud.com/web/wrwebnjlogic/js/app.da544679.js Traceback (most recent call last): File "D:\Researching\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "D:\Researching\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Portable\EdgeGPT\weread-exporter\weread_exporter__main.py", line 158, in main() File "C:\Portable\EdgeGPT\weread-exporter\weread_exporter__main__.py", line 154, in main loop.run_until_complete(async_main()) File "D:\Researching\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete return future.result() File "C:\Portable\EdgeGPT\weread-exporter\weread_exporter\main__.py", line 92, in async_main await exporter.export_markdown(args.load_timeout, args.load_interval) File "C:\Portable\EdgeGPT\weread-exporter\weread_exporter\export.py", line 353, in export_markdown markdown = await self._page.get_markdown() File "C:\Portable\EdgeGPT\weread-exporter\weread_exporter\webpage.py", line 374, in get_markdown raise RuntimeError("Wait for creating markdown timeout") RuntimeError: Wait for creating markdown timeout

v-0-n commented 8 months ago

我跟你一样,我的情况是当前章节只有图片。猜测可能是这个导致出错。

laulguo commented 8 months ago

我跟你一样,我的情况是当前章节只有图片。猜测可能是这个导致出错。

是的,我这个章节是图片封面应该

zerobuge commented 6 months ago

我也遇到这个问题了!请问有解决办法吗?谢谢!

v-0-n commented 6 months ago

不要再用了,再用必定封号

zerobuge @.***> 于 2024年3月16日周六 19:05写道:

我也遇到这个问题了!请问有解决办法吗?谢谢!

— Reply to this email directly, view it on GitHub https://github.com/drunkdream/weread-exporter/issues/63#issuecomment-2001950228, or unsubscribe https://github.com/notifications/unsubscribe-auth/APG6JJVKLXXX7KFOZL25C23YYQRNZAVCNFSM6AAAAABCKSH5ACVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBRHE2TAMRSHA . You are receiving this because you commented.Message ID: @.***>

zerobuge commented 6 months ago

不要再用了,再用必定封号 zerobuge @.> 于 2024年3月16日周六 19:05写道: 我也遇到这个问题了!请问有解决办法吗?谢谢! — Reply to this email directly, view it on GitHub <#63 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APG6JJVKLXXX7KFOZL25C23YYQRNZAVCNFSM6AAAAABCKSH5ACVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBRHE2TAMRSHA . You are receiving this because you commented.Message ID: @.>

谢谢你的好意提醒,我以后注意! 我不需要最后那一章的图片,于是刚刚我自己在最后创建了一个markdown文件,只输入了标题,然后代码就能运行了,只不过没有图片。

gigihubb commented 4 months ago

我也遇到这个问题。。

CheatAbuser commented 2 months ago

我也遇到這個問題。下面這本書的第二頁是世界地圖,沒有文字。爬到這裡必定出現RuntimeError: Wait for creating markdown timeout,然後瀏覽器就自動關閉了。 https://weread.qq.com/web/bookDetail/42832d10813ab9035g0140d5