1
我安裝WeasyPrint並在Weasyprint中所列示的所有軟件包 - 文檔Weasyprint GLib的錯誤
我使用的是Mac OS X 10.8.2 和Python 2.7 在我的virtualenv安裝Weasyprint。
現在,當我嘗試: HTML( 'http://weasyprint.org/ ').write_pdf('/ tmp目錄/ weasyprint-website.pdf')
我得到我的控制檯以下消息:
pydev debugger: starting
Ignored border-radius: 6px at 12:3, unknown property.
Ignored background: linear-gradient(#000, #111) at 59:3, invalid value.
Ignored box-shadow: 0 0 1em #888 at 65:3, unknown property.
Ignored text-shadow: 0 0 0.5em #444 at 77:3, unknown property.
Ignored transition: color 0.25s at 150:3, unknown property.
Ignored box-shadow: 0px 0px 2px #ddd at 167:3, unknown property.
Ignored border-radius: 0.2em at 168:3, unknown property.
Ignored text-shadow: 1px 1px 1px #111 at 171:3, unknown property.
Ignored transition: background 0.7s ease at 251:3, unknown property.
Ignored border-radius: 0.2em at 279:3, unknown property.
Ignored box-shadow: 0 0 2px #b7b7b7 at 280:3, unknown property.
Ignored background: url(img/content_haut.png) no-repeat top left,
url(img/bas.png) no-repeat bottom right at 301:3, invalid value.
Ignored border-radius: 0.2em at 305:3, unknown property.
Ignored transition: background-color 0.3s linear at 368:3, unknown property.
Ignored box-shadow: 0 0 5px #D60 at 373:3, unknown property.
Parse error at 7:1, unknown at-rule in stylesheet context: @font-face
Parse error at 12:1, unknown at-rule in stylesheet context: @font-face
Parse error at 17:1, unknown at-rule in stylesheet context: @font-face
Parse error at 22:1, unknown at-rule in stylesheet context: @font-face
Parse error at 26:1, unknown at-rule in stylesheet context: @font-face
Parse error at 31:1, unknown at-rule in stylesheet context: @font-face
(process:49474): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()
(process:49474): GLib-CRITICAL **: void g_once_init_leave(volatile void *, gsize): assertion `result != 0' failed
(process:49474): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()
(process:49474): GLib-CRITICAL **: void g_once_init_leave(volatile void *, gsize): assertion `result != 0' failed
(process:49474): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()
(process:49474): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()
我搜索了GLib-GObject-CRITICAL但沒有找到解決方案,有誰知道如何解決這個問題? 我是比較新的Python,所以如果你需要更多的信息讓我知道!