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 · 1 comment
Open

Cant even import bulbea as bb #43

carlgoodier opened this issue Sep 20, 2024 · 1 comment

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

@slowpoke111
Copy link

Same for me on windows running in a Jupyter lab.
Code:

import bulbea as bb

Error:

C:\Users\BenGB\AppData\Local\Programs\Python\Python310\lib\site-packages\bulbea-0.1.0-py3.10.egg\bulbea\entity\share.py:318: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if format_ is 'csv':
C:\Users\BenGB\AppData\Local\Programs\Python\Python310\lib\site-packages\bulbea-0.1.0-py3.10.egg\bulbea\entity\share.py:318: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if format_ is 'csv':
C:\Users\BenGB\AppData\Local\Programs\Python\Python310\lib\site-packages\bulbea-0.1.0-py3.10.egg\bulbea\entity\share.py:318: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if format_ is 'csv':
C:\Users\BenGB\AppData\Local\Programs\Python\Python310\lib\site-packages\bulbea-0.1.0-py3.10.egg\bulbea\entity\share.py:318: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if format_ is 'csv':

---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
File [~\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib\style\core.py:137](http://localhost:8888/~/AppData/Local/Programs/Python/Python310/lib/site-packages/matplotlib/style/core.py#line=136), in use(style)
    136 try:
--> 137     style = _rc_params_in_file(style)
    138 except OSError as err:

File [~\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib\__init__.py:879](http://localhost:8888/~/AppData/Local/Programs/Python/Python310/lib/site-packages/matplotlib/__init__.py#line=878), in _rc_params_in_file(fname, transform, fail_on_error)
    878 rc_temp = {}
--> 879 with _open_file_or_url(fname) as fd:
    880     try:

File [~\AppData\Local\Programs\Python\Python310\lib\contextlib.py:135](http://localhost:8888/~/AppData/Local/Programs/Python/Python310/lib/contextlib.py#line=134), in _GeneratorContextManager.__enter__(self)
    134 try:
--> 135     return next(self.gen)
    136 except StopIteration:

File [~\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib\__init__.py:856](http://localhost:8888/~/AppData/Local/Programs/Python/Python310/lib/site-packages/matplotlib/__init__.py#line=855), in _open_file_or_url(fname)
    855 fname = os.path.expanduser(fname)
--> 856 with open(fname, encoding='utf-8') as f:
    857     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[5], line 1
----> 1 import bulbea as bb

File [~\AppData\Local\Programs\Python\Python310\lib\site-packages\bulbea-0.1.0-py3.10.egg\bulbea\__init__.py:5](http://localhost:8888/~/AppData/Local/Programs/Python/Python310/lib/site-packages/bulbea-0.1.0-py3.10.egg/bulbea/__init__.py#line=4)
      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 [~\AppData\Local\Programs\Python\Python310\lib\site-packages\bulbea-0.1.0-py3.10.egg\bulbea\entity\__init__.py:6](http://localhost:8888/~/AppData/Local/Programs/Python/Python310/lib/site-packages/bulbea-0.1.0-py3.10.egg/bulbea/entity/__init__.py#line=5)
      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 [~\AppData\Local\Programs\Python\Python310\lib\site-packages\bulbea-0.1.0-py3.10.egg\bulbea\entity\share.py:40](http://localhost:8888/~/AppData/Local/Programs/Python/Python310/lib/site-packages/bulbea-0.1.0-py3.10.egg/bulbea/entity/share.py#line=39)
     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 [~\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib\style\core.py:139](http://localhost:8888/~/AppData/Local/Programs/Python/Python310/lib/site-packages/matplotlib/style/core.py#line=138), 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 are listed in `style.available`)

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

2 participants