All Apps and Add-ons

ImportError: No module named splunk.Intersplunk - In ThreatConnect App.


When I try to run the python script have been getting the below error. Please advice. Also, trying to configure the threatconnect app but not luck if you have any steps please share that one as well. Thanks.

[spladmin@Splunklab bin]$ ./
Traceback (most recent call last):
  File "./", line 11, in 
    import splunk.Intersplunk
ImportError: No module named splunk.Intersplunk

[root@Splunklab ~]# whereis python
python: /usr/bin/python /usr/bin/python2.7 /usr/lib/python2.7 /usr/lib64/python2.7 /etc/python /usr/include/python2.7 /usr/share/man/man1/python.1.gz

[root@Splunklab ~]# yum list python
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
Installed Packages
python.x86_64                                                                            2.7.5-68.el7                                                                             @rhel-7-server-rpms
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager
0 Karma


I have not dealt with the ThreatConnect app, but their User Guide including setup instructions is available through their site:

I suspect that the python script in question designed to be launched by Splunk / using the built in python that is shipped with Splunk, and is not supposed to be launched using your system python installation. I reach that conclusion through two older answers posts:

First this answer discussing how launching a script directly from the command line is not the same as launching it through Splunk :

And then this answer about invoking the python interpreter through Splunk to find out about splunk.Intersplunk from a Splunk installation:

.conf21 Now Fully Virtual!
Register for FREE Today!

We've made .conf21 totally virtual and totally FREE! Our completely online experience will run from 10/19 through 10/20 with some additional events, too!