python-visualization / branca

This library is a spinoff from folium, that would host the non-map-specific features.
https://python-visualization.github.io/branca/
MIT License
111 stars 63 forks source link

Uncaught TypeError: Cannot read property 'open' of null on branca==0.4 and above #97

Closed nanshanli closed 3 years ago

nanshanli commented 3 years ago

Hi,

When using the following versions (branca==0.4, folium==0.12.1),

import folium 
folium.Map()

gives: Uncaught TypeError: Cannot read property 'open' of null

Downgrading to branca==0.3.1, folium==0.12.1 solves the problem, and the base map is rendered correctly.

Can anyone else replicate this error or know what might be the cause? I am working within a databricks notebook, on python 3.8.8.

Conengmo commented 3 years ago

Can you share the full stacktrace? At what line in what file does the error occur?

nanshanli commented 3 years ago

Unfortunately no stacktrace is produced from this error within databricks. I have also tried to look within the spark driver logs but nothing was logged at all.

image

Is there anything I can execute to test out what might be wrong?

Conengmo commented 3 years ago

I don't know about databricks, but given that folium is not broken in general I suspect this has something to do with your setup. Sorry that's not really helpful.

nanshanli commented 3 years ago

No worries - I thought it might be a problem with branca since it works when I downgrade branca to 0.3. It still works with the workaround so I am not too bothered by it.

image

Conengmo commented 3 years ago

Could you try installing branca from our master branch? We made a change recently that might help.

nanshanli commented 3 years ago

oh that's great! yes, it does work with the master branch build

image

thank you - looking forward to the release!

Conengmo commented 3 years ago

that's good news, thanks for verifying that