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

"habitica status" fails with error #48

Open
asmfreak opened this issue Jul 3, 2017 · 3 comments
Open

"habitica status" fails with error #48

asmfreak opened this issue Jul 3, 2017 · 3 comments
Labels

Comments

@asmfreak
Copy link

asmfreak commented Jul 3, 2017

The error is:

habitica status
Traceback (most recent call last):
  File "/usr/bin/habitica", line 13, in <module>
    habitica.cli()
  File "/usr/lib/python3.6/site-packages/habitica/core.py", line 320, in cli
    clct = content['quests'][quest_key][qt].values()[0]
TypeError: 'dict_values' object does not support indexing
@philadams-zz
Copy link
Owner

Hmm, thanks. Will investigate. I suspect I'm poorly handling the various item types quests can have. Will take a look.

@asmfreak
Copy link
Author

asmfreak commented Jul 9, 2017

More errors. Maybe it is a python3.6 thing?

habitica status
Traceback (most recent call last):
  File "/usr/bin/habitica", line 13, in <module>
    habitica.cli()
  File "/usr/lib/python3.6/site-packages/habitica/core.py", line 335, in cli
    quest_title=str(quest_title))
  File "/usr/lib/python3.6/site-packages/habitica/core.py", line 115, in update_quest_cache
    cache.write(f)
  File "/usr/lib/python3.6/configparser.py", line 916, in write
    self._defaults.items(), d)
  File "/usr/lib/python3.6/configparser.py", line 923, in _write_section
    fp.write("[{}]\n".format(section_name))
TypeError: a bytes-like object is required, not 'str'

@crhbetz
Copy link

crhbetz commented Jul 12, 2017

@asmfreak for the latter, there's a pull request already: #36

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

No branches or pull requests

3 participants