TapSwapBot icon indicating copy to clipboard operation
TapSwapBot copied to clipboard

KeyError

Open tektungg opened this issue 1 year ago • 3 comments

PS C:\TapSwapBot> python main.py Traceback (most recent call last): File "C:\TapSwapBot\main.py", line 4, in from bot.utils.launcher import process File "C:\TapSwapBot\bot\utils_init_.py", line 2, in from . import launcher File "C:\TapSwapBot\bot\utils\launcher.py", line 9, in from bot.core.tapper import run_tapper File "C:\TapSwapBot\bot\core\tapper.py", line 7, in from aiocfscrape import CloudflareScraper File "C:\TapSwapBot\venv\Lib\site-packages\aiocfscrape_init_.py", line 8, in import js2py File "C:\TapSwapBot\venv\Lib\site-packages\js2py_init_.py", line 72, in from .base import PyJsException File "C:\TapSwapBot\venv\Lib\site-packages\js2py\base.py", line 2965, in @Js ^^ File "C:\TapSwapBot\venv\Lib\site-packages\js2py\base.py", line 165, in Js return PyJsFunction(val, FunctionPrototype) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\TapSwapBot\venv\Lib\site-packages\js2py\base.py", line 1377, in init cand = fix_js_args(func) ^^^^^^^^^^^^^^^^^ File "C:\TapSwapBot\venv\Lib\site-packages\js2py\utils\injector.py", line 27, in fix_js_args code = append_arguments(six.get_function_code(func), ('this', 'arguments')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\TapSwapBot\venv\Lib\site-packages\js2py\utils\injector.py", line 121, in append_arguments arg = name_translations[inst.arg] ~~~~~~~~~~~~~~~~~^^^^^^^^^^ KeyError: 3

I just run Install.bat > enter API > run start.bat and this error pops up. what did i miss here?

tektungg avatar Aug 25 '24 02:08 tektungg

PS C:\TapSwapBot> python main.py

Traceback (most recent call last): File "C:\TapSwapBot\main.py", line 4, in from bot.utils.launcher import process File "C:\TapSwapBot\bot\utils__init__.py", line 2, in from . import launcher File "C:\TapSwapBot\bot\utils\launcher.py", line 9, in from bot.core.tapper import run_tapper File "C:\TapSwapBot\bot\core\tapper.py", line 7, in from aiocfscrape import CloudflareScraper File "C:\TapSwapBot\venv\Lib\site-packages\aiocfscrape__init__.py", line 8, in import js2py File "C:\TapSwapBot\venv\Lib\site-packages\js2py__init__.py", line 72, in from .base import PyJsException File "C:\TapSwapBot\venv\Lib\site-packages\js2py\base.py", line 2965, in @js ^^ File "C:\TapSwapBot\venv\Lib\site-packages\js2py\base.py", line 165, in Js return PyJsFunction(val, FunctionPrototype) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\TapSwapBot\venv\Lib\site-packages\js2py\base.py", line 1377, in init cand = fix_js_args(func) ^^^^^^^^^^^^^^^^^ File "C:\TapSwapBot\venv\Lib\site-packages\js2py\utils\injector.py", line 27, in fix_js_args code = append_arguments(six.get_function_code(func), ('this', 'arguments')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\TapSwapBot\venv\Lib\site-packages\js2py\utils\injector.py", line 121, in append_arguments arg = name_translations[inst.arg]

KeyError: 3
I just run Install.bat > enter API > run start.bat and this error pops up. what did i miss

Screenshot 2024-08-25 160045

same me :(

Dener-SBC avatar Aug 25 '24 13:08 Dener-SBC

PS C:\TapSwapBot> python main.py

Traceback (most recent call last): File "C:\TapSwapBot\main.py", line 4, in from bot.utils.launcher import process File "C:\TapSwapBot\bot\utils__init__.py", line 2, in from . import launcher File "C:\TapSwapBot\bot\utils\launcher.py", line 9, in from bot.core.tapper import run_tapper File "C:\TapSwapBot\bot\core\tapper.py", line 7, in from aiocfscrape import CloudflareScraper File "C:\TapSwapBot\venv\Lib\site-packages\aiocfscrape__init__.py", line 8, in import js2py File "C:\TapSwapBot\venv\Lib\site-packages\js2py__init__.py", line 72, in from .base import PyJsException File "C:\TapSwapBot\venv\Lib\site-packages\js2py\base.py", line 2965, in @js ^^ File "C:\TapSwapBot\venv\Lib\site-packages\js2py\base.py", line 165, in Js return PyJsFunction(val, FunctionPrototype) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\TapSwapBot\venv\Lib\site-packages\js2py\base.py", line 1377, in init cand = fix_js_args(func) ^^^^^^^^^^^^^^^^^ File "C:\TapSwapBot\venv\Lib\site-packages\js2py\utils\injector.py", line 27, in fix_js_args code = append_arguments(six.get_function_code(func), ('this', 'arguments')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\TapSwapBot\venv\Lib\site-packages\js2py\utils\injector.py", line 121, in append_arguments arg = name_translations[inst.arg]

KeyError: 3
I just run Install.bat > enter API > run start.bat and this error pops up. what did i miss

Screenshot 2024-08-25 160045

same me :(

noooo don't post your API here 😭

tektungg avatar Aug 25 '24 14:08 tektungg

Use python 3.11

shamhi avatar Aug 25 '24 19:08 shamhi