pmorissette / ffn

ffn - a financial function library for Python
pmorissette.github.io/ffn
MIT License
2.03k stars 300 forks source link

TypeError: use() got an unexpected keyword argument 'warn' #122

Closed pinpss closed 3 years ago

pinpss commented 3 years ago

Dear Philippe,

I don't know if this error is related to ffn or Matplotlib. But I only receive the error message with the ffn package.

The same issue has been reported here, however, their solution doesn't work for my case. https://github.com/conchoecia/pauvre/issues/18

`import ffn Traceback (most recent call last):

File "", line 1, in import ffn

File "/Users/mc/opt/anaconda3/lib/python3.8/site-packages/ffn/init.py", line 1, in from . import core

File "/Users/mc/opt/anaconda3/lib/python3.8/site-packages/ffn/core.py", line 27, in matplotlib.use('agg', warn=False)

TypeError: use() got an unexpected keyword argument 'warn'`

Any advices?

timkpaine commented 3 years ago

Duplicate and fixed on master

mbabatunde commented 3 years ago

Hi @timkpaine @pinpss,

I'm also having this same issue and I tried downgrading my matplotlib library, but that didn't fix the issue. Is there something I'm missing?