You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/bin/log2timeline.py", line 68, in <module>
if not Main():
File "/bin/log2timeline.py", line 54, in Main
tool.ExtractEventsFromSources()
File "/usr/lib/python2.7/site-packages/plaso/cli/log2timeline_tool.py", line 368, in ExtractEventsFromSources
scan_context = self.ScanSource(self._source_path)
File "/usr/lib/python2.7/site-packages/plaso/cli/storage_media_tool.py", line 1099, in ScanSource
self._source_scanner.Scan(scan_context)
File "/usr/lib/python2.7/site-packages/dfvfs/helpers/source_scanner.py", line 565, in Scan
self._ScanNode(scan_context, scan_node, auto_recurse=auto_recurse)
File "/usr/lib/python2.7/site-packages/dfvfs/helpers/source_scanner.py", line 366, in _ScanNode
scan_node.path_spec, resolver_context=self._resolver_context)
File "/usr/lib/python2.7/site-packages/dfvfs/resolver/resolver.py", line 55, in OpenFileEntry
path_spec_object, resolver_context=resolver_context)
File "/usr/lib/python2.7/site-packages/dfvfs/resolver/resolver.py", line 158, in OpenFileSystem
resolver_helper = cls._GetResolverHelper(path_spec_object.type_indicator)
File "/usr/lib/python2.7/site-packages/dfvfs/resolver/resolver.py", line 35, in _GetResolverHelper
from dfvfs.resolver_helpers import manager
File "/usr/lib/python2.7/site-packages/dfvfs/resolver_helpers/__init__.py", line 10, in <module>
from dfvfs.resolver_helpers import cpio_resolver_helper
File "/usr/lib/python2.7/site-packages/dfvfs/resolver_helpers/cpio_resolver_helper.py", line 10, in <module>
from dfvfs.vfs import cpio_file_system
File "/usr/lib/python2.7/site-packages/dfvfs/vfs/cpio_file_system.py", line 6, in <module>
from dfvfs.lib import cpio
File "/usr/lib/python2.7/site-packages/dfvfs/lib/cpio.py", line 43, in <module>
class CPIOArchiveFile(data_format.DataFormat):
File "/usr/lib/python2.7/site-packages/dfvfs/lib/cpio.py", line 59, in CPIOArchiveFile
'cpio_binary_big_endian_file_entry')
File "/usr/lib/python2.7/site-packages/dtfabric/runtime/data_maps.py", line 1811, in CreateDataTypeMap
return DataTypeMapFactory.CreateDataTypeMapByType(data_type_definition)
File "/usr/lib/python2.7/site-packages/dtfabric/runtime/data_maps.py", line 1829, in CreateDataTypeMapByType
return data_type_map_class(data_type_definition)
File "/usr/lib/python2.7/site-packages/dtfabric/runtime/data_maps.py", line 1342, in __init__
data_type_definition, self._data_type_map_cache)
File "/usr/lib/python2.7/site-packages/dtfabric/runtime/data_maps.py", line 1542, in _GetMemberDataTypeMaps
member_definition)
File "/usr/lib/python2.7/site-packages/dtfabric/runtime/data_maps.py", line 1829, in CreateDataTypeMapByType
return data_type_map_class(data_type_definition)
File "/usr/lib/python2.7/site-packages/dtfabric/runtime/data_maps.py", line 217, in __init__
self._operation = self._GetByteStreamOperation()
File "/usr/lib/python2.7/site-packages/dtfabric/runtime/data_maps.py", line 150, in _GetByteStreamOperation
return byte_operations.StructOperation(format_string)
File "/usr/lib/python2.7/site-packages/dtfabric/runtime/byte_operations.py", line 55, in __init__
'with error: {0!s}').format(exception))
dtfabric.errors.FormatError: Unable to create struct object from data type definition with error: Struct() argument 1 must be string, not unicode
The text was updated successfully, but these errors were encountered:
FWIW, removing from __future__ import unicode_literals from runtime/byte_operations.py and runtime/data_maps.py seems to let me use plaso successfully with Python 2.7.5
@ericzinnikas thx for the suggestion, however with python 2 prior to 2.10 containing various ssl related bugs and the expected end of life of python 2 in 2020, I really would encourage using a more recent version of python.
With the Python 2 deprecation on the horizon and 2.7.5 being really, REALLY, REALLY out dated (Python 2.7.5 was released on May 15, 2013). This issue will not be fixed. Leaving it open for now, as an FYI.
From: log2timeline/plaso#1917
The text was updated successfully, but these errors were encountered: