Issue #177: Traceback from bean-doctor checkdeps with filemagic (blais/beancount)

8 views
Skip to first unread message

Martin Michlmayr

unread,
Jul 14, 2017, 3:21:00 PM7/14/17
to bean...@googlegroups.com
New issue 177: Traceback from bean-doctor checkdeps with filemagic
https://bitbucket.org/blais/beancount/issues/177/traceback-from-bean-doctor-checkdeps-with

Martin Michlmayr:

It seems the "python3-magic" package in Debian corresponds to filemagic rather than python-magic. filemagic lacks from_file. beancount/utils/file_type.py already checks for this but bean-doctor checkdeps gives a traceback:

Traceback (most recent call last):
File "/usr/local/bin/bean-doctor", line 4, in <module>
from beancount.scripts.doctor import main; main()
File "/usr/local/lib/python3.5/dist-packages/beancount/scripts/doctor.py", line 392, in main
function(opts.filename, opts.rest)
File "/usr/local/lib/python3.5/dist-packages/beancount/scripts/doctor.py", line 184, in do_deps
deps.list_dependencies(sys.stdout)
File "/usr/local/lib/python3.5/dist-packages/beancount/scripts/deps.py", line 20, in list_dependencies
for package, version, sufficient in check_dependencies():
TypeError: 'NoneType' object is not iterable

I've attached a proposed fix.


Reply all
Reply to author
Forward
0 new messages