SOLVED
how do i run a .py file as a package in alteryx?
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
malabika_guha_wf
6 - Meteoroid
‎12-22-2022
02:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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?
Solved! Go to Solution.
Labels:
- Labels:
- Python
5 REPLIES 5
DavidSkaife
14 - Magnetar
‎12-22-2022
02:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎12-22-2022
02:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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'
Alteryx
‎12-22-2022
09:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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!
‎12-22-2022
10:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
thank you so much it is working now
nyck3333
8 - Asteroid
‎06-11-2023
01:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
can you link to the source document? I dont' have an Alteryx menu.
