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
336 stars 400 forks source link

Issues on mac. #78

Closed GThuskerluke14 closed 6 years ago

GThuskerluke14 commented 6 years ago

This is my first time trying to do this, so please forgive me for my stupidity.

Since it was my first time setting up something like this and I had no idea what to do (I could not understand the instructions under the setup part, I looked through the closed issues and read through those issues that was on the mac. I managed to follow what was in mentioned in those and my config.json together with secret.py. I also noticed that my mac would not accept py -3 commands so I changed the py -3 in run.bat to python3. I've also done cd /Users/gthuskerluke/Downloads/PokeBall-SelfBot-master and ran python3 -m pip install -r requirements.txt. But when I used run.bat, I don't understand whats here but it seems like there was an error. I'm not sure what is causing the error so if anyone could help me I would gladly appreciate it.

Hyperclaw79 commented 6 years ago

run.bat is a batch file which runs only on Windows. Instead, directly launch the launcher.py. Also, make sure you have updated to Py3.6

Open a Mac teminal in your selfbot folder, then python launcher.py.

GThuskerluke14 commented 6 years ago

After dragging the launcher.py into the selfbot folder terminal, I get this message.

/Users/gthuskerluke/Downloads/PokeBall-SelfBot-master/launcher.py: line 1: import: command not found
from: can't read /var/mail/pokeball
/Users/gthuskerluke/Downloads/PokeBall-SelfBot-master/launcher.py: line 18: syntax error near unexpected token `('
/Users/gthuskerluke/Downloads/PokeBall-SelfBot-master/launcher.py: line 18: `    bot = PokeBall(config_path, guild_path, pokelist_path, pokenames_path)'

What do I do here?

Hyperclaw79 commented 6 years ago

After dragging the launcher.py into the selfbot folder terminal, I get this message.

I have no clue how that works out in Mac but just CD your teminal to the folder and do python3 launcher.py. Before that, check python --version to see if you are on Py3.6.4+.

GThuskerluke14 commented 6 years ago

Ah theres the problem. When I do python -- version it gives me the default python 2.7.10 . But when I do python3 -- version, I get 3.6.5.

Hyperclaw79 commented 6 years ago

then simply do python3 launcher.py and you're good to go. 👍

GThuskerluke14 commented 6 years ago

Doing that I get this invalid syntax error.

Traceback (most recent call last):
  File "launcher.py", line 2, in <module>
    from pokeball import PokeBall
  File "/Users/gthuskerluke/Downloads/PokeBall-SelfBot-master/pokeball.py", line 8, in <module>
    from paginator import Paginator
  File "/Users/gthuskerluke/Downloads/PokeBall-SelfBot-master/paginator.py", line 1
    9import asyncio
          ^
SyntaxError: invalid syntax
Hyperclaw79 commented 6 years ago

Looks like your paginator.py somehow got edited. Redownload it from the repo.

GThuskerluke14 commented 6 years ago

After redownloading, I do python3 launcher.py and get this now.

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/aiohttp/connector.py", line 710, in _create_direct_connection
    local_addr=self._local_addr)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 804, in create_connection
    sock, protocol_factory, ssl, server_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 830, in _create_connection_transport
    yield from waiter
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/sslproto.py", line 505, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/sslproto.py", line 201, in feed_ssldata
    self._sslobj.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/aiohttp/connector.py", line 378, in connect
    proto = yield from self._create_connection(req)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/aiohttp/connector.py", line 687, in _create_connection
    _, proto = yield from self._create_direct_connection(req)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/aiohttp/connector.py", line 737, in _create_direct_connection
    (req.host, req.port, exc.strerror)) from exc
aiohttp.client_exceptions.ClientConnectorError: [Errno 1] Can not connect to discordapp.com:443 [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)]

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/gthuskerluke/Downloads/PokeBall-SelfBot-master /launcher.py", line 19, in <module>
    bot.run()
  File "/Users/gthuskerluke/Downloads/PokeBall-SelfBot-master /pokeball.py", line 51, in run
    super().run(self.configs['token'], bot=False)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/client.py", line 580, in run
    return task.result()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/client.py", line 487, in start
    yield from self.login(*args, bot=bot)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/client.py", line 353, in login
    yield from self.http.static_login(token, bot=bot)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/http.py", line 257, in static_login
    data = yield from self.request(Route('GET', '/users/@me'))
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/http.py", line 156, in request
    r = yield from self._session.request(method, url, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/aiohttp/helpers.py", line 97, in __iter__
    ret = yield from self._coro
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/aiohttp/client.py", line 231, in _request
    conn = yield from self._connector.connect(req)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/aiohttp/connector.py", line 383, in connect
    .format(key, exc.strerror)) from exc
aiohttp.client_exceptions.ClientConnectorError: [Errno 1] Cannot connect to host discordapp.com:443 ssl:True [Can not connect to discordapp.com:443 [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)]]
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x10bc80550>

Is it because I'm using the wrong apps? Do I have to download whats in requirements.txt?

Hyperclaw79 commented 6 years ago

Do I have to download whats in requirements.txt?

yes of course.

GThuskerluke14 commented 6 years ago

Alright after downloading them by doing pip [whatever its in here[ and downloading the file, I try again and get this. Traceback (most recent call last):

 File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/aiohttp/connector.py", line 710, in _create_direct_connection
    local_addr=self._local_addr)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 804, in create_connection
    sock, protocol_factory, ssl, server_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 830, in _create_connection_transport
    yield from waiter
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/sslproto.py", line 505, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/sslproto.py", line 201, in feed_ssldata
    self._sslobj.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/aiohttp/connector.py", line 378, in connect
    proto = yield from self._create_connection(req)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/aiohttp/connector.py", line 687, in _create_connection
    _, proto = yield from self._create_direct_connection(req)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/aiohttp/connector.py", line 737, in _create_direct_connection
    (req.host, req.port, exc.strerror)) from exc
aiohttp.client_exceptions.ClientConnectorError: [Errno 1] Can not connect to discordapp.com:443 [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)]

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/gthuskerluke/Downloads/PokeBall-SelfBot-master /launcher.py", line 19, in <module>
    bot.run()
  File "/Users/gthuskerluke/Downloads/PokeBall-SelfBot-master /pokeball.py", line 51, in run
    super().run(self.configs['token'], bot=False)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/client.py", line 580, in run
    return task.result()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/client.py", line 487, in start
    yield from self.login(*args, bot=bot)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/client.py", line 353, in login
    yield from self.http.static_login(token, bot=bot)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/http.py", line 257, in static_login
    data = yield from self.request(Route('GET', '/users/@me'))
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/http.py", line 156, in request
    r = yield from self._session.request(method, url, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/aiohttp/helpers.py", line 97, in __iter__
    ret = yield from self._coro
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/aiohttp/client.py", line 231, in _request
    conn = yield from self._connector.connect(req)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/aiohttp/connector.py", line 383, in connect
    .format(key, exc.strerror)) from exc
aiohttp.client_exceptions.ClientConnectorError: [Errno 1] Cannot connect to host discordapp.com:443 ssl:True [Can not connect to discordapp.com:443 [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)]]
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x110e5e240>
Hyperclaw79 commented 6 years ago

Looks like you have local issues of connecting to Discord. Please check Stack Overflow for further support as this is beyond the scope of the support for the bot.

GThuskerluke14 commented 6 years ago

Stack Overflow?