Ask coding questions

← Back to all posts
Does PyQT not work on repl.it?
VideoCarp

Hello, I am using PyQT on my repl, and it just seems to error with:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
which, seems like something isn’t set on a path in the repl. I’ve tried searching everywhere and couldn’t find any on repl.it.
So, overall does PyQT not run on repl.it?
My repl is selected. A link (if needed) is https://repl.it/@VideoCarp/pyqttest

Answered by PattanAhmed [earned 5 cycles]
View Answer
Voters
MouadEssalim
DynamicSquid
VideoCarp
Comments
hotnewtop
PattanAhmed

@VideoCarp Hi,
It's just a warning.
I usually ignore all the warnings these days...

I don't know more about that because I don't want to know more on that thing.
That's it
Thanks!

Hope this helps

HarperframeInc

I don't know. Maybe try using a tkinter repl?
Maybe post this in bugs or feedback.

VideoCarp

Nope, that didn’t work either, and raised a different error.

https://repl.it/@VideoCarp/Pykinter#main.py
@HarperframeInc

HarperframeInc

@VideoCarp Okay then... Maybe you need a window manager and PyQt is looking for it... Maybe try install gnome/kde to your repl with install-pkg.
If that doesn't work- I don't know what will. Try posting to Bugs or Feedback, OR use Tkinter, GTK+, or PySimpleGUI (makes tkinter simpler to use)

VideoCarp

@HarperframeInc
How would I do that install-pkg thing? Is there some sort of file or?

HarperframeInc

@VideoCarp Shell/.replit