Alteryx Designer Desktop Discussions

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

python module import error

aeolus187
8 - Asteroid

I have a python code snippet used in the workflow, was running successfully, but recently I upgrade my python environment to 3.9, and there was error thrown when running the same workflow, how can i solve it?

 

Error: Reservoir (58): Record #1: Tool #12: Traceback (most recent call last):
File "C:\Users\e12345\AppData\Local\Temp\Engine_30832_dec1aaf8086346fd8eb1527ff5f30191_\78ec223378199cecd84ed57a2641e27e\workbook.py", line 9, in <module>
from ayx import Alteryx
File "C:\Users\e12345\AppData\Local\Alteryx\bin\Miniconda3\envs\DesignerBaseTools_venv\lib\site-packages\ayx\Alteryx.py", line 17, in <module>
from ayx.export import (
File "C:\Users\e12345\AppData\Local\Alteryx\bin\Miniconda3\envs\DesignerBaseTools_venv\lib\site-packages\ayx\export.py", line 17, in <module>
from ayx.CachedData import CachedData as __CachedData__
File "C:\Users\e12345\AppData\Local\Alteryx\bin\Miniconda3\envs\DesignerBaseTools_venv\lib\site-packages\ayx\CachedData.py", line 18, in <module>
import pandas as pd
File "C:\Users\e12345\AppData\Roaming\Python\Python38\site-packages\pandas\__init__.py", line 47, in <module>
raise ImportError(
ImportError: Unable to import required dependencies:
numpy: Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python interpreter from there.

3 REPLIES 3
dwstada
11 - Bolide

version 2024.1 onwards uses Python 3.10, earlier versions use 3.8 - so probably downgrading to 3.8 could be your solution

aeolus187
8 - Asteroid

@dwstada 

 

you mean I need to install python 3.8 in my local?

dwstada
11 - Bolide

it is just a guess, but since it worked before on 3.8 and Alteryx default before 2024.1 was 3.8, this can likely fix it

Labels