robertmartin8 / PyPortfolioOpt

Financial portfolio optimisation in python, including classical efficient frontier, Black-Litterman, Hierarchical Risk Parity
https://pyportfolioopt.readthedocs.io/
MIT License
4.55k stars 959 forks source link

Unable to import the plotting module 'seeborn-deep' not an available style #562

Closed RicardoBlank closed 1 year ago

RicardoBlank commented 1 year ago

Describe the bug Cannot import the plotting module

Thrown errors FileNotFoundError: [Errno 2] No such file or directory: 'seaborn-deep'

OSError: 'seaborn-deep' is not a valid package style, path of style file, URL of style file, or library style name (library styles are listed in style.available)

Operating system, python version, PyPortfolioOpt version Linux, python 3.10.12, PyPortfolioOpt 1.5.4, matplotlib 3.8.0

LuisGCanales commented 1 year ago

Changing plt.style.use("seaborn-deep") to plt.style.use("seaborn-v0_8-deep") at line 21 of plotting.py does the work.

88d52bdba0366127fffca9dfa93895 commented 1 year ago

Please use latest version (1.5.5) here: https://pypi.org/project/pyportfolioopt/#history

tqdo commented 1 year ago

I am using the latest version 1.5.5 and still encounter this error. Any suggestions? Thanks

Changing plt.style.use("seaborn-deep") to plt.style.use("seaborn-v0_8-deep") at line 21 of plotting.py does the work.

After doing this, my python crashes every time I run the code that import plotting module.

jiangzhonglian commented 11 months ago

I fix this error, you can try:

pandas==1.3.3
seaborn==0.11.1
matplotlib==3.2.0

I am using the latest version 1.5.5 and still encounter this error. Any suggestions? Thanks

Changing plt.style.use("seaborn-deep") to plt.style.use("seaborn-v0_8-deep") at line 21 of plotting.py does the work.

After doing this, my python crashes every time I run the code that import plotting module.