On Mon, Aug 19, 2019 at 2:18 AM Justus Pendleton <[email protected]> wrote:

> I could not check as I could never get bean-price to run on my ledger
>> file, due to the same error
>> reported here
>> https://groups.google.com/forum/?nomobile=true#!searchin/beancount/ModuleNotFoundError$3A$20No$20module$20named$20$27beancount.prices.sources.True%7Csort:date/beancount/aCumzQyXMgw/B9Vn7OeEBgAJ
>>
>
> The thing you are linking to says it has been resolved a long time ago:
> https://bitbucket.org/blais/beancount/issues/395/using-bean-price-all-causes-an-error
>

yes but it still happens for me, having install beancount for the first
time last week.
2.2.1 is, as far as I can tell, the latest released tag.

$ bean-price -V
Beancount 2.2.1

$ bean-price -a mini.beancount
Traceback (most recent call last):
  File
"/usr/local/lib/python3.7/site-packages/beancount/prices/find_prices.py",
line 147, in import_source
    __import__(default_name)
ModuleNotFoundError: No module named 'beancount.prices.sources.True'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/bean-price", line 4, in <module>
    from beancount.prices.price import main; main()
  File "/usr/local/lib/python3.7/site-packages/beancount/prices/price.py",
line 354, in main
    args, jobs, entries, dcontext = process_args()
  File "/usr/local/lib/python3.7/site-packages/beancount/prices/price.py",
line 347, in process_args
    entries, args.date, args.inactive, args.undeclared))
  File
"/usr/local/lib/python3.7/site-packages/beancount/prices/find_prices.py",
line 366, in get_price_jobs_at_date
    default_source = import_source(undeclared_source)
  File
"/usr/local/lib/python3.7/site-packages/beancount/prices/find_prices.py",
line 151, in import_source
    __import__(module_name)
TypeError: __import__() argument 1 must be str, not bool

$ cat mini.beancount
2019-01-01 open Assets:Shares:APPL
2019-01-01 commodity APPL
  name: "Apple"
  price: "USD:quandl/WIKI:AAPL"

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAEZ6h3maF-Tb%2BsY95R7ibcLQ6iDw6aad-KVn4FKbgjaJdinKKA%40mail.gmail.com.

Reply via email to