Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
windowshopr opened this issue Mar 27, 2022 · 0 comments
Open

Comments

@windowshopr
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant