question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't Import Holoviews

See original GitHub issue

ALL 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)

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
wimikocommented, Mar 25, 2022

from the Jinja2 3.1.0 releasenotes:

Markup and escape should be imported from MarkupSafe.

Seems that markup is not provided by jinja2 anymore and should be imported from markupsafe:

from markupsafe import Markup

0reactions
philippjfrcommented, Mar 28, 2022

Panel 0.12.7 is now available on PyPI and from the conda pyviz and conda-forge channels.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing and Configuring HoloViews
The first option installs just the bare library and the NumPy and Param libraries, which is all you need on your system to...
Read more >
Error: HoloViews bokeh backend could not be imported #2012
Hi, I just tried to run holoviews with bokeh backend and got the same error, but different import issue. WARNING:root:notebook_extension: ...
Read more >
Can't import holoviews as hv - Stack Overflow
I am trying to run holoviews, but I keep getting an error. Here is my test code. import holoviews as hv hv.extension("bokeh").
Read more >
Can't import hvplot/holoviews/panel in Jupyter lab, but works ...
Hi, I seem to have fixed it. I can't install the pyviz extension as suggeste, but in trying to do so I added...
Read more >
pyviz/pyviz - Gitter
I upgraded Bokeh version 1.2.0 with Holoviews 1.12.3 a new error: ImportError: cannot import name 'GridBox' from 'bokeh.models.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found