tomer8007 / kik-bot-api-unofficial

Python API for writing unoffical Kik bots that act like humans
MIT License
126 stars 76 forks source link

Error when trying to login on Termux #191

Closed Sitiaro closed 3 years ago

Sitiaro commented 3 years ago

I tried cloning and using the repo on Termux, installed lxml and pillow dependencies too but this error popped up after I entered my login details. Am I doing something wrong? I'm using python 3.9.2 btw.

[2021-04-12 18:43:40,622] INFO (thread Kik Connection): [+] Initiating the Kik Connection thread and connecting to kik server... Exception in thread Kik Connection: Traceback (most recent call last): File "/data/data/com.termux/files/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner self.run() File "/data/data/com.termux/files/usr/lib/python3.9/threading.py", line 892, in run self._target(*self._args, **self._kwargs) File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/kik_unofficial/client.py", line 639, in _kik_connection_thread_function self.loop.run_until_complete(connection_coroutine) File "/data/data/com.termux/files/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/data/data/com.termux/files/usr/lib/python3.9/asyncio/base_events.py", line 1017, in create_connection infos = await self._ensure_resolved( File "/data/data/com.termux/files/usr/lib/python3.9/asyncio/base_events.py", line 1396, in _ensure_resolved return await loop.getaddrinfo(host, port, family=family, type=type, File "/data/data/com.termux/files/usr/lib/python3.9/asyncio/base_events.py", line 856, in getaddrinfo return await self.run_in_executor( File "/data/data/com.termux/files/usr/lib/python3.9/asyncio/base_events.py", line 809, in run_in_executor executor = concurrent.futures.ThreadPoolExecutor( File "/data/data/com.termux/files/usr/lib/python3.9/concurrent/futures/init.py", line 49, in getattr from .thread import ThreadPoolExecutor as te File "/data/data/com.termux/files/usr/lib/python3.9/concurrent/futures/thread.py", line 37, in threading._register_atexit(_python_exit) File "/data/data/com.termux/files/usr/lib/python3.9/threading.py", line 1374, in _register_atexit raise RuntimeError("can't register atexit after shutdown") RuntimeError: can't register atexit after shutdown

tomer8007 commented 3 years ago

This is not a Termux problem, bur rather a known problem with Python 3.9+, the relevant issue is #172.