Ask coding questions

← Back to all posts
Replit Module Does not Exist!
HarperframeInc (232)

I am outraged that the replit module does not exist on replit! I cannot belive that their own module does not work on their own website.

I would be happy to know if anybody has an answer to my problem.
Thank you!

Edit: Thanks Keganlandfried for solving my problem!
Solution: Remove other files

Commentshotnewtop
ThomasS1 (48)

This should be a fix even with multiple files: replit module fix

Please select this as the answer if it works for you! Hope it does. Thanks!

KeaganLandfried (7)

@HarperframeInc This error occurs when you have a Python project with multiple files, and trying to use the 'replit' module. This module does not work with multiple files and should fix itself if you only have one file.

HarperframeInc (232)

@KeaganLandfried I see, I have an 'example.py' file, I will remove it, thank you!

timmy_i_chen (952)

Sorry about this, it should not be broken - thanks for bringing it to our attention - we're looking into it now.

KeaganLandfried (7)

@timmy_i_chen This is an existing problem, in Python 3, you can not use the 'replit' module AND multiple files.

timmy_i_chen (952)

@KeaganLandfried Yes, that has always been the case, but only recently has it been buggy for single file programs. :(

pyelias (683)

That feature has been removed. If you want to clear the console, you can print("\n" * 100) or enable explorer mode and print("\033[2J\033[H").

HarperframeInc (232)

@pyelias This won't work, because I would like the text to appear on the top, not on the bottom, although it is currently my temporary solution.

Thank you for your help! :) (I didn't use the explorer mode solution)
https://repl.it/@HarperframeInc/NeU-OS-Test