wjm41 / molplotly

add-on to plotly which show molecule images on mouseover!
Apache License 2.0
237 stars 25 forks source link

Erro with dash 2.3.0 #14

Closed remseven closed 2 years ago

remseven commented 2 years ago

Hello,

First of all thanks for this great package.

Today, I got the following error while importing molplotly whereas I previously had no issue: ImportError: cannot import name 'Input' from 'dash'

As my version of dash was a bit old 1.6 I believe, I upgraded it to version 2.3.0 via pip. The import error disappeared but I had another error when trying to run the server "app.run_server(mode='inline', port=8003, height=800)": AttributeError: ('Read-only: can only be set in the Dash constructor or during init_app()', 'requests_pathname_prefix')

I have managed to get around by downgrading dash to version 2.0.0 as recommended here https://stackoverflow.com/questions/70908709/jupyterdash-app-run-server-error-using-jupyter-notebook, but there may be something to look into...

Thanks again

wjm41 commented 2 years ago

Thanks for flagging the issue! I will update the package and make sure dash is kept at v2.0.0 :)

wjm41 commented 2 years ago

I've updated the dependencies in v1.1.2 should it should work now - could you try updating the package with pip install --upgrade molplotly?

remseven commented 2 years ago

Apologies for the delay, but I finally got a chance to directly test a new installation of your package and it works fine. Dash was kept to v2.0.0.

wjm41 commented 2 years ago

Great to hear!