I have just uploaded a Python file onto Replit for an online University course and ran the program. It installed all of the required libraries. The final thing it outputs is resolving dependencies so I assume this is what it gets stuck on. The CPU and RAM max out with the RAM going well over the limit.
For the program to run or crash producing an error message
The program seemingly does nothing for hours whilst the CPU and RAM max out. I assume it is “resolving dependencies”.
Steps to reproduce:
Go to https://replit.com/@DevourerRevenge/Degrees and run the program.
Bug appears at this link:
Chrome, Gener8 and bing
I think your repl may be misconfigured, as it shouldn’t be importing
gardenlinux. I’ll take a look and see what I can figure out.
Having some internet lag here, but this is a working solution for the meantime:
Ok, I’ll try that and get back to you on how I get on, thank you for your speedy response.
I followed your instructions (I think) and got the error message:
/nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/bin/python3: can’t open file ‘/home/runner/Degrees/main.py’: [Errno 2] No such file or directory
exit status 2
What should I do now?
Ah, that’s a separate issue. Replit (by default) expects your main file to be called
main.py. In your case, it’s called
degrees.py, you can either rename it to
main.py, or follow this:
Click the ⋮ next to “Files” then click “Show hidden files”. Next click on the
.replit file and finally you can change the
entrypoint to whatever file you want to run.
You should also see the docs on how to configure a Repl: https://docs.replit.com/programming-ide/configuring-repl
And if you want to run the last edited file, take a look at this post:
If you’re on the new template, you might not have a
entrypoint set, if that’s the case, you can just add one.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.