SSL Certification verify failed

I've been trying to learn python these past couple of days and I ran into a problem I'm not quite sure how to solve. I'm trying to make a simple reddit bot and learn the praw reddit API. When I...

Deploying a simple python script to Heroku without Flask or Django

I'm trying to deploy a python script, but I get this error Failed to detect app matching https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz buildpack What files I have right...

How do I solve this "Your requirements.txt is invalid." error to disappear?

I have a flask app i made in python and am trying to deploy with aws's beanstalk. I have updated my requirements.txt to contain all the dependencies i installed with pip. My requirements.txt file...

"invalid_grant error processing request" while making a reddit bot

Im making a reddit bot that replies something to a specific comment. But Im getting this error : invalid_grant error processing request and I can't find the solution. here is my code, Im using...

Reddit PRAW Failing to authenticate due to SSL error

My code is currently this: from bs4 import BeautifulSoup from urllib.parse import urlparse import requests import praw import time import re import bs4 USERAGENT = 'web:PeskyTrollBot:v0.1 (by...

I am having multiple SSL error's with different python applications

First, I cannot pip install pretty much anything without adding in --trusted-host pypi.python.org. If I do not include it, i get an error reading Could not fetch URL...

reddit API praw error HTTP request or JSON object

I use reddit API praw and psraw to extract comments from a subreddit, however, I got two errors today after running a few loops: JSON object decoded error or empty -> ValueError, even I catch...

Python Bot using PRAW started returning an error "recived 403 HTTP response"

I am writing a twitter bot that is supposed to take the top in the hot posts section of reddits r/dankmemes, find the .png file, download it then post it to twitter using tweepy. I am not a very...

Flask and Heroku - ModuleNotFoundError: No module named 'app'

I'm trying to deploy a Flask app to Heroku. After deploying, application crashes and I get an error ModuleNotFoundError: No module named 'app'. Project structure: . ├── ./espncricinfo │ ...

Tests fail with tox because module under test can't be found

I'm having some trouble with tox. Tests fail to run because the module under test can't be found. From the digging I've done, I suspect that the issue might be that tox is running tests with the...

Can't import praw in Python3

I've been writing a reddit bot for a while now and recently moved it to a different system. There I've installed the same packages as on the previous system. The bot is Python3 based so I install...

'tlsv1 alert protocol version' error with recent versions of Python/Pip

I have been attempting this: $ pip3.5 install --upgrade praw /usr/local/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has...

pip does not return control back to command prompt in windows

I recently installed python 3.7 in windows. Whenever I install a module via pip, it doesn't return the control back to the command prompt. Example is given as follows pip install praw Collecting...

Python push fails to Heroku

I'm developing a Reddit bot using PRAW that I'm trying to push to Heroku. When I run git push heroku master, I get this error: Counting objects: 40, done. Delta compression using up to 4...

Tried to upvote a reddit submission but received a 404 HTTP response

I'm new to coding and I suck. I hope to find help here. I was playing around with the praw module for reddit and couldn't get the simple function upvote() to work. Here's my code: import praw r =...

PRAW returning a 404 HTTP exception

I've never had trouble with my code before and this error occurs when attempting to read the inbox. Traceback is as follows: Traceback (most recent call last): File "run1.py", line 711, in...

Using entry, StringVar and IntVar with Tkinter and Python3

I'm new to python and when explaining things please make it beginner friendly :). Basically when I try to run a reddit crawler using tkinter, I get all kinds of erros that I don't understand,...

No module named 'queue' when making app using cx_Freeze

I am trying to make an exe file from my python script and when I run the exe created by cx_Freeze I get the following error, Traceback (most recent call last): File...

pip3 requirements.txt full of garbage

I'm currently running Ubuntu 18.04 and whenever I do pip3 freeze > requirement.txt I get the following huge list. From my research, it seems as though the dependencies for certain installations...

KeyError: 'collectstatic' When deploying the Django application to pythonanywhere

During the implementation of my Django application on pythonanywhere for the first time I encountered such an error. Previous applications with a very similar structure were able to be implemented...

I want to scrape reddit data using praw. I am getting raise ResponseException(response) error after adding the for loop

subredditcmv=reddit.subreddit('changemyview') cmv_subreddit=subredditcmv.top(limit=15) cmv_dict={"Title":[], \ "Score":[], \ "id":[], \ "number_of_comments":[],\ ...

Creating a subreddit filter list

Im using Python 3.6 and PRAW 6, trying to do a simple bot with subreddit filters that cross posts hot submissions into another subreddit . However, I cant seem to set up my subreddit filter...

Random subreddit image to discord.py bot doesn't work

This is my code, and it returns a bunch of errors when I run the '.memri' command. I wanted my discord bot to get a random picture from the "memritvmemes" subreddit. Can anyone tell me what was I...

How to save pandas dataframe from praw to xlsx?

I'm trying to save a dataframe to xlsx in Colab. I get the data with praw: sm =...

Trouble using configparser to pass API credentials

I have a config.ini file that looks like this [REDDIT] client_id = 'myclientid23jd934g' client_secret = 'myclientsecretjf30gj5g' password = 'mypassword' user_agent = 'myuseragent' username =...

PRAW how to catch a "received 401 HTTP response"

I'm purposely trying to authenticate with wrong credentials to the reddit API using PRAW. I can see on my console that I'm getting "received 401 HTTP response" error. Traceback (most recent call...

Cloud Build fails to build App Engine Python 3.8 app (due to pip bug?)

I have a number of Python 3.7 apps on Google App Engine standard, all building and deploying fine. I'm trying to upgrade some of them to the new Python 3.8 runtime, but when I try to deploy, they...

prawcore.exceptions.NotFound: received 404 HTTP response

Hey guys I'm having trouble figuring this out: Traceback (most recent call last): File "SOLIS.py", line 62, in <module> com_df1 = scraper.comments(sub_id_list,keywords1,keywords2) File...

PRAW throwing Max retries exceeded with URL

I'm not very experienced at praw, so I wrote a simple program that finds the top posts in a subreddit as a test: import praw reddit = praw.Reddit(client_id = 'id', ...

Discord.py meme bot with praw

I am trying to make a discord bot using discord.py . One of the command I added was a meme command to inflate the meme economy. I would use praw to post memes from reddit into the server. I...