praw-dev / praw

PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.
http://praw.readthedocs.io/
BSD 2-Clause "Simplified" License
3.4k stars 453 forks source link

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

Closed nater1983 closed 4 months ago

nater1983 commented 6 months ago

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

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

LilSpazJoekp commented 6 months ago

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.

nater1983 commented 6 months ago

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

nater1983 commented 6 months ago

i posted the issue on https://gitlab.gnome.org/World/giara/-/issues/133

github-actions[bot] commented 5 months ago

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.

github-actions[bot] commented 4 months ago

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