Closed
Description
With xlb-0.2.1
, in a Google Colab instance, the following:
!pip install xlb
import xlb
throws this exception:
ImportError Traceback (most recent call last)
[<ipython-input-2-bc1869afc235>](https://localhost:8080/#) in <cell line: 0>()
----> 1 import xlb
6 frames
[/usr/local/lib/python3.11/dist-packages/numpy/_core/strings.py](https://localhost:8080/#) in <module>
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.11/dist-packages/numpy/_core/umath.py)
On both a CPU and A100 instance, with both !pip install xlb
and !pip install "xlb[tpu]"
.
As a workaround, without XLB installed, install dependencies, clone XLB and import xlb as local code:
!pip install ruff warp-lang trimesh numpy-stl vtk pyvista
!git clone https://github.com/autodesk/XLB
!ln -s ./XLB/xlb ./xlb
import xlb
Metadata
Metadata
Assignees
Labels
No labels