-
Notifications
You must be signed in to change notification settings - Fork 80
Precompiling in headless Julia #346
Comments
provide a virtual head? ci on travis includes xvfb (see .travis.yml) |
... and that is how one feels like an idiot for not thinking about the most obvious solution :) Sorry for polluting the issue tracker! |
Don't feel bad, focus is really hard to achieve. Feel bad, if you ask the same question twice... |
I'm about to do that! I'm getting an endless stream of
|
(afaik) Gtk(and glib below) not only expect a X11-like display system, but actually a desktop and some connections there (like events from file activities etc). I see a lot of them - when i open my browser f.e. - as i run a windowmanager only and no desktop is available. But the warnings should not be an issue |
Well, they start as soon as I run |
No, the warnings basically hog up stdout/err and Jupyter can't cope with that. I guess that's a problem with Xvfb rather than Gtk.jl, though. |
Could you replace 'Mir'? |
I don't believe I have Mir installed aside from |
is contained in your log above |
I know, that puzzles me too. I did an
|
Having the same problem and solved. Install the libgobject-2.0.0.dll for My windows 7 Move And then restart Juno/IJulia Type |
For those who connects over $ sudo apt-get update
$ sudo apt-get install -y xvfb xauth
$ xvfb-run julia
julia> using Gtk These commands are specified in the root .drone.yml file commands:
- apt-get update
- apt-get install -y xvfb xauth
- "xvfb-run julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'" |
While |
There are many situations where installing |
What error message are you seeing? |
I'm seeing the same error as on #685:
As others have said, it's a bit impractical to use |
Ok, so that's coming from Lines 142 to 146 in 881fdce
|
No, I am also not using Gtk.jl anymore but only Gtk4.jl. |
@giordano this problem is generally resolved by just adding a check to see if you're in a headless environment before doing things that require a display. It should be fine to bail aggressively in that scenario, because it will only result in less thorough precompilation. Even better, this StackOverflow answer says there's actually a GTK-specific solution: you call a function called |
Is there anything I can do to help move this along? Getting a fix out would be amazing. |
Hi, I'm trying to set up a headless machine to be used through Jupyter+IJulia. When
using ImageView
, which in turn usesGtk
, I get the following:I'm on Julia 0.6.1. Is there a way of making this work in a headless setup?
The text was updated successfully, but these errors were encountered: