ALTERYX INSPIRE | Join us this May for for a multi-day virtual analytics + data science experience like no other! Register Now

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.

Installing Python Package on server

cyberpunk3369
6 - Meteoroid

Greetings!

 

I am trying to install a python package on our alteryx server using the below method:

 

installing python packages into Alteryx from command line

open command line as administrator

1) cd "C:\Program Files\Alteryx\bin\Miniconda3\Scripts"

2) activate JupyterTool_venv

3) cd "C:\Program Files\Alteryx\bin\Miniconda3\envs\JupyterTool_vEnv\Scripts"

4) pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org <package_name>

 

I don’t get any errors when the command prompt runs, but when I try to run a workflow with the installed package on the server I am getting the below error….is there something else I need to do to properly install the package?

 

  • --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-a1637f3f9be1> in <module> 1 from ayx import Alteryx 2 df = Alteryx.read("#1") ----> 3 from simple_salesforce import Salesforce ModuleNotFoundError: No module named 'simple_salesforce' (Tool Id: 2)
  • --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-6-8f500699bebc> in <module> 4 pswd = 'REDACTED' 5 sec_token = 'REDACTED' ----> 6 sf_con = Salesforce(username = username,\ 7 password = pswd, 8 security_token= sec_token, NameError: name 'Salesforce' is not defined (Tool Id: 2)

--------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-7-3d3e0b041c41> in <module> ----> 1 sf_con.bulk.Opportunity.update(list_records, batch_size=50, use_serial= True) NameError: name 'sf_con'

patrick_mcauliffe
14 - Magnetar
14 - Magnetar

Do you have the RunAs user set for your server?