Skip to content

not resolving imports in the ipynb notebook #27

@anshuman0123

Description

@anshuman0123

for the second cell

`from tribev2.demo_utils import TribeModel, download_file
from tribev2.plotting import PlotBrain
from pathlib import Path

CACHE_FOLDER = Path("./cache")

model = TribeModel.from_pretrained(
"facebook/tribev2",
cache_folder=CACHE_FOLDER,
)
plotter = PlotBrain(mesh="fsaverage5")
`
output is

`ImportError Traceback (most recent call last)
/tmp/ipykernel_1931/3387571854.py in <cell line: 0>()
----> 1 from tribev2.demo_utils import TribeModel, download_file
2 from tribev2.plotting import PlotBrain
3 from pathlib import Path
4
5 CACHE_FOLDER = Path("./cache")

23 frames
in

/usr/local/lib/python3.12/dist-packages/numpy/_core/strings.py in
12 from numpy._core.multiarray import _vec_string
13 from numpy._core.overrides import set_module
---> 14 from numpy._core.umath import (
15 isalpha,
16 isdigit,

ImportError: cannot import name '_center' from 'numpy._core.umath' (/usr/local/lib/python3.12/dist-packages/numpy/_core/umath.py)


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions