community
cancel
Showing results for 
Search instead for 
Did you mean: 

Dev Space

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

Looks aren't everything... But the latest Community refresh looks darn good!

Learn More

PyCharm configuration for AlteryxPythonSDK

Atom

I'm having trouble getting pycharm to recognize AlteryxPythonSDK.pyd and dll and therefore allowing type assist and compilation.

 

I've tried adding external paths to interpreter, putting these libraries in the minicondas dlls and lib\site-packages directories.

 

Any success out there?

Atom

Adding /bin and /bin/Plugins to the system path, in combination with adding both to the interpreter paths, seems to do it.

 

FWIW, lower level methods still do not resolve.

 

Alteryx
Alteryx

Which lower level methods?

Alteryx
Alteryx

What are all the environment paths that we need to have set up?  I've added /bin and /bin/Plugins, but that hasn't resolved my issue.  I still can't import AlteryxPythonSDK.

Regards,
Stephen Ruhl
Customer Support Engineer

Alteryx
Alteryx

Are you configuring PyCharm to use the python.exe that ships with Alteryx?

Alteryx
Alteryx

Yes, that way I know which packages I need to add.

Regards,
Stephen Ruhl
Customer Support Engineer

Alteryx
Alteryx

I think @WilliamT may be able to help you here.

Alteryx
Alteryx

I have not configured my community version of PyCharm to use Alteryx\bin\Miniconda\python.exe interpreter.  I will try that and configure the paths to the AlteryxPythonSDK and post a follow-up here.  It seems that you are pretty close, though.

Alteryx
Alteryx

To configure PyCharm to import AlteryxADK, I did the following:


1. Add a new Python interpreter 'Alteryx Python 3.6' and set to 'C:\Program Files\Alteryx\bin\Miniconda3\python.exe'

2. Add 'C:\Program Files\Alteryx\bin' and 'C:\Program Files\Alteryx\bin\Plugins' to Settings Interpreter Paths

int_paths.png
3. Add a new configuration and set Python interpreter to 'Alteryx Python 3.6' and set Working directory to 'C:\Program Files\Alteryx\bin'

work_path.png

Does the intellisense/autocomplete work in pycharm for The AlteryxPythonSDK?  Code runs but intellisense doesn't work.