basarat / typescript-book

:books: The definitive guide to TypeScript and possibly the best TypeScript book :book:. Free and Open Source 🌹
https://basarat.gitbook.io/typescript/
Other
20.87k stars 2.56k forks source link

Build fails at pdf file creation (calibre problem) #641

Open gavvvr opened 3 years ago

gavvvr commented 3 years ago
Creating PDF Output...
67% Running PDF Output plugin
68% Parsed all content for markup transformation
70% Completed markup transformation
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-runner'
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
Traceback (most recent call last):
  File "/usr/bin/ebook-convert", line 20, in <module>
    sys.exit(main())
  File "/usr/lib/calibre/calibre/ebooks/conversion/cli.py", line 401, in main
    plumber.run()
  File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 1274, in run
    self.output_plugin.convert(self.oeb, self.output, self.input_plugin,
  File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/pdf_output.py", line 188, in convert
    self.convert_text(oeb_book)
  File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/pdf_output.py", line 253, in convert_text
    convert(
  File "/usr/lib/calibre/calibre/ebooks/pdf/html_writer.py", line 1195, in convert
    manager = RenderManager(opts, log, container.root)
  File "/usr/lib/calibre/calibre/ebooks/pdf/html_writer.py", line 279, in __init__
    ans.setUrlRequestInterceptor(self.interceptor)
AttributeError: 'QWebEngineProfile' object has no attribute 'setUrlRequestInterceptor'
enk0de commented 3 years ago

+1

fortezhuo commented 2 years ago

friendly ping @basarat . please help. we can't download pdf / epub / mobi since build failed. Please merge : https://github.com/basarat/typescript-book/pull/677

nikurasutan commented 2 years ago

Yeah, please merge it ^^

mushifali commented 1 year ago

Thanks, @fortezhuo for the fix. I was able to generate the ebooks. You can find them here:

https://github.com/mushifali/typescript-book/actions/runs/3914977395