python-visualization/branca

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

nanshanli opened this issue · 7 comments

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.

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

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?

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.

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

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

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

image

thank you - looking forward to the release!

that's good news, thanks for verifying that