- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I believe that my Splunk's Python has some issue during initialization. This happens whenever I try to run any of many searches that includes Custom Search Commands. Python scripts in CSCs are ok as they run without issue on other computers.
Error in 'script': Getinfo probe failed for external search command 'detailmodel'
^
raise CodecRegistryError,\
File "C:\Program Files\Splunk\Python-2.7\Lib\encodings\__init__.py", line 123
Current thread 0x000037c0 (most recent call first):
Fatal Python error: initfsencoding: unable to load the file system codec
SyntaxError: invalid syntax
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Issue was caused by installing Anaconda which had its own Python and somehow messed up configurations of Splunk's Python. Uninstalling Anaconda and rewriting env variables didn't helped.
At the end, I just decided to reinstall Splunk while making sure I have removed all other Python installations before doing so and it made Splunk's Python work again.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Issue was caused by installing Anaconda which had its own Python and somehow messed up configurations of Splunk's Python. Uninstalling Anaconda and rewriting env variables didn't helped.
At the end, I just decided to reinstall Splunk while making sure I have removed all other Python installations before doing so and it made Splunk's Python work again.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please provide your way or answer below Question.
I am seeking it.
https://answers.splunk.com/answers/816567/splunk-python-with-pandas.html
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @seva98, did this happen after an upgrade or something or has this always been happening ?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @DavidHourani the issue was with Anaconda's Python. It was extra Python that somehow reconfigured Splunk's Python and Splunk had issue recognizing correct Python even after uninstall of Anaconda and setting env variables. Reinstalling Splunk solved the issue.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

ah that's great, please answer your post and accept your answer for future reference ! 🙂
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@DavidHourani Will do 🙂
