Page 1 of 1

[Solved] Why can't I import queue - No module named queue

Posted: Sun Sep 26, 2021 5:54 pm
by KingmakerVN
I know this is probably a dumb question, but I don't seem to be able to import queue. Does it have anything to do with "queue" going orange when you write it? Or does it have something to do with the python version? I don't have a problem importing other stuff.

Re: Why can't I import queue - No module named queue

Posted: Sun Sep 26, 2021 6:02 pm
by PyTom
Are you on Ren'Py 7.4?

Ren'Py is using Python 2.7, in which the module was named Queue. However, 7.4 has some Python 3 compatibility features, so queue should be available under that name.

Re: Why can't I import queue - No module named queue

Posted: Sun Sep 26, 2021 6:09 pm
by KingmakerVN
PyTom wrote: Sun Sep 26, 2021 6:02 pm Are you on Ren'Py 7.4?

Ren'Py is using Python 2.7, in which the module was named Queue. However, 7.4 has some Python 3 compatibility features, so queue should be available under that name.
How nice. Thank you for the quick response!