Trying to set up a script to add a users to an AD group, got the script working on my computer and when I try to add it into splunk in the script folder the imports aren't working.
file test.py line 21, in <module>import pandas as pdImportError: No module named pandasKeep getting this error and others for different modules but the modules are installed. same with LDAP3
Requirement already satisfied: pandas in /usr/local/lib64/python3.6/site-packagesRequirement already satisfied: numpy>=1.13.3 in /usr/local/lib64/python3.6/site-packages (from pandas)
Requirement already satisfied: ldap3 in /usr/local/lib/python3.6/site-packagesRequirement already satisfied: pyasn1>=0.1.8 in /usr/local/lib/python3.6/site-packages (from ldap3)
Got it to work with pip3 install --target=$SPLUNK_HOME/lib/python3.7/site-packages ldap3
View solution in original post