We have extended our Early Bird Tickets for Inspire 2023! Discounted pricing goes until February 24th. Save your spot!

Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer and Intelligence Suite.
SOLVED

Jupyter notebook not loading in the Python tool

FilipR
11 - Bolide

After trying to install PyCaret via cmd (following the instruction I found here: https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Install-Python-packages-via-command...), I got some red error messages about incompatible libraries. After that the Python tool stopped working. If it is in Interactive mode, Jupyter notebook does not load and if I try to run the workflow, I will get an error like the below (which, from what I understand, is caused by no code being pushed from the tool to Python):

 

Error: Python (69): Traceback (most recent call last):  File "c:\users\filip.r\appdata\local\alteryx\bin\miniconda3\envs\jupytertool_venv\lib\runpy.py", line 194, in _run_module_as_main    return _run_code(code, main_globals, None,  File "c:\users\filip.r\appdata\local\alteryx\bin\miniconda3\envs\jupytertool_venv\lib\runpy.py", line 87, in _run_code    exec(code, run_globals)  File "C:\Users\Filip.R\AppData\Local\Alteryx\bin\Miniconda3\envs\JupyterTool_vEnv\Scripts\jupyter-nbconvert.EXE\__main__.py", line 4, in <module>  File "c:\users\filip.r\appdata\local\alteryx\bin\miniconda3\envs\jupytertool_venv\lib\site-packages\nbconvert\__init__.py", line 4, in <module>    from .exporters import *  File "c:\users\filip.r\appdata\local\alteryx\bin\miniconda3\envs\jupytertool_venv\lib\site-packages\nbconvert\exporters\__init__.py", line 3, in <module>    from .html import HTMLExporter  File "c:\users\filip.r\appdata\local\alteryx\bin\miniconda3\envs\jupytertool_venv\lib\site-packages\nbconvert\exporters\html.py", line 11, in <module>    from jinja2 import contextfilter  File "c:\users\filip.r\appdata\local\alteryx\bin\miniconda3\envs\jupytertool_venv\lib\site-packages\jinja2\__init__.py", line 33, in <module>    from jinja2.environment import Environment, Template  File "c:\users\filip.r\appdata\local\alteryx\bin\miniconda3\envs\jupytertool_venv\lib\site-packages\jinja2\environment.py", line 15, in <module>    from jinja2 import nodes  File "c:\users\filip.r\appdata\local\alteryx\bin\miniconda3\envs\jupytertool_venv\lib\site-packages\jinja2\nodes.py", line 19, in <module>    from jinja2.utils import Markup  File "c:\users\filip.r\appdata\local\alteryx\bin\miniconda3\envs\jupytertool_venv\lib\site-packages\jinja2\utils.py", line 647, in <module>    from markupsafe import Markup, escape, soft_unicodeImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Users\Filip.R\AppData\Roaming\Python\Python38\site-packages\markupsafe\__init__.py)

 

 

I am using Alteryx 2020.4.6.36807. Mainly the Non-Admin version, but I have the regular one also installed.

 

I tried reinstalling the Non-Admin version of Alteryx but it didn't help (even though it looked like it was reinstalling the Python packages as well). Reinstalling the regular version didn't help either.

 

2 REPLIES 2
PhilipMannering
15 - Aurora
15 - Aurora

I had a similar problem. Try,

C:\Users\filip.r\AppData\Local\Alteryx\bin\Miniconda3\Scripts\pip.exe uninstall markupsafe

in Powershell / Command Prompt.

FilipR
11 - Bolide

@PhilipMannering you're a lifesaver! It works like a charm. Thanks!

Labels