Skip to content

Error with running chatstats #11

@giatrakosg

Description

@giatrakosg

Hello,

after forking and installing the dependencies I run into the following error.

Plotting graphs... This may take a minute.
/home/ggiatrakos/Downloads/messages/inbox/[redacted]/message_1.json
/home/ggiatrakos/Programs/chatstats/chatstats.py:67: UserWarning: This pattern is interpreted as a regular expression, and has match groups. To actually get the groups, use str.extract.
  data['game'] = data['content'].str.contains(chatstats_constants.GAME_REGEX, na=False)
Traceback (most recent call last):
  File "/home/ggiatrakos/Programs/chatstats/chatstats.py", line 225, in <module>
    main(sys.argv)
  File "/home/ggiatrakos/Programs/chatstats/chatstats.py", line 212, in main
    words, bigrams, trigrams = word_data(messages)
  File "/home/ggiatrakos/Programs/chatstats/chatstats.py", line 117, in word_data
    elif word in emoji.UNICODE_EMOJI:
AttributeError: module 'emoji' has no attribute 'UNICODE_EMOJI'

There seems to be an issue with the emoji library.

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