I started to use Replit to learn Python, but I get weird message in the screenshot everytime I run my code. Could you please provide a piece of advice to fix this? I am a real beginner for the programming language, so would be appreciated if you could provide explanation with easier terms.
Hey, @neweditor85 welcome to the forums!
Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!
Also see this guide on how to share your code:
Hello,
it appears that replit is trying to auto-install a package plane-war
. This could be because of any import
s that import a similar name. (I am assuming this is unintended.)
This might lead to errors like the one you see.
To fix this, click the three dots near your files, and then click Show hidden files.
Then, open the file named .replit
. Inside it, there is a line: entrypoint = "main.py"
.
Underneath that line, insert this:
disableGuessImports = true
Then, refresh the tab.
Now, your code should run without saying poetry add plane-war
.
From the output, it looks like plane-war
is an actual module. It install the tar.gz
and looks in the pypi. If it were fake, it would say package not found. It appears that there is an error with the plane-war
module.
main
is also a valid PYPI package IIRC, doesn’t mean anyone’s intentionally trying to use it.
Generally, the imports are unintended.
Even trying to import your own code can cause import guessing (e.g. import main
→ git-python
, import fold
→ math-fold
)