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.

ImportError: cannot import name 'XArrayInterface'

See original GitHub issue

Unable to run import holoviews.operation.datashader as hd without getting the following error

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-56-420559647be7> in <module>()
----> 1 import holoviews.operation.datashader as hd
      2 import holoviews as hv
      3 hv.extension("bokeh")
      4 opts=dict()
      5 

~/programs/BlockSci/.env/lib/python3.5/site-packages/holoviews/operation/datashader.py in <module>()
     25 from ..core import (Operation, Element, Dimension, NdOverlay,
     26                     CompositeOverlay, Dataset, Overlay)
---> 27 from ..core.data import PandasInterface, XArrayInterface
     28 from ..core.sheetcoords import BoundingBox
     29 from ..core.util import get_param_values, basestring, datetime_types, dt_to_int

ImportError: cannot import name 'XArrayInterface'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Jul 31, 2018

I already want to split the operation/datashader module into a generic resampling module for the baseclasses and perhaps some simple downsampling operations and then keep just the datashader specific operations in the current module. In the process I can improve the imports to ensure we generate better error messages.

0reactions
philippjfrcommented, Oct 15, 2018

Much like @yanbek, this also seems to be solved without changing anything.

How bizarre, would be great to figure out what the actual cause was but I’m glad it’s now working for you. Thanks for following up in any case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: cannot import name 'XArrayInterface' · Issue #2904
Unable to run import holoviews.operation.datashader as hd without getting the following error ...
Read more >
What can I do about "ImportError: Cannot import name X" or ...
You have circular dependent imports. physics.py is imported from entity before class Ent is defined and physics tries to import entity that is...
Read more >
How to Fix ImportError: Cannot Import Name in Python - Rollbar
The Python ImportError: cannot import name error occurs when an imported class is not accessible or is in a circular dependency.
Read more >
How to Fix : “ImportError: Cannot import name X” in Python?
You can solve the “ ImportError : Cannot import name X” Error by resolving the circular dependencies. You can do that either by...
Read more >
How do I fix the ImportError: cannot import name 'delayed'?
I am using the LORAS package from pyloras for imbalanced learning, but it requires importing the delayed package. I used the pip.main() to ......
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