holoviews icon indicating copy to clipboard operation
holoviews copied to clipboard

Deploying_Bokeh_Apps.ipynb example test failing on Windows

Open maximlt opened this issue 2 years ago • 0 comments

The Deploying_Bokeh_Apps notebook started to fail on Windows running this cell:

server = pn.panel(dmap).show()
With this ugly traceback:


---------------------------------------------------------------------------

AssertionError                            Traceback (most recent call last)

Cell In[1], line 1

----> 1 server = pn.panel(dmap).show()



File C:\Miniconda3\envs\test-environment\lib\site-packages\panel\viewable.py:444, in ServableMixin.show(self, title, port, address, websocket_origin, threaded, verbose, open, location, **kwargs)

    406 def show(

    407     self, title: Optional[str] = None, port: int = 0, address: Optional[str] = None,

    408     websocket_origin: Optional[str] = None, threaded: bool = False, verbose: bool = True,

    409     open: bool = True, location: bool | 'Location' = True, **kwargs

    410 ) -> 'StoppableThread' | 'Server':

    411     """

    412     Starts a Bokeh server and displays the Viewable in a new tab.

    413 

   (...)

    442       was launched on (if threaded=True)

    443     """

--> 444     return serve(

    445         self, port=port, address=address, websocket_origin=websocket_origin,

    446         show=open, start=True, title=title, verbose=verbose,

    447         location=location, threaded=threaded, **kwargs

    448     )



File C:\Miniconda3\envs\test-environment\lib\site-packages\panel\io\server.py:956, in serve(panels, port, address, websocket_origin, loop, show, start, title, verbose, location, threaded, admin, **kwargs)

    954     server.start()

    955 else:

--> 956     return get_server(panels, **kwargs)

    957 return server



File C:\Miniconda3\envs\test-environment\lib\site-packages\panel\io\server.py:1290, in get_server(panel, port, address, websocket_origin, loop, show, start, title, verbose, location, admin, static_dirs, basic_auth, oauth_provider, oauth_key, oauth_secret, oauth_redirect_uri, oauth_extra_params, oauth_error_template, cookie_secret, oauth_encryption_key, oauth_jwt_user, oauth_refresh_tokens, oauth_guest_endpoints, oauth_optional, login_endpoint, logout_endpoint, login_template, logout_template, session_history, liveness, **kwargs)

   1288 server.start()

   1289 try:

-> 1290     server.io_loop.start()

   1291 except RuntimeError:

   1292     pass



File C:\Miniconda3\envs\test-environment\lib\site-packages\tornado\platform\asyncio.py:195, in BaseAsyncIOLoop.start(self)

    194 def start(self) -> None:

--> 195     self.asyncio_loop.run_forever()



File C:\Miniconda3\envs\test-environment\lib\asyncio\windows_events.py:319, in ProactorEventLoop.run_forever(self)

    317 def run_forever(self):

    318     try:

--> 319         assert self._self_reading_future is None

    320         self.call_soon(self._loop_self_reading)

    321         super().run_forever()



AssertionError: 

I'm going to skip this file in the test suite as I am pretty sure this issue doesn't come from HoloViews (Panel? Bokeh? nbval? Ipykernel?).

maximlt avatar Jan 15 '24 10:01 maximlt