Can't Import Holoviews
See original GitHub issueALL software version info
(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc)
Description of expected behavior and the observed behavior
Im trying to install holoviews for UMAP
Complete, minimal, self-contained example code that reproduces the issue
import holoviews as hv
Stack traceback and/or browser JavaScript console output
import holoviews as hv Traceback (most recent call last):
File “C:\Users\brand\AppData\Local\Temp/ipykernel_1540/4081495914.py”, line 1, in <module> import holoviews as hv
File “C:\Users\brand\anaconda3\envs\SALIB\lib\site-packages\holoviews_init_.py”, line 12, in <module> from .annotators import annotate # noqa (API import)
File “C:\Users\brand\anaconda3\envs\SALIB\lib\site-packages\holoviews\annotators.py”, line 10, in <module> from panel.pane import PaneBase
File “C:\Users\brand\anaconda3\envs\SALIB\lib\site-packages\panel_init_.py”, line 1, in <module> from . import layout # noqa
File “C:\Users\brand\anaconda3\envs\SALIB\lib\site-packages\panel\layout_init_.py”, line 1, in <module> from .accordion import Accordion # noqa
File “C:\Users\brand\anaconda3\envs\SALIB\lib\site-packages\panel\layout\accordion.py”, line 5, in <module> from .base import NamedListPanel
File “C:\Users\brand\anaconda3\envs\SALIB\lib\site-packages\panel\layout\base.py”, line 13, in <module> from …reactive import Reactive
File “C:\Users\brand\anaconda3\envs\SALIB\lib\site-packages\panel\reactive.py”, line 26, in <module> from .config import config
File “C:\Users\brand\anaconda3\envs\SALIB\lib\site-packages\panel\config.py”, line 21, in <module> from .io.notebook import load_notebook
File “C:\Users\brand\anaconda3\envs\SALIB\lib\site-packages\panel\io_init_.py”, line 9, in <module> from …config import config
ImportError: cannot import name ‘config’ from partially initialized module ‘panel.config’ (most likely due to a circular import) (C:\Users\brand\anaconda3\envs\SALIB\lib\site-packages\panel\config.py)
Screenshots or screencasts of the bug in action
cannot import name ‘config’ from partially initialized module ‘panel.config’ (most likely due to a circular import)
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top GitHub Comments
from the Jinja2 3.1.0 releasenotes:
Seems that markup is not provided by jinja2 anymore and should be imported from markupsafe:
Panel 0.12.7 is now available on PyPI and from the conda pyviz and conda-forge channels.