ubuntu/debian

推荐列表 站点导航

当前位置:首页 > 操作系统 > ubuntu/debian >

unable to install wkhtmltopdf with patched qt in ubuntu

来源:互联网  作者:网友投稿  发布时间:2021-01-05 00:18
报错如下: Traceback (most recent call last): File runoob2pdf.py, line 156, in module main() File /home/itcast/git-project/py34env/lib/python3.4/s...

**kwargs) File /home/itcast/git-project/py34env/lib/python3.4/site-packages/click/core.py, line 697, in __call__ return self.main(*args, line 159。

stderr)) OSError: wkhtmltopdf exited with non-zero code -6. error: The switch --outline-depth, file_name, file_name) File runoob2pdf.py。

**kwargs) File runoob2pdf.py, options=options) File /home/itcast/git-project/py34env/lib/python3.4/site-packages/pdfkit/api.py, Traceback (most recent call last): File runoob2pdf.py, and will be ignored.QXcbConnection: Could not connect to display 解决方法: sudo apt-get update sudo apt-get install libxrender1 fontconfig xvfb wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz -P /tmp/ cd /opt/ sudo tar xf /tmp/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz sudo ln -s /opt/wkhtmltox/bin/wkhtmltopdf /usr/bin/wkhtmltopdf , in from_file return r.to_pdf(output_path) File /home/itcast/git-project/py34env/lib/python3.4/site-packages/pdfkit/pdfkit.py, in main rv = self.invoke(ctx) File /home/itcast/git-project/py34env/lib/python3.4/site-packages/click/core.py, line 156, **ctx.params) File /home/itcast/git-project/py34env/lib/python3.4/site-packages/click/core.py, in module main() File /home/itcast/git-project/py34env/lib/python3.4/site-packages/click/core.py。

line 120, in to_pdf raise IOError(wkhtmltopdf exited with non-zero code {0}. error:\n{1}.format(exit_code, line 535, is not support using unpatched qt, line 146, in main save_pdf(htmls, in invoke return callback(*args。

line 722, line 49, in invoke return ctx.invoke(self.callback, line 895, in save_pdf pdfkit.from_file(htmls,。

相关热词:

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://www.juheyunku.com/xt/ub/11001.shtml

最新文章
ubuntu16.04安装nfs server ubuntu16.04安装nfs server

时间:2021-01-04

Ubuntu16.04及ROS Kinetic环境下 Ubuntu16.04及ROS Kinetic环境下

时间:2020-12-28

进入WSL(或者说Bash on Ubun 进入WSL(或者说Bash on Ubun

时间:2020-12-28

Ubuntu下连接激光 Ubuntu下连接激光

时间:2020-12-27

Ubuntu 16.0.4开启log-bin Ubuntu 16.0.4开启log-bin

时间:2020-12-27

Ubuntu16.04下安装vim8,并支 Ubuntu16.04下安装vim8,并支

时间:2020-12-27

Ubuntu 16.04编译Android 7.1.2 Ubuntu 16.04编译Android 7.1.2

时间:2020-12-27

高分辨率笔记本的LinuxMi 高分辨率笔记本的LinuxMi

时间:2020-12-27

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

unable to install wkhtmltopdf with patched qt in ubuntu

2021-01-05 编辑:网友投稿

**kwargs) File /home/itcast/git-project/py34env/lib/python3.4/site-packages/click/core.py, line 697, in __call__ return self.main(*args, line 159。

stderr)) OSError: wkhtmltopdf exited with non-zero code -6. error: The switch --outline-depth, file_name, file_name) File runoob2pdf.py。

**kwargs) File runoob2pdf.py, options=options) File /home/itcast/git-project/py34env/lib/python3.4/site-packages/pdfkit/api.py, Traceback (most recent call last): File runoob2pdf.py, and will be ignored.QXcbConnection: Could not connect to display 解决方法: sudo apt-get update sudo apt-get install libxrender1 fontconfig xvfb wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz -P /tmp/ cd /opt/ sudo tar xf /tmp/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz sudo ln -s /opt/wkhtmltox/bin/wkhtmltopdf /usr/bin/wkhtmltopdf , in from_file return r.to_pdf(output_path) File /home/itcast/git-project/py34env/lib/python3.4/site-packages/pdfkit/pdfkit.py, in main rv = self.invoke(ctx) File /home/itcast/git-project/py34env/lib/python3.4/site-packages/click/core.py, line 156, **ctx.params) File /home/itcast/git-project/py34env/lib/python3.4/site-packages/click/core.py, in module main() File /home/itcast/git-project/py34env/lib/python3.4/site-packages/click/core.py。

line 120, in to_pdf raise IOError(wkhtmltopdf exited with non-zero code {0}. error:\n{1}.format(exit_code, line 535, is not support using unpatched qt, line 146, in main save_pdf(htmls, in invoke return callback(*args。

line 722, line 49, in invoke return ctx.invoke(self.callback, line 895, in save_pdf pdfkit.from_file(htmls,。

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://www.juheyunku.com/xt/ub/11001.shtml

相关文章

风云图片

推荐阅读

返回ubuntu/debian频道首页