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

partially initialized module 'ipyvolume' has no attribute '_version' (most likely due to a circular import) #443

Open
banxia688 opened this issue Jan 21, 2024 · 1 comment

Comments

@banxia688
Copy link

Snipaste_2024-01-21_20-21-02 I have no idea with this problem
@T0bC
Copy link

T0bC commented Jan 24, 2024

Same Issue:

Used this conda call to create the environment on a WSL Ubuntu:

conda create --solver=libmamba -n rapids-23.12 -c rapidsai -c conda-forge -c nvidia \ rapids=23.12 python=3.10 cuda-version=11.8 \ jupyterlab napari dask-cuda dask-image matplotlib scikit-image anaconda::notebook

then

pip install ipyvolume

import ipyvolume as ipv import numpy as np x, y, z, u, v, w = np.random.random((6, 1000))*2-1 ipv.quickquiver(x, y, z, u, v, w, size=5)

`---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[10], line 1
----> 1 import ipyvolume as ipv
2 import numpy as np
3 x, y, z, u, v, w = np.random.random((6, 1000))*2-1

File ~/miniconda3/envs/rapids-23.12/lib/python3.10/site-packages/ipyvolume/init.py:8
6 from ipyvolume import datasets # noqa: F401
7 from ipyvolume import embed # noqa: F401
----> 8 from ipyvolume.widgets import * # noqa: F401, F403
9 from ipyvolume.transferfunction import * # noqa: F401, F403
10 from ipyvolume.pylab import * # noqa: F401, F403

File ~/miniconda3/envs/rapids-23.12/lib/python3.10/site-packages/ipyvolume/widgets.py:30
22 from ipyvolume.traittypes import Image
23 from ipyvolume.serialize import (
24 array_cube_tile_serialization,
25 array_serialization,
(...)
28 texture_serialization,
29 )
---> 30 from ipyvolume.transferfunction import TransferFunction
31 from ipyvolume.utils import debounced, grid_slice, reduce_size
34 _last_figure = None

File /miniconda3/envs/rapids-23.12/lib/python3.10/site-packages/ipyvolume/transferfunction.py:19
17 N = 1024
18 x = np.linspace(0, 1, N, endpoint=True)
---> 19 semver_range_frontend = "
" + ipyvolume._version.version_js
22 @widgets.register
23 class TransferFunction(widgets.DOMWidget):
24 _model_name = Unicode('TransferFunctionModel').tag(sync=True)

AttributeError: partially initialized module 'ipyvolume' has no attribute '_version' (most likely due to a circular import)`

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