AttributeError: module '_sitebuiltins' has no attribute 'id'
See original GitHub issueHi everyone!
I am working with holoviews (on jupyterlab and using python3.6 inside a conda environment)
import holoviews as hv
hv.extension('bokeh')
data = [('one',8),('two', 10), ('three', 16), ('four', 8), ('five', 4), ('six', 1)]
bars = hv.Bars(data, hv.Dimension('Car occupants'), 'Count')
bars
and now it is raising the follow error:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-28-a479292d5c93> in <module>()
1 data = [('one',8),('two', 10), ('three', 16), ('four', 8), ('five', 4), ('six', 1)]
----> 2 bars = hv.Bars(data, hv.Dimension('Car occupants'), 'Count')
3 bars
/mnt/sda1/storage/miniconda/envs/xnd-notebooks/lib/python3.6/site-packages/holoviews/core/data/__init__.py in __init__(self, data, kdims, vdims, **kwargs)
231 datatype=kwargs.get('datatype'))
232 (data, self.interface, dims, extra_kws) = initialized
--> 233 super(Dataset, self).__init__(data, **dict(kwargs, **dict(dims, **extra_kws)))
234 self.interface.validate(self, validate_vdims)
235
/mnt/sda1/storage/miniconda/envs/xnd-notebooks/lib/python3.6/site-packages/holoviews/core/dimension.py in __init__(self, data, kdims, vdims, **params)
872 params['cdims'] = {d if isinstance(d, Dimension) else Dimension(d): val
873 for d, val in params['cdims'].items()}
--> 874 super(Dimensioned, self).__init__(data, **params)
875 self.ndims = len(self.kdims)
876 cdims = [(d.name, val) for d, val in self.cdims.items()]
/mnt/sda1/storage/miniconda/envs/xnd-notebooks/lib/python3.6/site-packages/holoviews/core/dimension.py in __init__(self, data, id, plot_id, **params)
582 self.data = data
583 self.id = id
--> 584 self._plot_id = plot_id or builtins.id(self)
585 if isinstance(params.get('label',None), tuple):
586 (alias, long_name) = params['label']
AttributeError: module '_sitebuiltins' has no attribute 'id'
it was working before I’ve updated my environment.
any idea what could be the problem? thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (8 by maintainers)
Top Results From Across the Web
AttributeError: 'module' object has no attribute - Stack Overflow
E.g. I had a module called commands which is also a Python library module. This proved to be difficult to track down as...
Read more >AttributeError: '_unknown' object has no attribute 'id'-- | Odoo
When I install the module the first time on clean database, i can create a record, but next times or if i uninstall...
Read more >Python SPSS - 'module' object has no attribute 'submit' - IBM
Hello, I'm new here but I've been following the threads. When executing the following Python/spss code, I<br> get an Attribute Error - I...
Read more >Biopython SeqIO: AttributeError: 'str' object has no attribute 'id'
I am trying to filter out sequences using SeqIO but I am getting this error. Traceback (most recent call last): File "paralog_warning_filter.py", line ......
Read more >AttributeError: 'NoneType' object has no attribute 'id' - Trac Hacks
Thanks for the information. compat is a new module added lately. It shouldn't have issues to find it. The error suggests, that your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for getting back to us @xmnlab. Glad it’s working now.
Sorry messed up that link (fixed).