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

AttributeError: 'str' object has no attribute 'user_config_dir' #235

Open
brunetton opened this issue Jun 3, 2020 · 0 comments
Open

AttributeError: 'str' object has no attribute 'user_config_dir' #235

brunetton opened this issue Jun 3, 2020 · 0 comments

Comments

@brunetton
Copy link

Hi

Sorry to "repoen" this kind of issue (probably almost the same issue as #182, but I got this error today.

 bruno@Blue  ~  pip3 install -U hamster-gtk
Requirement already up-to-date: hamster-gtk in ./.local/lib/python3.7/site-packages (0.11.0)
Collecting hamster-lib (from hamster-gtk)
  Using cached https://files.pythonhosted.org/packages/7c/00/90f7c7e0aa977a02d8448726f58f94d0a8f90687a518ddaacce64ae7e3d7/hamster_lib-0.13.2-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: icalendar in ./.local/lib/python3.7/site-packages (from hamster-lib->hamster-gtk) (4.0.6)
Requirement already satisfied, skipping upgrade: six in /usr/lib/python3/dist-packages (from hamster-lib->hamster-gtk) (1.12.0)
Requirement already satisfied, skipping upgrade: future in ./.local/lib/python3.7/site-packages (from hamster-lib->hamster-gtk) (0.18.2)
Requirement already satisfied, skipping upgrade: configparser>=3.5.0b2 in ./.local/lib/python3.7/site-packages (from hamster-lib->hamster-gtk) (5.0.0)
Requirement already satisfied, skipping upgrade: sqlalchemy in ./.local/lib/python3.7/site-packages (from hamster-lib->hamster-gtk) (1.3.17)
Requirement already satisfied, skipping upgrade: appdirs in ./.local/lib/python3.7/site-packages (from hamster-lib->hamster-gtk) (1.4.3)
Requirement already satisfied, skipping upgrade: pytz in /usr/lib/python3/dist-packages (from icalendar->hamster-lib->hamster-gtk) (2019.2)
Requirement already satisfied, skipping upgrade: python-dateutil in /usr/lib/python3/dist-packages (from icalendar->hamster-lib->hamster-gtk) (2.7.3)
Installing collected packages: hamster-lib
Successfully installed hamster-lib-0.13.2
 bruno@Blue  ~  hamster-gtk               
Traceback (most recent call last):
  File "/home/bruno/.local/bin/hamster-gtk", line 10, in <module>
    sys.exit(_main())
  File "/home/bruno/.local/lib/python3.7/site-packages/hamster_gtk/hamster_gtk.py", line 389, in _main
    app = HamsterGTK()
  File "/home/bruno/.local/lib/python3.7/site-packages/hamster_gtk/hamster_gtk.py", line 181, in __init__
    self._config = self._reload_config()
  File "/home/bruno/.local/lib/python3.7/site-packages/hamster_gtk/hamster_gtk.py", line 238, in _reload_config
    config = self._get_config_from_file()
  File "/home/bruno/.local/lib/python3.7/site-packages/hamster_gtk/hamster_gtk.py", line 383, in _get_config_from_file
    cp_instance = get_config_instance(get_fallback(), 'hamster-gtk', 'hamster-gtk.conf')
  File "/home/bruno/.local/lib/python3.7/site-packages/hamster_gtk/helpers.py", line 127, in get_config_instance
    path = config_helpers.get_config_path(app_name, file_name)
  File "/home/bruno/.local/lib/python3.7/site-packages/hamster_lib/helpers/config_helpers.py", line 155, in get_config_path
    return os.path.join(appdirs.user_config_dir, file_name)
AttributeError: 'str' object has no attribute 'user_config_dir'
 ✘ bruno@Blue  ~  
 bruno@Blue  ~  pip3 list | grep hamster          
hamster-gtk            0.11.0       
hamster-lib            0.13.2       
 bruno@Blue  ~  pip3 --version  
pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)

Any hints ? I'm using Hamster for everyday work tracking.
Thanks !

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