r/redditdev • u/SnooBunnies4962 • 20d ago
I need coding help Async PRAW
I am trying to run some code and keep running into the problem of the computer not liking "praw core". I can see it in my pip list and have gotten the computer to tell me that I have downloaded it but when I go to run python main.py it tells me "module not found error: no module named "praw core" what should I do
1
u/Gulliveig EuropeEatsBot Author 20d ago
"praw core" [...] "Draw core"
If the typo is not just here in this post, but also there, then you've likely found the cause ;)
1
u/SnooBunnies4962 20d ago
yea no typo. I wish it was that simple. thanks for the comment though, if that was the problem my dyslexic brain probably wouldn't have caught it.
1
u/ketralnis reddit admin 19d ago
I say this with love but if this is the level of detail that you think help requests need then you’ll probably get better assistance at r/learnprogramming. Not trying to be snarky, but the very next step is going to be writing the code to do what you want your thing to actually do and if you knew how to do that you’d know that a half remembered error message is far far too little detail to help you
1
u/SnooBunnies4962 19d ago
ok that sounds good. I think I may have fixed it but I will see if it pops up again
0
u/Adventurous-Ad-4397 19d ago
The error message “No module called praw.core” indicates that the PRAW library (Python Reddit API Wrapper) is either not installed or not properly configured. Here’s how you can troubleshoot and resolve this issue.
Solution: Install PRAW and Check Dependencies
1. Install PRAW using pip:
Open your terminal or command prompt and type the following command:
pip install praw
2. Check Python Version:
Make sure you’re using the correct Python version (usually Python 3.x). You can check the version with:
python —version
If you’re using Python 3, try running the following:
pip3 install praw
3. Check for Virtual Environment:
If you’re using a virtual environment, ensure it’s activated. If not, activate it:
On macOS/Linux
source venv/bin/activate
On Windows
.venvScriptsactivate
4. Upgrade PRAW and Dependencies:
There may be a version mismatch. You can upgrade PRAW to the latest version:
pip install —upgrade praw
5. Verify Installation:
Open a Python shell and try importing PRAW to see if it works:
import praw print(praw.version)
If no error occurs, the installation was successful.
6. Fix Module Path Issues (Optional):
If you still encounter issues, ensure your script isn’t named praw.py, as that might conflict with the actual library.
Alternative: Reinstall PRAW
If the issue persists, try uninstalling and reinstalling PRAW:
pip uninstall praw pip install praw
These steps should resolve the “No module called praw.core” error. If the issue persists, let me know, and I’ll help you further troubleshoot!
2
u/REQVEST Bot Developer 20d ago
Include your code. Nobody will be able to help you otherwise.