This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I am currently working on a tool using the Python SDK. My tool necessitates the use of the win32 python API, specifically win32wnet. Upon running the tool, all the modules I installed using pip and the requirements.txt file installed correctly (xlrd, pandas). However, for win32wnet in Alteryx designer I receive:
ModuleNotFoundError: No module named 'win32wnet'
The strange part is, when I open the python shell from the tools virtual environment in the command prompt the win32wnet module imports correctly.
I have tried 3 different methods of installing the win32 package. I have used the requirements.txt file to install pywin32 and pypiwin32. I alsomanually installed the binary of the win32 api to the tools virtual python environment using the command prompt:
The issue is with how the path to python .egg library settings. When you run Python.exe directly it will grab a file easy-install.pth that will append .egg library paths to sys.path for you. Because the Python SDK uses an embedded Python interpreter, it does not directly setup any Python .egg library paths for you. As the author of the Python SDK tool, you will need to append any paths to Python .egg libraries within your .py file, as shown below.
I'm facing a similar issue. I updated the Alteryx Designer and when trying to run my old workflows, I got "Module Not found" error for the python packages that i have used in the workflow. I tried to reinstall the package in the new path for the pythontool_env. But the error is still there.
I also tried installing it from the Jupyter notebooks from the designer, towards the end i get Permission Denied error. Please provide the solution for this. I have Non.Admin version of the designer and everything was working fine with the previous version of the designer (2018.4.5).