This problem seems to come and go, and it also varies across my different projects, despite the EXACT same import statement is used.
[Almost] ALL of my repl's begin with:
import PySimpleGUI as sg
Usually, or for long stretches of time, repl.it installs the package for me just fine. Other times it complains "PySimpleGUI package not found".
I don't understand why this keeps happening and why it's so intermittent that it would work for 1 project but not another in the same account.
PLEASE help! I love using repl.it to provide quick demonstrations for Reddit responses. It allows me to post code that uses my package without the people examining the code needing to install anything. Repl.it a BRILLIANT piece of work!!!!
Repl.it gets their packages from another website called Python Package Index. I believe you are getting this issue because there maybe was something wrong while repl.it was trying to fetch the package, so it may have shown that error.
It does happen to me sometimes, and I can get really frustrated.
Have you tried moving your code to another repl or forking your repl to solve your issue?
I'm sure repl.it is sorry for your inconvenience, and they are doing their best to fix these issues.
Any questions? Please ask me.
@HarperframeInc Aware of PyPI and how it works. Since it's happening to you as well and have an interest in getting it fixed, you can help that process by voting on this bug report:
Thanks very much for the link to file a bug. I filed one. I didn't realize they're voted on:.... so feel free to vote people!
You should add a
To do that, on the left bar there's a "add file" button. Click that and name the file "requirements.txt" (no inverted commas). Then add the line "PySimpleGUI" (again without quotes)
The module should be loaded when you import it. Hope this helps!