Skip to content

[BUG]'seaborn-white' is not a valid package style #90

@smasoudrezvani

Description

@smasoudrezvani

when I want to import the library, it gave me this error :
FileNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.11/dist-packages/matplotlib/style/core.py in use(style)
128 try:
--> 129 style = _rc_params_in_file(style)
130 except OSError as err:

6 frames
/usr/local/lib/python3.11/dist-packages/matplotlib/init.py in _rc_params_in_file(fname, transform, fail_on_error)
902 rc_temp = {}
--> 903 with _open_file_or_url(fname) as fd:
904 try:

/usr/lib/python3.11/contextlib.py in enter(self)
136 try:
--> 137 return next(self.gen)
138 except StopIteration:

/usr/local/lib/python3.11/dist-packages/matplotlib/init.py in _open_file_or_url(fname)
879 fname = os.path.expanduser(fname)
--> 880 with open(fname, encoding='utf-8') as f:
881 yield f

FileNotFoundError: [Errno 2] No such file or directory: 'seaborn-white'

The above exception was the direct cause of the following exception:

OSError Traceback (most recent call last)
in <cell line: 0>()
42 print(f"❌ Error: {e}")
43
---> 44 from marketing_attribution_models import MAM
45 print("✅ Library imported successfully!")

/usr/local/lib/python3.11/dist-packages/marketing_attribution_models/init.py in
----> 1 from .MAM import MAM

/usr/local/lib/python3.11/dist-packages/marketing_attribution_models/MAM.py in
10 import seaborn as sns
11
---> 12 plt.style.use("seaborn-white")
13
14

/usr/local/lib/python3.11/dist-packages/matplotlib/style/core.py in use(style)
129 style = _rc_params_in_file(style)
130 except OSError as err:
--> 131 raise OSError(
132 f"{style!r} is not a valid package style, path of style "
133 f"file, URL of style file, or library style name (library "

OSError: 'seaborn-white' 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions