-
-
Notifications
You must be signed in to change notification settings - Fork 704
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
GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init() #41
Comments
Hi, Thanks for reporting this. I can’t reproduce this on Linux, and don’t have a Mac to test. What happens afterwards? Does Python crash? Do you get a traceback? Do you get a PDF file? In any case, I just pushed a change to master to add a call to
|
I tried the git version out and still get the same error ... (process:99407): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init() (process:99407): GLib-CRITICAL **: void g_once_init_leave(volatile void *, gsize): assertion `result != 0' failed (process:99407): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init() (process:99407): GLib-CRITICAL **: void g_once_init_leave(volatile void *, gsize): assertion `result != 0' failed (process:99407): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init() (process:99407): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init() |
Hello, Is it the same error or I just installed something wrong? just trying to "from weasyprint import HTML" File "D:_IDE\eclipse\workspace\test\src\main.py", line 5, in |
My mistake. @migrome , can you try again with the change I just pushed to master? @tdhulster , if you did not have the same AttributeError @migrome , I suspect you might not be using the git version. |
Works fine, thank you. |
I did this : But do I have to do something more to use it or should that work? |
@tdhulster do you still have the error with the latest master now? Sometimes pip does nothing when it thinks everything is already installed. Does the output ends with something like "Installed WeasyPrint"? If not, try |
@tdhulster, I believe this bug is fixed now. Can you confirm? (Make sure you’re using the latest master, see previous message.) |
Closing for lack of response plus belief that this is fixed. |
I am getting the same error in mac. Was this resolved? |
I am getting the same error on Arch Linux, and I used the last version (42.03). |
I installed WeasyPrint and all packages that were listed in the Weasyprint - documentation
I'm using Mac OS X 10.8.2
and Python 2.7
And installed Weasyprint in my virtualenv .
Now when i try :
HTML('http://weasyprint.org/').write_pdf('/tmp/weasyprint-website.pdf')
I get following message in my console :
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()
I googled the GLib-GObject-CRITICAL but didn't find a solution, does anyone knows how to fix this?
The text was updated successfully, but these errors were encountered: