b2
b2 copied to clipboard
Issues with launching B2
Please keep in mind I'm a complete beginner so this problem might be caused by something on my end.
I tried running B2 on Linux (Ubuntu 20.04 LTS), Python 3.8.
I was told to open and test out the notebooks, so I launched b2-ext on jupyter and opened the B2 folder. Then when I tried to open and run "Untitled.ipynb" I kept getting errors when importing B2 and midas. It kept saying "Import Error: cannot import name "Midas" from "midas"."Import Error: cannot import name "B2" from b2. I also tried typing in "Import b2" and running it. For this is got "ModuleNotFoundError: No module named "Data Science"."
Also, can you please give me something like a short beginner's guide on a proper way to actually run b2? I read all the instructions on github but I can't understand most of it since I'm so new. I would really appreciate it.
Sorry for the inconvenience.
Did you do pip install b2-ext
?
The library was actually renamed from midas to b2
, so the import path is
from b2 import B2
I should have updated the examples! Sorry about that.
As for the other error about "Data Science"---b2 depends on datascience
, so please install that as well using pip install datascience
.
This file https://github.com/yifanwu/midas-exp-pub/blob/master/2.MidasDemo.ipynb should contain up to date APIs, except for the name (replace Midas with B2)!
Let me know if you are still running into issues!
Hello, I ran into another error after installing the datascience module. Once ran 'import b2 from B2' i ran into an import error. It's a problem with matplotlib so I imported matplotlib separately and ran into the same error. I don't know what to do here.
Please let me know.
Hm, I don't think I've seen this one before. It might be something to do with your local python environment. Have you tried something along these lines? https://stackoverflow.com/questions/44623376/importerror-cannot-import-name-cbook
I managed to fix the matplotlib issue with your help and now I ran into another issue. Please take a look.
hm, i tried a fresh install and was not able to reproduce the error.
Have you tried https://stackoverflow.com/questions/14295680/unable-to-import-a-module-that-is-definitely-installed? Might be a some file permissions issue.
Also be sure to try jupyter nbextension install --py b2
and jupyter nbextension enable b2 --py
(though I don't think you would need to)
Your Python version seems fine (I tried both 3.7 and 3.9)