Forums

Getting error on website after restarting it having been away for a month: "The '.style' accessor requires jinja2")"

Hi, I was away and my site got deactivated. I've reactivated it and now getting an error I didn't have before. I'm trying to use a pandas styler object and when I try and write it I get the above error:

styler = df.style.highlight_between(color='#32de84',left=0, right=int(table)) \
raise AttributeError("The '.style' accessor requires jinja2")
AttributeError: The '.style' accessor requires jinja2

This worked fine before it got shut down. I haven't changed anything since being away I've reactivated it and reloaded the site. the conda virtual env remains unchanged

Any ideas what could be going wrong?

Thanks

It looks like some missing dependency -- make sure you run the web app in the same environment you used to run it when it worked.