Code Monkey home page Code Monkey logo

Comments (3)

kiddinn avatar kiddinn commented on June 12, 2024

This will also happen within psort, when attempting to read the timeline data produced by plaso (hot patched dfdatetime to be able to run plaso on the dataset, but when attempting to import into Timesketch I run into this issue again, since that version is not hot patched)

Traceback (most recent call last):
  File "/usr/bin/psort.py", line 101, in <module>
    if not Main():
  File "/usr/bin/psort.py", line 74, in Main
    tool.ProcessStorage()
  File "/usr/lib/python3/dist-packages/plaso/cli/psort_tool.py", line 522, in ProcessStorage
    output_engine.ExportEvents(
  File "/usr/lib/python3/dist-packages/plaso/multi_process/output_engine.py", line 490, in ExportEvents
    self._ExportEvents(
  File "/usr/lib/python3/dist-packages/plaso/multi_process/output_engine.py", line 293, in _ExportEvents
    for event in storage_reader.GetSortedEvents(time_range=time_slice_range):
  File "/usr/lib/python3/dist-packages/plaso/storage/sqlite/sqlite_file.py", line 405, in _GetAttributeContainersWithFilter
    container = self._CreatetAttributeContainerFromRow(
  File "/usr/lib/python3/dist-packages/plaso/storage/sqlite/sqlite_file.py", line 337, in _CreatetAttributeContainerFromRow
    attribute_value = self._serializer.ReadSerialized(attribute_value)
  File "/usr/lib/python3/dist-packages/plaso/serializer/json_serializer.py", line 493, in ReadSerialized
    return cls.ReadSerializedDict(json_dict)
  File "/usr/lib/python3/dist-packages/plaso/serializer/json_serializer.py", line 517, in ReadSerializedDict
    json_object = cls._ConvertJSONToValue(json_dict)
  File "/usr/lib/python3/dist-packages/plaso/serializer/json_serializer.py", line 294, in _ConvertJSONToValue
    return convert_function(json_dict)
  File "/usr/lib/python3/dist-packages/dfdatetime/serializer.py", line 34, in ConvertDictToDateTimeValues
    return cls.ConvertJSONToDateTimeValues(json_dict)
  File "/usr/lib/python3/dist-packages/dfdatetime/serializer.py", line 178, in ConvertJSONToDateTimeValues
    date_time = factory.Factory.NewDateTimeValues(class_name, **json_dict)
  File "/usr/lib/python3/dist-packages/dfdatetime/factory.py", line 46, in NewDateTimeValues
    return date_time_values_type(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'time_zone_offset'

from dfdatetime.

joachimmetz avatar joachimmetz commented on June 12, 2024

thx for the report, can you give the changes in the PR a try

from dfdatetime.

kiddinn avatar kiddinn commented on June 12, 2024

works like a charm

from dfdatetime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.