Skip to content

KeyError: 'from' #8

Open
Open

Description

@danzerzine

Hi, I've followed the instruction, but get the following error message, could you please point to possible solution?

importing raw data...
input data is a single chat export
calculating metrics...
Traceback (most recent call last):
  File "telegram-statistics.py", line 267, in <module>
    main()
  File "telegram-statistics.py", line 209, in main
    calculate_metrics(chat_data, date_filter)
  File "telegram-statistics.py", line 137, in calculate_metrics
    metrics = _message_numerics(chat_data, date_filter)
  File "/work/_message_numerics.py", line 24, in _message_numerics
    metrics["A"]["name"] = chat["messages"][1]["from"]
KeyError: 'from'

Activity

  1. aleks648 commented on Jul 31, 2022

    @aleks648

    I'm having the identical issue.

  2. mnemocron commented on Aug 1, 2022

    @mnemocron
    Owner

    What type of chat are you exporting @aleks648 and @danzerzine ?
    Is it from a group, or a bot?
    I just tested it with two different single chat exports and I cannot reproduce the problem.

  3. celgus commented on Nov 2, 2022

    @celgus

    What type of chat are you exporting @aleks648 and @danzerzine ? Is it from a group, or a bot? I just tested it with two different single chat exports and I cannot reproduce the problem.

    "type": "public_supergroup",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions