Ok. I found the PR that broke it. 
https://github.com/beancount/beanprice/pull/96/files#diff-de242ff59987b1714db86c8be1cd787e963fc89aad8474e060b56ecb02316426

This change added a call to the beancount.core.data.Directives attribute 
which doesn't exist in beancount v2.3.6. 

On Sunday, February 2, 2025 at 10:26:27 PM UTC-5 Gary Roach wrote:

> I'm running into an issue with bean-price. I was getting a 401 
> Unauthorized message when attempting to use the Yahoo price module with    
> bean-price -e 'USD:yahoo/AAPL'     Similar to this post 
> <https://groups.google.com/g/beancount/c/9XngjLys8CY/m/yRJHLoXlBAAJ>.
>
> I installed the latest master branch of bean-price with    pip install git+
> https://github.com/beancount/beanprice.git    but now I'm getting the 
> following error.
>
> File "/usr/local/lib/python3.9/dist-packages/beanprice/price.py", line 
> 678, in <module>
>     data.Directives,
> AttributeError: module 'beancount.core.data' has no attribute 'Directives'
>
> This looks like a version mismatch, but I'm not sure which branch of 
> bean-price I should install to allow this to work. I'm currently using 
>
>    - beancount version 2.3.6
>    - bean-price version 1.2.2
>
> Requirements.txt states that bean-price 1.2.2 should work with 
> beancount>=2.3.4. Is there something else I'm missing here? 
>
>

-- 
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 beancount+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/beancount/d2aa8ce2-1bcb-433b-8c39-624527080303n%40googlegroups.com.

Reply via email to