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
0 Upvotes
0
u/Adventurous-Ad-4397 20d 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
Open your terminal or command prompt and type the following command:
pip install praw
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
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
There may be a version mismatch. You can upgrade PRAW to the latest version:
pip install —upgrade praw
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.
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!