Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant even import bulbea as bb #43

Open
carlgoodier opened this issue Sep 20, 2024 · 0 comments
Open

Cant even import bulbea as bb #43

carlgoodier opened this issue Sep 20, 2024 · 0 comments

Comments

@carlgoodier
Copy link

on MacM2.

clean environment, all install successfully following page from Bulbea
Basically says error on Seaborn


FileNotFoundError Traceback (most recent call last)
File /opt/anaconda3/envs/env_Bulbea/lib/python3.9/site-packages/matplotlib/style/core.py:137, in use(style)
136 try:
--> 137 style = _rc_params_in_file(style)
138 except OSError as err:

File /opt/anaconda3/envs/env_Bulbea/lib/python3.9/site-packages/matplotlib/init.py:870, in _rc_params_in_file(fname, transform, fail_on_error)
869 rc_temp = {}
--> 870 with _open_file_or_url(fname) as fd:
871 try:

File /opt/anaconda3/envs/env_Bulbea/lib/python3.9/contextlib.py:119, in _GeneratorContextManager.enter(self)
118 try:
--> 119 return next(self.gen)
120 except StopIteration:

File /opt/anaconda3/envs/env_Bulbea/lib/python3.9/site-packages/matplotlib/init.py:847, in _open_file_or_url(fname)
846 fname = os.path.expanduser(fname)
--> 847 with open(fname, encoding='utf-8') as f:
848 yield f

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

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

OSError Traceback (most recent call last)
Cell In[1], line 1
----> 1 import bulbea as bb

File :1007, in find_and_load(name, import)

File :986, in find_and_load_unlocked(name, import)

File :664, in _load_unlocked(spec)

File :627, in _load_backward_compatible(spec)

File :259, in load_module(self, fullname)

File /opt/anaconda3/envs/env_Bulbea/lib/python3.9/site-packages/bulbea-0.1.0-py3.9.egg/bulbea/init.py:5
2 from future import absolute_import
4 # module imports
----> 5 from bulbea.entity import Share, Stock
6 from bulbea.config import AppConfig
7 from bulbea.app import app

File :1007, in find_and_load(name, import)

File :986, in find_and_load_unlocked(name, import)

File :664, in _load_unlocked(spec)

File :627, in _load_backward_compatible(spec)

File :259, in load_module(self, fullname)

File /opt/anaconda3/envs/env_Bulbea/lib/python3.9/site-packages/bulbea-0.1.0-py3.9.egg/bulbea/entity/init.py:6
4 # module bulbea.entity
5 from bulbea.entity.base import Entity
----> 6 from bulbea.entity.share import Share
7 from bulbea.entity.stock import Stock

File :1007, in find_and_load(name, import)

File :986, in find_and_load_unlocked(name, import)

File :664, in _load_unlocked(spec)

File :627, in _load_backward_compatible(spec)

File :259, in load_module(self, fullname)

File /opt/anaconda3/envs/env_Bulbea/lib/python3.9/site-packages/bulbea-0.1.0-py3.9.egg/bulbea/entity/share.py:40
37 from bulbea._util.color import Color
38 import bulbea as bb
---> 40 pplt.style.use(AppConfig.PLOT_STYLE)
42 def _get_cummulative_return(data):
43 cumret = (data / data[0]) - 1

File /opt/anaconda3/envs/env_Bulbea/lib/python3.9/site-packages/matplotlib/style/core.py:139, in use(style)
137 style = _rc_params_in_file(style)
138 except OSError as err:
--> 139 raise OSError(
140 f"{style!r} is not a valid package style, path of style "
141 f"file, URL of style file, or library style name (library "
142 f"styles are listed in style.available)") from err
143 filtered = {}
144 for k in style: # don't trigger RcParams.getitem('backend')

OSError: 'seaborn' is not a valid package style, path of style file, URL of style file, or library style name (library styles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant