Dev Space

Customize and extend the power of Alteryx with 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?

 

 

 

 

3 REPLIES 3
NeilR
Alteryx Alumni (Retired)

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