You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey im a total beginner at python and programming but im getting this error message when running ticker_counts:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
The whole log looks like this:
python3 ticker_counts.py
Traceback (most recent call last):
File "/Users/filipalvgren/Desktop/Reddit-Stock-Trends/back/ticker_counts.py", line 102, in
ticket.get_data()
File "/Users/filipalvgren/Desktop/Reddit-Stock-Trends/back/ticker_counts.py", line 49, in get_data
reddit = praw.Reddit('ClientSecrets')
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/praw/reddit.py", line 188, in init
self.config = Config(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/praw/config.py", line 79, in init
self._load_config(config_interpolation)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/praw/config.py", line 60, in _load_config
config.read(locations)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/configparser.py", line 697, in read
self._read(fp, filename)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/configparser.py", line 1017, in _read
for lineno, line in enumerate(fp, start=1):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Any help on solving this issue would be much appriciated!
The text was updated successfully, but these errors were encountered:
Hey im a total beginner at python and programming but im getting this error message when running ticker_counts:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
The whole log looks like this:
python3 ticker_counts.py
Traceback (most recent call last):
File "/Users/filipalvgren/Desktop/Reddit-Stock-Trends/back/ticker_counts.py", line 102, in
ticket.get_data()
File "/Users/filipalvgren/Desktop/Reddit-Stock-Trends/back/ticker_counts.py", line 49, in get_data
reddit = praw.Reddit('ClientSecrets')
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/praw/reddit.py", line 188, in init
self.config = Config(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/praw/config.py", line 79, in init
self._load_config(config_interpolation)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/praw/config.py", line 60, in _load_config
config.read(locations)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/configparser.py", line 697, in read
self._read(fp, filename)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/configparser.py", line 1017, in _read
for lineno, line in enumerate(fp, start=1):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Any help on solving this issue would be much appriciated!
The text was updated successfully, but these errors were encountered: