Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: UTF-8 codec cant decode byter 0xff #60

Open
fimpen1312 opened this issue Feb 18, 2021 · 0 comments
Open

Error: UTF-8 codec cant decode byter 0xff #60

fimpen1312 opened this issue Feb 18, 2021 · 0 comments

Comments

@fimpen1312
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant