Description of the problem (please keep it simple and short):
I have been trying to run code and import a py file however
It seems like like it is running into some error when processing everything.
The output shows the data from the py file imported, however everytime I re-run the code, it goes over the import process all overagain.
Hello, this is an unfortunate side effect of replit package manager “import autoguessing”. Replit is trying to guess which packages you are using and it sees you are importing “game_data” and “art”, but it incorrectly thinks these are third party package imports.
To fix, click three dots near files and then Show hidden files, then open .replit file. Underneath the entrypoint variable, insert this:
disableGuessImports = true
Then, enter poetry remove plane-war in the shell.
Now, the problem should be gone.
Nah, I check the OP’s profile since a lot of posters do not provide a link to repl. The recent python repl seems to be the one in question (~1 hr difference).
Everything else in my post is based on the assumption that that repl is the one in question (and also is not copy-pasted).
Hi, I have the same issue.
Each re-run took something like 30 sec.
When I add “disableGuessImports = true” into .replit, the issue disappears but the code doesn’t run and I have just the console.
“poetry remove plane-war” brings to error:
I also tried to rename “game_data.py” and “art.py” but it doesn’t work.