autopsy icon indicating copy to clipboard operation
autopsy copied to clipboard

Add data source issue

Open lifayk opened this issue 11 years ago • 8 comments

Fresh installation of Autopsy 3.1.3 I created a new case and clicked on Add data source and get this:

Traceback (most recent call last): File "C:\Soft\Autopsy-3.1.3\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\site.py", line 585, in File "C:\Soft\Autopsy-3.1.3\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\site.py", line 567, in main File "C:\Soft\Autopsy-3.1.3\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\site.py", line 300, in addusersitepackages File "C:\Soft\Autopsy-3.1.3\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\site.py", line 289, in getusersitepackages File "C:\Soft\Autopsy-3.1.3\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py", line 416, in get_path File "C:\Soft\Autopsy-3.1.3\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py", line 407, in get_paths File "C:\Soft\Autopsy-3.1.3\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py", line 180, in _expand_vars File "C:\Soft\Autopsy-3.1.3\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py", line 154, in _subst_vars File "C:\Soft\Autopsy-3.1.3\autopsy\modules\ext\jython-standalone-2.7.0.jar\Lib\sysconfig.py", line 154, in _subst_vars UnicodeEncodeError: 'ascii' codec can't encode characters in position 9-21: ordinal not in range(128)

lifayk avatar Jul 16 '15 09:07 lifayk

Did you write a python module or install one? Those modules get loaded and parsed when the Add Data Source button is pressed.

bcarrier avatar Jul 16 '15 13:07 bcarrier

No. I just downloaded distr from official site (sourceforge) for x64 and installed it on Windows 2012 R2. No additional configuration.

lifayk avatar Jul 16 '15 13:07 lifayk

Do you have Python installed anywhere else on your system? We can't recreate this here, but some googling seems to be that this can be from the library we are using for Python support is looking on the system for other Python code and is hitting a path name that has non-ASCII characters in it. Any ideas on what that path could be?

bcarrier avatar Jul 20 '15 14:07 bcarrier

Is the C:\Soft\ just a custom install location instead of for instance C:\Program Files?

Could there be any other path components that have non-ascii characters? What is your user name, for instance?

kefir- avatar Jul 20 '15 15:07 kefir-

No, I don't have any other Python installations. The problem was that my profile name had non-English characters. I've renamed my account name in c:\Users. Now it's ok. The issue is solved.

lifayk avatar Jul 21 '15 07:07 lifayk

That should be resolved in the code, rather than requiring ascii-only user names.

kefir- avatar Jul 21 '15 11:07 kefir-

Agree.

lifayk avatar Jul 21 '15 12:07 lifayk

Thanks for helping to diagnose. We'll try to recreate this and see if we can change the Jython code to not consider this a fatal error.

bcarrier avatar Jul 21 '15 13:07 bcarrier