Autopsy 4.14 on Win 10 x64 Enterprise: Failed to load python modules

Hello everyone,

Unfortunately I am facing an issue which I so far was not able to solve. There are already some threads to this issue, however they did not really help fixing the issue.

Whenever I want to add a new data source, the error “Failed to load python modules, See log for more details” appears. The log states the following issue:

2020-04-22 15:31:20.868 org.sleuthkit.autopsy.python.JythonModuleLoader getInterfaceImplementations
SEVERE: Failed to load python Intepreter. Cannot load python modules
Traceback (most recent call last):
File “C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\site.py”, line 585, in
File “C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\site.py”, line 567, in main
File “C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\site.py”, line 300, in addusersitepackages
File “C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\site.py”, line 289, in getusersitepackages
File “C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py”, line 416, in get_path
File “C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py”, line 407, in get_paths
File “C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py”, line 180, in _expand_vars
File “C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py”, line 154, in _subst_vars
File “C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py”, line 154, in _subst_vars
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xe9’ in position 13: ordinal not in range(128)

org.python.core.codecs.strict_errors(codecs.java:208)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.python.core.JavaFunc.__call__(Py.java:2426)
org.python.core.PyObject.__call__(PyObject.java:431)
org.python.core.codecs.encoding_error(codecs.java:1538)
org.python.core.codecs.PyUnicode_EncodeIntLimited(codecs.java:1211)
org.python.core.codecs.PyUnicode_EncodeASCII(codecs.java:1170)
org.python.core.codecs.encode(codecs.java:165)
org.python.core.PyString.encode(PyString.java:3896)
org.python.core.PyString.encode(PyString.java:3888)
org.python.core.PyUnicode.unicode___str__(PyUnicode.java:667)
org.python.core.PyUnicode.__str__(PyUnicode.java:662)
org.python.core.PyString.buildFormattedString(PyString.java:4006)
org.python.core.PyString.str_format(PyString.java:3941)
org.python.core.PyString$str_format_exposer.__call__(Unknown Source)
org.python.core.PyObject._callextra(PyObject.java:601)
sysconfig$py._subst_vars$3(C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py:159)
sysconfig$py.call_function(C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py)
org.python.core.PyTableCode.call(PyTableCode.java:167)
org.python.core.PyBaseCode.call(PyBaseCode.java:153)
org.python.core.PyFunction.__call__(PyFunction.java:423)
sysconfig$py._expand_vars$5(C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py:181)
sysconfig$py.call_function(C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py)
org.python.core.PyTableCode.call(PyTableCode.java:167)
org.python.core.PyBaseCode.call(PyBaseCode.java:153)
org.python.core.PyFunction.__call__(PyFunction.java:423)
sysconfig$py.get_paths$17(C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py:409)
sysconfig$py.call_function(C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py)
org.python.core.PyTableCode.call(PyTableCode.java:167)
org.python.core.PyBaseCode.call(PyBaseCode.java:170)
org.python.core.PyFunction.__call__(PyFunction.java:434)
sysconfig$py.get_path$18(C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py:416)
sysconfig$py.call_function(C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py)
org.python.core.PyTableCode.call(PyTableCode.java:167)
org.python.core.PyBaseCode.call(PyBaseCode.java:307)
org.python.core.PyBaseCode.call(PyBaseCode.java:145)
org.python.core.PyFunction.__call__(PyFunction.java:423)
site$py.getusersitepackages$10(C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\site.py:290)
site$py.call_function(C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\site.py)
org.python.core.PyTableCode.call(PyTableCode.java:167)
org.python.core.PyBaseCode.call(PyBaseCode.java:124)
org.python.core.PyFunction.__call__(PyFunction.java:403)
site$py.addusersitepackages$11(C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\site.py:304)
site$py.call_function(C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\site.py)
org.python.core.PyTableCode.call(PyTableCode.java:167)
org.python.core.PyBaseCode.call(PyBaseCode.java:138)
org.python.core.PyFunction.__call__(PyFunction.java:413)
site$py.main$34(C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\site.py:583)
site$py.call_function(C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\site.py)
org.python.core.PyTableCode.call(PyTableCode.java:167)
org.python.core.PyBaseCode.call(PyBaseCode.java:124)
org.python.core.PyFunction.__call__(PyFunction.java:403)
site$py.f$0(C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\site.py:637)
site$py.call_function(C:\Program Files\Autopsy\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\site.py)
org.python.core.PyTableCode.call(PyTableCode.java:167)
org.python.core.PyCode.call(PyCode.java:18)
org.python.core.imp.createFromCode(imp.java:436)
org.python.core.util.importer.importer_load_module(importer.java:109)
org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:163)
org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown Source)
org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:46)
org.python.core.imp.loadFromLoader(imp.java:587)
org.python.core.imp.find_module(imp.java:537)
org.python.core.imp.import_next(imp.java:840)
org.python.core.imp.import_first(imp.java:861)
org.python.core.imp.load(imp.java:716)
org.python.core.Py.importSiteIfSelected(Py.java:1558)
org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:116)
org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:94)
org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:71)
org.sleuthkit.autopsy.python.JythonModuleLoader.getInterfaceImplementations(JythonModuleLoader.java:80)
org.sleuthkit.autopsy.python.JythonModuleLoader.getIngestModuleFactories(JythonModuleLoader.java:60)
org.sleuthkit.autopsy.ingest.IngestModuleFactoryLoader.getIngestModuleFactories(IngestModuleFactoryLoader.java:129)
org.sleuthkit.autopsy.ingest.IngestJobSettings.load(IngestJobSettings.java:316)
org.sleuthkit.autopsy.ingest.IngestJobSettings.<init>(IngestJobSettings.java:119)
org.sleuthkit.autopsy.ingest.IngestJobSettings.<init>(IngestJobSettings.java:94)
org.sleuthkit.autopsy.casemodule.AddImageWizardIngestConfigPanel.<init>(AddImageWizardIngestConfigPanel.java:58)
org.sleuthkit.autopsy.casemodule.AddImageWizardIterator.getPanels(AddImageWizardIterator.java:62)
org.sleuthkit.autopsy.casemodule.AddImageWizardIterator.current(AddImageWizardIterator.java:132)
org.sleuthkit.autopsy.casemodule.AddImageWizardIterator.current(AddImageWizardIterator.java:37)
org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:844)
org.openide.WizardDescriptor.updateState(WizardDescriptor.java:822)
org.openide.WizardDescriptor._updateState(WizardDescriptor.java:800)
org.openide.WizardDescriptor.initialize(WizardDescriptor.java:475)
org.openide.NotifyDescriptor.getterCalled(NotifyDescriptor.java:304)
org.openide.DialogDescriptor.isModal(DialogDescriptor.java:322)
org.netbeans.core.windows.services.NbDialog.<init>(NbDialog.java:67)
org.netbeans.core.windows.services.DialogDisplayerImpl$1.run(DialogDisplayerImpl.java:158)
org.netbeans.core.windows.services.DialogDisplayerImpl$1.run(DialogDisplayerImpl.java:119)
org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEventAccess(NbMutexEventProvider.java:138)
org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:98)
org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:94)
org.openide.util.Mutex.readAccess(Mutex.java:218)
org.netbeans.core.windows.services.DialogDisplayerImpl.createDialog(DialogDisplayerImpl.java:119)
org.netbeans.core.windows.services.DialogDisplayerImpl.createDialog(DialogDisplayerImpl.java:111)
org.sleuthkit.autopsy.casemodule.AddImageAction.actionPerformed(AddImageAction.java:135)
org.sleuthkit.autopsy.casemodule.AddImageAction$1.actionPerformed(AddImageAction.java:106)
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
java.awt.Component.processMouseEvent(Component.java:6539)
javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
java.awt.Component.processEvent(Component.java:6304)
java.awt.Container.processEvent(Container.java:2239)
java.awt.Component.dispatchEventImpl(Component.java:4889)
java.awt.Container.dispatchEventImpl(Container.java:2297)
java.awt.Component.dispatchEvent(Component.java:4711)
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
java.awt.Container.dispatchEventImpl(Container.java:2283)
java.awt.Window.dispatchEventImpl(Window.java:2746)
java.awt.Component.dispatchEvent(Component.java:4711)
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
java.awt.EventQueue.access$500(EventQueue.java:97)
java.awt.EventQueue$3.run(EventQueue.java:709)
java.awt.EventQueue$3.run(EventQueue.java:703)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
java.awt.EventQueue$4.run(EventQueue.java:733)
java.awt.EventQueue$4.run(EventQueue.java:731)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

I am running Windows 10 x64 Enterprise with the most recent version of Autopsy (4.14.0). I already checked whether the Python interpreter is running via cmd. It states the following: Python 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)] on win32

Also when having a look at my environment path, I see that the Python installation folder is referenced.

Does anyone has an idea what might cause the issue? I am facing the exact same issue on another device.

Thank you all for your help. This is highly appreciated.

Best regards

Hello guys,

I was able to fix the issue. For all of having the same issue: I had to change the user name of my Windows account due to special symbols. Now everything is working fine.

Best regards