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
338 stars 397 forks source link

Discord Module Not Found #13

Closed ghost closed 6 years ago

ghost commented 6 years ago

A syntax error error occurs here, I'm using mac and have followed your instructions.

Traceback (most recent call last): File "/Users/User/Downloads/PokeCord Bot/PokeBall-SelfBot-master-2/launcher.py", line 2, in from secret import alter_config File "/Users/User/Downloads/PokeCord Bot/PokeBall-SelfBot-master-2/secret.py", line 7 SyntaxError: Non-ASCII character '\xe2' in file /Users/User/Downloads/PokeCord Bot/PokeBall-SelfBot-master-2/secret.py on line 7, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

Hyperclaw79 commented 6 years ago

Hmm, not sure why it's detecting a non-ascii character there. Anyways, Comment out that from secret import alter_config in your launcher.py and manually edit the token in your configs.json.

ghost commented 6 years ago

Ok, so that error is gone now, but it's replaced with another error: Traceback (most recent call last): File "/Users/CedricWong/Downloads/PokeCord Bot/PokeBall-SelfBot-master-2/launcher.py", line 2, in from pokeball import PokeBall File "/Users/CedricWong/Downloads/PokeCord Bot/PokeBall-SelfBot-master-2/pokeball.py", line 12 def init(self, config_path: str, guild_path: str, pokelist_path: str, pokenames_path: str, *args, **kwargs): ^ SyntaxError: invalid syntax

Hyperclaw79 commented 6 years ago

This is definitely your local issue because I remember you faced it with the Demo's version too. So, I suggest trying out other python codes and checking the issue up on Stack Overflow. I'll close this for now but feel free to reopen after narrowing it down.

ghost commented 6 years ago

Ok, so I got it to load past the error through using "python3.6 launcher.py" but now its showing another error Traceback (most recent call last): File "launcher.py", line 2, in from pokeball import PokeBall File "/Users/User/Downloads/PokeCord Bot/PokeBall-SelfBot-master-2/pokeball.py", line 2, in import discord ModuleNotFoundError: No module named 'discord'

Hyperclaw79 commented 6 years ago

Did you run the setup.bat? Show me the output for pip freeze. Execute it in your cmd.

ghost commented 6 years ago

let me see edit: yup did it, but this is what showed up:

  Exception:
  Traceback (most recent call last):
    File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 246, in main
      status = self.run(options, args)
    File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 342, in run
      requirement_set.prepare_files(finder)
    File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 345, in prepare_files
      functools.partial(self._prepare_file, finder))
    File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 290, in _walk_req_to_install
      more_reqs = handler(req_to_install)
    File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 487, in _prepare_file
      download_dir, do_download, session=self.session,
    File "/Library/Python/2.7/site-packages/pip/download.py", line 827, in unpack_url
      session,
    File "/Library/Python/2.7/site-packages/pip/download.py", line 673, in unpack_http_url
      from_path, content_type = _download_http_url(link, session, temp_dir)
    File "/Library/Python/2.7/site-packages/pip/download.py", line 859, in _download_http_url
      stream=True,
    File "/Library/Python/2.7/site-packages/pip/_vendor/requests/sessions.py", line 476, in get
      return self.request('GET', url, **kwargs)
    File "/Library/Python/2.7/site-packages/pip/download.py", line 367, in request
      return super(PipSession, self).request(method, url, *args, **kwargs)
    File "/Library/Python/2.7/site-packages/pip/_vendor/requests/sessions.py", line 464, in request
      resp = self.send(prep, **send_kwargs)
    File "/Library/Python/2.7/site-packages/pip/_vendor/requests/sessions.py", line 576, in send
      r = adapter.send(request, **kwargs)
    File "/Library/Python/2.7/site-packages/pip/_vendor/cachecontrol/adapter.py", line 46, in send
      resp = super(CacheControlAdapter, self).send(request, **kw)
    File "/Library/Python/2.7/site-packages/pip/_vendor/requests/adapters.py", line 431, in send
      raise SSLError(e, request=request)
  SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)
Hyperclaw79 commented 6 years ago

Hmm, looks like this is an issue with your installation of Python itself. I suggest referring Stack Overflow about resolving this.

Since it says that it is an SSL error, it's likely a firewall/antivirus/other network related issue.

That being said, since this is not an issue related directly to the PokeBall SelfBot, I'm closing this. Good luck in fixing your issue.