Alteryx Designer Desktop Discussions

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

how do i run a .py file as a package in alteryx?

malabika_guha_wf
6 - Meteoroid
how do i run a .py file as a package in alteryx? Like for python we generally keep the .py file into the same folder to run as a library now wanted to check what will be the process for alteryx python tool?
5 REPLIES 5
DavidSkaife
13 - Pulsar

Hi @malabika_guha_wf 

 

Does this help?

 

DavidSkaife_0-1671705590434.png

 

malabika_guha_wf
6 - Meteoroid

I tried this but doesn't work for me. I have imported the .py file using the above steps. After that I was trying to import that as "import scriptfile". but it is giving me error 

No module named 'scriptfile'

 

KSowers
Alteryx
Alteryx

Try and place the package in the following folder path:

C:\Program Files\Alteryx\bin\Miniconda3\envs\DesignerBaseTools_vEnv\Lib\site-packages

This should allow your import to hopefully find the module. Let me know if this doesn't work. If this solution works for you, please mark this post as a solution! Thank You!

malabika_guha_wf
6 - Meteoroid

thank you so much it is working now 

nyck3333
8 - Asteroid

can you link to the source document?  I dont' have an Alteryx menu.

Labels