praw-dev / praw

PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

Home Page:http://praw.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: '_NotSet' object has no attribute 'lower'

nater1983 opened this issue · comments

Describe the Bug

bash-5.2$ giara
Traceback (most recent call last):
File "/usr/bin/giara", line 68, in
main.main()
File "/usr/lib64/python3.9/site-packages/giara/main.py", line 277, in main
application = GApplication()
File "/usr/lib64/python3.9/site-packages/giara/main.py", line 72, in init
self._unauth_reddit = get_unauthorized_client()
File "/usr/lib64/python3.9/site-packages/giara/auth.py", line 55, in get_unauthorized_client
return praw.Reddit(
File "/usr/lib64/python3.9/site-packages/praw/util/deprecate_args.py", line 43, in wrapped
return func(**dict(zip(_old_args, args)), **kwargs)
File "/usr/lib64/python3.9/site-packages/praw/reddit.py", line 236, in init
self.config = Config(
File "/usr/lib64/python3.9/site-packages/praw/config.py", line 90, in init
self._initialize_attributes()
File "/usr/lib64/python3.9/site-packages/praw/config.py", line 117, in _initialize_attributes
self.check_for_updates = self._config_boolean(
File "/usr/lib64/python3.9/site-packages/praw/config.py", line 36, in _config_boolean
return item.lower() in {"1", "yes", "true", "on"}
AttributeError: '_NotSet' object has no attribute 'lower'

Desired Result

The program Giara should work.

Code to reproduce the bug

bash-5.2$ giara
Traceback (most recent call last):
  File "/usr/bin/giara", line 68, in <module>
    __main__.main()
  File "/usr/lib64/python3.9/site-packages/giara/__main__.py", line 277, in main
    application = GApplication()
  File "/usr/lib64/python3.9/site-packages/giara/__main__.py", line 72, in __init__
    self._unauth_reddit = get_unauthorized_client()
  File "/usr/lib64/python3.9/site-packages/giara/auth.py", line 55, in get_unauthorized_client
    return praw.Reddit(
  File "/usr/lib64/python3.9/site-packages/praw/util/deprecate_args.py", line 43, in wrapped
    return func(**dict(zip(_old_args, args)), **kwargs)
  File "/usr/lib64/python3.9/site-packages/praw/reddit.py", line 236, in __init__
    self.config = Config(
  File "/usr/lib64/python3.9/site-packages/praw/config.py", line 90, in __init__
    self._initialize_attributes()
  File "/usr/lib64/python3.9/site-packages/praw/config.py", line 117, in _initialize_attributes
    self.check_for_updates = self._config_boolean(
  File "/usr/lib64/python3.9/site-packages/praw/config.py", line 36, in _config_boolean
    return item.lower() in {"1", "yes", "true", "on"}
AttributeError: '_NotSet' object has no attribute 'lower'

My code does not include sensitive credentials

  • Yes, I have removed sensitive credentials from my code.

Relevant Logs

bash-5.2$ giara
Traceback (most recent call last):
  File "/usr/bin/giara", line 68, in <module>
    __main__.main()
  File "/usr/lib64/python3.9/site-packages/giara/__main__.py", line 277, in main
    application = GApplication()
  File "/usr/lib64/python3.9/site-packages/giara/__main__.py", line 72, in __init__
    self._unauth_reddit = get_unauthorized_client()
  File "/usr/lib64/python3.9/site-packages/giara/auth.py", line 55, in get_unauthorized_client
    return praw.Reddit(
  File "/usr/lib64/python3.9/site-packages/praw/util/deprecate_args.py", line 43, in wrapped
    return func(**dict(zip(_old_args, args)), **kwargs)
  File "/usr/lib64/python3.9/site-packages/praw/reddit.py", line 236, in __init__
    self.config = Config(
  File "/usr/lib64/python3.9/site-packages/praw/config.py", line 90, in __init__
    self._initialize_attributes()
  File "/usr/lib64/python3.9/site-packages/praw/config.py", line 117, in _initialize_attributes
    self.check_for_updates = self._config_boolean(
  File "/usr/lib64/python3.9/site-packages/praw/config.py", line 36, in _config_boolean
    return item.lower() in {"1", "yes", "true", "on"}
AttributeError: '_NotSet' object has no attribute 'lower'

This code has previously worked as intended

I'm not sure, I haven't used this code before.

Operating System/Environment

Slackware Current

Python Version

Python 3.9.18

PRAW Version

praw 7.7.1

Links, references, and/or additional comments?

No response

This looks like it is an issue in giara and it's calling praw.Reddit. The "code" you provided to reproduce the issue isn't enough to go off of. We'll need more than this to go off of.

what exactly would you like. I am trying to run Giara 1.1.0 with praw 7.7.1 and prawcore 2.4.0

This issue is stale because it has been open for 30 days with no activity.

Remove the Stale label or comment or this will be closed in 30 days.

This issue was closed because it has been stale for 30 days with no activity.