Open aloctavodia opened 1 year ago
Fascinating, this all looks like third-party errors. Can you share your environment file?
I created a fresh environment without manually specifying any particular version. This is the env file generated from that environment. environment.zip
I create a fresh environment and I can´t run the examples I get the following message
AttributeError Traceback (most recent call last) Cell In[1], line 2 1 import arviz as az ----> 2 import panel as pn 4 from arviz_dashboard import trace 7 pn.extension()
File ~/anaconda3/envs/dashboard/lib/python3.11/site-packages/panel/init.py:48 1 """ 2 Panel is a high level app and dashboarding framework 3 ==================================================== (...) 46 https://panel.holoviz.org/getting_started/index.html 47 """ ---> 48 from . import layout # noqa 49 from . import links # noqa 50 from . import pane # noqa
File ~/anaconda3/envs/dashboard/lib/python3.11/site-packages/panel/layout/init.py:31 1 """ 2 Layout 3 ====== (...) 29 https://panel.holoviz.org/getting_started/index.html 30 """ ---> 31 from .accordion import Accordion # noqa 32 from .base import ( # noqa 33 Column, ListLike, ListPanel, Panel, Row, WidgetBox, 34 ) 35 from .card import Card # noqa
File ~/anaconda3/envs/dashboard/lib/python3.11/site-packages/panel/layout/accordion.py:9 5 import param 7 from bokeh.models import Column as BkColumn, CustomJS ----> 9 from .base import NamedListPanel 10 from .card import Card 12 if TYPE_CHECKING:
File ~/anaconda3/envs/dashboard/lib/python3.11/site-packages/panel/layout/base.py:17 13 import param 15 from bokeh.models import Column as BkColumn, Row as BkRow ---> 17 from ..io.model import hold 18 from ..io.state import state 19 from ..reactive import Reactive
File ~/anaconda3/envs/dashboard/lib/python3.11/site-packages/panel/io/init.py:13 11 from .logging import panel_logger # noqa 12 from .model import add_to_doc, diff, remove_root # noqa ---> 13 from .notebook import ( # noqa 14 _jupyter_server_extension_paths, block_comm, ipywidget, load_notebook, 15 push, push_notebook, 16 ) 17 from .profile import profile # noqa 18 from .resources import Resources # noqa
File ~/anaconda3/envs/dashboard/lib/python3.11/site-packages/panel/io/notebook.py:39 37 from .embed import embed_state 38 from .model import add_to_doc, diff ---> 39 from .resources import ( 40 PANEL_DIR, Bundle, Resources, _env, bundle_resources, 41 ) 42 from .state import state 44 if TYPE_CHECKING:
File ~/anaconda3/envs/dashboard/lib/python3.11/site-packages/panel/io/resources.py:30 27 from jinja2.loaders import FileSystemLoader 28 from markupsafe import Markup ---> 30 from ..config import config 31 from ..util import isurl, url_path 32 from .state import state
File ~/anaconda3/envs/dashboard/lib/python3.11/site-packages/panel/config.py:486 483 else: 484 _params = _config.param.params() --> 486 config = _config(**{k: None if p.allow_None else getattr(_config, k) 487 for k, p in _params.items() if k != 'name'}) 490 class panel_extension(_pyviz_extension): 491 """ 492 Initializes and configures Panel. You should always run
pn.extension
. 493 This willhttps://stackoverflow.com/questions/71355821/pydantic-attributeerror-config-object-has-no-attribute (...) 514 will be using theFastListTemplate
. 515 """File ~/anaconda3/envs/dashboard/lib/python3.11/site-packages/panel/config.py:261, in _config.init(self, params) 260 def init(self, params): --> 261 super().init(**params) 262 self._validating = False 263 for p in self.param:
File ~/anaconda3/envs/dashboard/lib/python3.11/site-packages/param/parameterized.py:4139, in Parameterized.init(self, **params) 4133 global object_count 4135 # Setting a Parameter value in an init block before calling 4136 # Parameterized.init (via super() generally) already sets the 4137 # _InstancePrivate namespace over the _ClassPrivate namespace 4138 # (see Parameter.set) so we shouldn't override it here. -> 4139 if not isinstance(self._paramprivate, _InstancePrivate): 4140 self._paramprivate = _InstancePrivate( 4141 explicit_no_refs=type(self)._param__private.explicit_no_refs 4142 ) 4144 # Skip generating a custom instance name when a class in the hierarchy 4145 # has overriden the default of the
name
Parameter.File ~/anaconda3/envs/dashboard/lib/python3.11/site-packages/panel/config.py:348, in _config.getattribute(self, attr) 341 """ 342 Ensures that configuration parameters that are defined per 343 session are stored in a per-session dictionary. This is to 344 ensure that even on first access mutable parameters do not 345 end up being modified. 346 """ 347 from .io.state import state --> 348 init = super().getattribute('initialized') 349 global_params = super().getattribute('_globals') 350 if init and not attr.startswith('__'):
AttributeError: '_config' object has no attribute 'initialized'