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.
--
You received this message because you are subscribed to the Google Groups
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/20170714192058.17935.29759%40celery-worker-101.ash1.bb-inf.net.
For more options, visit https://groups.google.com/d/optout.