chriskiehl / Gooey

Turn (almost) any Python command line program into a full GUI application with one line
MIT License
20.54k stars 1.01k forks source link

error: "Unable to access the X Display, is $DISPLAY set properly?" Ubuntu 18.04 via Hyper-V #614

Open soliverc opened 4 years ago

soliverc commented 4 years ago

My gooey script runs fine on windows.

However when I try to run it on Ubuntu 18.04 via windows virtual machine Hyper V, I get the following error:

Unable to access the X Display, is $DISPLAY set properly?

That is the whole stack trace.

I guess this is a bug due to me being on a virtual machine. Has anybody managed to run gooey on a virtual machine? Any idea how to get around this error?

There are no mentions of this specific error + Gooey on the internet.

I think it's related to wxPython however I haven't been able to fix it after hours of googling and copying suggested fixes.

chriskiehl commented 4 years ago

I've never used Hyper V (first I've heard about it actually), so unfortunately, I don't have any useful advice. WxPython can indeed be cranky if the environment isn't just right.

In general, there's nothing that should prevent Gooey from running in a virtual machine. FWIW, I run and test Gooey on an Oracle Virtualbox runing Ubuntu without any issue.

bje- commented 3 years ago

You could try using standard X applications like xclock or xterm to troubleshoot here. If they don't work either, you've got a clear configuration problem.