Skip to content

TypeError: parse_replay() got an unexpected keyword argument 'tick' #27

@windowshopr

Description

@windowshopr

Python 3.7, Windows 10. Just ran pip install zephyrus_sc2_parser and my opening script looks like this:

from zephyrus_sc2_parser import parse_replay

filepath = "0000e057beefc9b1e9da959ed921b24b9f0a31c63fedb8d94a1db78b58cf92c5.SC2Replay"

# data can be accessed with dot notation
# replay.players, replay.timeline, replay.engagements, replay.summary, replay.metadata
replay = parse_replay(filepath, local=False, tick=112, network=True)

The replay file is in the same directory as the script.

Traceback (most recent call last):
  File "main.py", line 7, in <module>
    replay = parse_replay(filepath, local=False, tick=112, network=True)
TypeError: parse_replay() got an unexpected keyword argument 'tick'

I also tried changing the import to from zephyrus_sc2_parser.parser import parse_replay but same issue.

And when I take out both the tick parameter, and the network parameter, as that also gives an error, I get:

ERROR:root:An error occurred while decoding: buffer(00/0,[0]=--)
ERROR:root:An error occurred while decoding: buffer(00/0,[0]=--)
ERROR:root:An error occurred while decoding: buffer(00/0,[0]=--)
ERROR:root:An error occurred while decoding: buffer(00/0,[0]=--)
ERROR:root:An error occurred while decoding: buffer(00/0,[0]=--)
CRITICAL:root:Replay could not be decoded
CRITICAL:root:Aborting replay due to bad decode...

ideas?

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