Ask coding questions

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

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
2
KeaganLandfried (5)

@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.

1
HarperframeInc (227)

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

1
timmy_i_chen (934)

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

1
KeaganLandfried (5)

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

1
timmy_i_chen (934)

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

1
pyelias (657)

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").

1
HarperframeInc (227)

@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