Hyperclaw79 / PokeBall-SelfBot-Poketwo-Autocatcher

This specific selfbot was designed to automatically catch pokemon spawned on Discord by Poketwo bot. It also offers other utility functions to automate features like trading, releasing, id search, etc. Currently the autocatcher is powered by AI making it possible to autocatch pokemons on multiple bots like PokeTwo, PokeRealm, etc.
MIT License
339 stars 396 forks source link

ImportError: cannot import name 'Deque' #152

Closed SakOf7 closed 4 years ago

SakOf7 commented 4 years ago

Title: [Bug] ImportError: cannot import name 'Deque'

Body:

Problem:

I am trying to set up the PokeBall bot for the first time, downloaded the prerequisites of Python 3.6, including it in the path and followed all the steps for installation but could not get it to work.

Steps to Reproduce:

I was following the steps in the installation, clicked the setup.bat, that ran it's course and closed. I then entered my token into the config.json and clicked run.bat as the steps instructed.

This is where I received the following: image

config.json:

Most of the problems arise due to badly edited config.json. Hence post the contents of it within codeblocks. (Select the contents here and press code button on top.)

{ "token": "mfa....w", "command_prefix": "P^", "priority": [ "Groudon", "Mew", "Machop", "Staryu" ], "avoid": [], "catch_rate": 90, "delay": 3, "delay_on_priority": false, "restrict_duplicates": true, "max_duplicates": 2, "blacklists": [], "whitelists": [], "blacklist_guilds": [382316968394620938], "whitelist_guilds": [], "autolog": true, "update_checker": true, "auto_update": true, "autocatcher": false, "priority_only": false }

image

Traceback and Screenshots:

Paste the Traceback/Error here using codeblocks. Post relevant screenshots.

Specs.

OS: Windows 10 Bot Version: Latest version available on Github Python Version: 3.6

Hyperclaw79 commented 4 years ago

Open a command prompt and run pip install -U discord.py.

Also, you seem to be using 2 Factor Authentication. In that case you'll need to stay logged in on discord while using the bot.

SakOf7 commented 4 years ago

Just entered the command and got the following: image

SakOf7 commented 4 years ago

When doing 'run.bat' I am currently getting: image

Hyperclaw79 commented 4 years ago

Looks like your initial problem has been fixed. Perhaps, you forgot to run the setup.bat or had a different virtual environment active during the execution of run.bat the previous time.

Moving on, now you're probably trying to run it on a main account or an account which is in multiple server. Due to discord's recent changes in how it handles guild chunking for user accounts, the bot never reaches a ready state. So, try running the bot on a fresh account until a fix is released.

SakOf7 commented 4 years ago

Hi, tried it on a fresh account and it has worked.

For it to work on my main account will I need to leave a bunch of servers?

Hyperclaw79 commented 4 years ago

No, leaving does't help. I'll be coming up with a fix for this in the Premium Version soon.

On Thu, Mar 5, 2020 at 7:25 PM SakOf7 notifications@github.com wrote:

Hi, tried it on a fresh account and it has worked.

For it to work on my main account will I need to leave a bunch of servers?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Hyperclaw79/PokeBall-SelfBot/issues/152?email_source=notifications&email_token=AG7Q52Y6PDPOK3NWGODIOS3RF6VMHA5CNFSM4LCBR3B2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN5KVRI#issuecomment-595241669, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG7Q523VGANVF4NUSO2NZNDRF6VMHANCNFSM4LCBR3BQ .