AutoViML / AutoViz

Automatically Visualize any dataset, any size with a single line of code. Created by Ram Seshadri. Collaborators Welcome. Permission Granted upon Request.
Apache License 2.0
1.7k stars 196 forks source link

ImportError: cannot import name 'Markup' from 'jinja2' #84

Closed leftbyte closed 1 year ago

leftbyte commented 1 year ago

On Mac OS using python (3.10.9) and autoviz version 0.1.58 I get this import error when importing 'autoviz':

File ~/mambaforge/lib/python3.10/site-packages/panel/io/resources.py:24 22 from bokeh.resources import Resources as BkResources 23 from bokeh.settings import settings as _settings ---> 24 from jinja2 import Environment, Markup, FileSystemLoader 26 from ..util import url_path 27 from .state import state

ImportError: cannot import name 'Markup' from 'jinja2' (~/mambaforge/lib/python3.10/site-packages/jinja2/init.py)

It looks like autoviz imported these module/versions: jinja2='3.1.2' panel='0.12.6'

I tried upgrading the panel module but autoviz requires this version:

autoviz 0.1.58 requires panel~=0.12.6, but you have panel 0.14.4 which is incompatible.

AutoViML commented 1 year ago

Hi @leftbyte : These are adjustments you need to make with every python library. I suggest you Google these kind of issues or on stack overflow. Thanks for trying out AutoViz 👍 Auto Vimal

AutoViML commented 1 year ago

AutoViz has multiple libraries that conflict with each other. Try installing autoviz without dependencies like this and then add biokeh installations.pip install autoviz --no-deps Thanks for trying out autovizAuto Vimal On Friday, March 24, 2023 at 06:43:02 PM EDT, Dan Phung @.***> wrote:

On Mac OS using python (3.10.9) and autoviz version 0.1.58 I get this import error when importing 'autoviz':

File ~/mambaforge/lib/python3.10/site-packages/panel/io/resources.py:24 22 from bokeh.resources import Resources as BkResources 23 from bokeh.settings import settings as _settings ---> 24 from jinja2 import Environment, Markup, FileSystemLoader 26 from ..util import url_path 27 from .state import state

ImportError: cannot import name 'Markup' from 'jinja2' (~/mambaforge/lib/python3.10/site-packages/jinja2/init.py)

It looks like autoviz imported these module/versions: jinja2='3.1.2' panel='0.12.6'

I tried upgrading the panel module but autoviz requires this version:

autoviz 0.1.58 requires panel~=0.12.6, but you have panel 0.14.4 which is incompatible.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

leftbyte commented 1 year ago

AutoViz has multiple libraries that conflict with each other. Try installing autoviz without dependencies.

I initially installed autoviz using conda. I later tried installing autoviz via pip with no dependencies and going through the dependencies in the requirements.txt one by one, but I ran into conflicts there as well. I currently don't have time to dig into each one of these conflicts but will try autoviz later on if there's an update.