ALTERYX INSPIRE | Join us this May for for a multi-day virtual analytics + data science experience like no other! Register Now
2 Day Countdown - The Alteryx Community will be temporarily unavailable for a few hours due to scheduled maintenance starting on Thursday, April 22nd at 5pm MDT. Please plan accordingly.

Dev Space

Customize & extend the power of Alteryx. SDKs, APIs, custom tools, and more!
SOLVED

Python SDK importing custom modules

machazthegamer
7 - Meteor

I have an custom tool whose Engine.py file depends on several other python files. Just to avoid clutter in the main one.

I have placed the other modules in same directory as Engine.py but when running the tool in alteryx I get the import Error.

How do I resolve this?

 

 

 

 

NeilR
Alteryx Community Team
Alteryx Community Team

Check out the code behind the latest Salesforce Input tool, available for download here. It accomplishes what you're trying to do.

machazthegamer
7 - Meteor

So it was all about creating a virtual environment. It worked perfectly thanks. 

H3MINGW4Y
5 - Atom

Hello Guys,

 

Could you elaborate a bit how the Salesforce tool works exactly when it comes to importing custom modules?

 

Thanks