philadams-zz / habitica

Command-line interface to HabitRPG
MIT License
147 stars 40 forks source link

"habitica status" fails with error #48

Open asmfreak opened 7 years ago

asmfreak commented 7 years ago

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 commented 7 years ago

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

asmfreak commented 7 years ago

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 commented 7 years ago

@ASMfreaK for the latter, there's a pull request already: https://github.com/philadams/habitica/pull/36