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.

installation issue

See original GitHub issue

Dear all ,

I have seen very strange behaviour after installing hvplot. I have installed them using conda install -c pyviz holoviews bokeh hvplot

ALL software version info

python3.10 ,Ubuntu 22 ,hvplot=8.1

Description of expected behavior and the observed behavior

import hvplot.xarray

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In [1], line 12
     10 import ipyleaflet
     11 import matplotlib.pyplot as plt
---> 12 import hvplot.xarray
     13 from datashader.transfer_functions import shade, stack
     14 from datashader.colors import Elevation

File /raid-manaslu/maref/Software/anaconda3/envs/workshop-grenoble-2022-10/lib/python3.10/site-packages/hvplot/__init__.py:70
     66 import holoviews as _hv
     68 from holoviews import Store, render  # noqa
---> 70 from .converter import HoloViewsConverter
     71 from .interactive import Interactive
     72 from .ui import explorer  # noqa

File /raid-manaslu/maref/Software/anaconda3/envs/workshop-grenoble-2022-10/lib/python3.10/site-packages/hvplot/converter.py:82
     77         else:
     78             raise Exception('PeriodicCallback not running.')
---> 82 class HoloViewsConverter:
     83     """
     84     Generic options
     85     ---------------
   (...)
    235         the default is 'Wikipedia'.
    236     """
    238     _gridded_types = [
    239         'image', 'contour', 'contourf', 'quadmesh', 'rgb', 'points',
    240         'dataset'
    241     ]

File /raid-manaslu/maref/Software/anaconda3/envs/workshop-grenoble-2022-10/lib/python3.10/site-packages/hvplot/converter.py:360, in HoloViewsConverter()
    343 _legend_positions = (
    344     "top_right", "top_left", "bottom_left", "bottom_right",
    345     "right", "left", "top", "bottom"
    346 )
    348 _default_plot_opts = {
    349     'logx': False,
    350     'logy': False,
   (...)
    355     'shared_axes': True
    356 }
    358 _default_cmaps = {
    359     'linear': 'kbc_r',
--> 360     'categorical': cc.palette['glasbey_category10'],
    361     'cyclic': 'colorwheel',
    362     'diverging': 'coolwarm'
    363 }
    365 def __init__(
    366     self, data, x, y, kind=None, by=None, use_index=True,
    367     group_label=None, value_label='value', backlog=1000,
   (...)
    382 ):
    383     # Process data and related options
    384     self._redim = fields

AttributeError: module 'colorcet' has no attribute 'palette'

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
maximltcommented, Nov 29, 2022

I’ve tried reproducing this issue and could not. I agree that it looks like a broken installation and that the solution should be to install it in a new and clean environment. If the issue occurs again in that new environment, please report it here again, indicating what commands you ran to create the environment and install hvPlot.

0reactions
jbednarcommented, Nov 17, 2022

To me it seems like this is a broken installation of colorcet somehow; there should definitely be a cc.palette object. I’d try installing in a new, clean environment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, or upgrade a program on a Windows-based computer by using Windows Installer....
Read more >
Fix problems installing Chrome - Google Chrome Help
Fix problems installing Chrome. If you get an error message when you try to download and install Google Chrome, try these fixes.
Read more >
12 irritating Windows 10 installation issues, and how to fix them
Having trouble installing and setting up Windows 10? You aren't alone. Here are a dozen-plus of the most common problems, along with a...
Read more >
How to Fix the Most Common Windows 10 Installation Problems
Here's your guide to fixing those Windows 10 installation problems that could pop up when trying to upgrade or install from scratch.
Read more >
Possible Causes of an Installation Problem
A problem installing Directory Server Enterprise Edition could be caused by one of the following: Incorrect patches installed. Installing a patch that does...
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