dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
688 stars 160 forks source link

Too many values to unpack when unpacking experiments #566

Closed selenei closed 1 year ago

selenei commented 1 year ago

Summary

Too many values to unpack when unpacking experiments

Reproduction Steps

Call selfcord.Client.run

Code

No response

Expected Results

No Exception

Actual Results

  File "/usr/local/lib/python3.10/site-packages/selfcord/client.py", line 1016, in run
    asyncio.run(runner())
  File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.10/site-packages/selfcord/client.py", line 1005, in runner
    await self.start(token, reconnect=reconnect)
  File "/usr/local/lib/python3.10/site-packages/selfcord/client.py", line 936, in start
    await self.connect(reconnect=reconnect)
  File "/usr/local/lib/python3.10/site-packages/selfcord/client.py", line 817, in connect
    await self.ws.poll_event()
  File "/usr/local/lib/python3.10/site-packages/selfcord/gateway.py", line 650, in poll_event
    await self.received_message(msg.data)
  File "/usr/local/lib/python3.10/site-packages/selfcord/gateway.py", line 600, in received_message
    func(data)
  File "/usr/local/lib/python3.10/site-packages/selfcord/state.py", line 981, in parse_ready
    self.experiments = {exp[0]: UserExperiment(state=self, data=exp) for exp in data.get('experiments', [])}
  File "/usr/local/lib/python3.10/site-packages/selfcord/state.py", line 981, in <dictcomp>
    self.experiments = {exp[0]: UserExperiment(state=self, data=exp) for exp in data.get('experiments', [])}
  File "/usr/local/lib/python3.10/site-packages/selfcord/experiment.py", line 741, in __init__
    (hash, revision, bucket, override, population, hash_result, aa_mode) = data
ValueError: too many values to unpack (expected 7

System Information

python:3.10 version: https://github.com/dolfies/discord.py-self/commit/fa0a48f35cbb98cf083052e80363fa89e173864b

Checklist

Additional Information

No response

dolfies commented 1 year ago

Update to the latest commit.

selenei commented 1 year ago

Thanks!