Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gavvvr opened this issue Jun 5, 2021 · 4 comments
Open

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

gavvvr opened this issue Jun 5, 2021 · 4 comments

Comments

@gavvvr
Copy link
Contributor

gavvvr commented Jun 5, 2021

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
Copy link

enk0de commented Oct 8, 2021

+1

@fortezhuo
Copy link

fortezhuo commented Sep 18, 2022

friendly ping @basarat . please help. we can't download pdf / epub / mobi since build failed. Please merge : #677

@nikurasutan
Copy link

Yeah, please merge it ^^

@mushifali
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants