lucasmonstrox / PyTibia

🤖 Fastest Tibia PixelBot. A great bot for Auto, Cavebot, Healing, Macro, Refill, Targeting and Training!
MIT License
266 stars 62 forks source link

[BUG] - Erro ao iniciar client #48

Open wemersonpereira opened 1 year ago

wemersonpereira commented 1 year ago

estou usando windows 10, fiz conforme a descrição, instalei Python 3.9.13 e Poetry mais atualizado disponível, instalei os packages: pip install poetry poetry install poetry run task add-torch poetry run task add-easyocr

Quando executo o comenda poetry run python main.py dentro da pasta raiz do projeto, ocorre vários erros, o que posso fazer? segue erro abaixo:

C:\Users\admlocal\Downloads\PyTibia-main\PyTibia-main>poetry run python main.py CUDA not available - defaulting to CPU. Note: This module is much faster with a GPU. Exception in thread Thread-3: Traceback (most recent call last): File "C:\Users\admlocal\AppData\Local\Programs\Python\Python39\lib\threading.py", line 980, in _bootstrap_inner self.run() File "C:\Users\admlocal\AppData\Local\Programs\Python\Python39\lib\threading.py", line 1306, in run self.function(*self.args, **self.kwargs) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\scheduler\timeoutscheduler.py", line 83, in interval sad.disposable = self.invoke_action(action, state) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\scheduler\scheduler.py", line 103, in invoke_action ret = action(self, state) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\scheduler\periodicscheduler.py", line 47, in periodic state = action(state) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\core\observable\timer.py", line 76, in action observer.on_next(count) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\core\observer\autodetachobserver.py", line 26, in on_next self._on_next(value) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\core\operators\map.py", line 41, in on_next obv.on_next(result) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\core\observer\autodetachobserver.py", line 26, in on_next self._on_next(value) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\core\operators\filter.py", line 34, in on_next observer.on_next(value) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\core\observer\autodetachobserver.py", line 26, in on_next self._on_next(value) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\core\operators\filter.py", line 34, in on_next observer.on_next(value) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\core\observer\autodetachobserver.py", line 26, in on_next self._on_next(value) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\core\operators\map.py", line 41, in on_next obv.on_next(result) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\core\observer\autodetachobserver.py", line 26, in on_next self._on_next(value) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\core\operators\map.py", line 39, in on_next obv.on_error(err) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\core\observer\autodetachobserver.py", line 34, in on_error self._on_error(error) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\core\observer\autodetachobserver.py", line 34, in on_error self._on_error(error) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\core\observer\autodetachobserver.py", line 34, in on_error self._on_error(error) [Previous line repeated 9 more times] File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\internal\basic.py", line 34, in default_error raise err File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-ciAOrLk6-py3.9\lib\site-packages\rx\core\operators\map.py", line 37, in on_next result = _mapper(value) File "C:\Users\admlocal\Downloads\PyTibia-main\PyTibia-main\main.py", line 185, in handleBattleListCreatures hasBattleListCreatures = len(copyOfContext['battleListCreatures']) > 0 TypeError: object of type 'NoneType' has no len()

lucasmonstrox commented 1 year ago

Salve, ainda não fiz um setup minimo explicando como usa o bot, mas para avisar que ele está em dev.

Sugeria voce abrir a battleList full, abrir a aba de skills full, usar multiple scale integrals na maior resolução.

Lopsito commented 1 year ago

Exactly same error : o

lucasmonstrox commented 1 year ago

Pode tentar novamente? Não estou usando mais o cuda.

lucasmonstrox commented 1 year ago

Tem novidades?

wemersonpereira commented 1 year ago

Fala Lucas, não sei se sou eu que não sei colocar para rodar o projeto, mas não consegui ☹ Segue erro em anexo.

Como eu fiz: Baixei o projeto, descompactei a pasta. Acessei a raiz da pasta pelo cmd (C:\Users\admlocal\Downloads\PyTibia-main), instalei poetry install e por último rodei o projeto (poetry run python main.py).

Fiz algo errado?

Enviado do Emailhttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows

De: Lucas @.> Enviado:quinta-feira, 27 de abril de 2023 07:45 Para: @.> @.>; @.> Assunto: Re: [lucasmonstro/PyTibia] [BUG] - Erro ao iniciar client (Issue #48)

Tem novidades?

— Reply to this email directly, view it on GitHubhttps://github.com/lucasmonstro/PyTibia/issues/48#issuecomment-1525449928, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJQ2ZH3TPZQXR5IWRUOZE3DXDJE33ANCNFSM6AAAAAAVEDV53A. You are receiving this because you authored the thread.Message ID: @.***>

C:\Users\admlocal\Downloads\PyTibia-main>poetry run python main.py [INFO ] [Logger ] Record log in C:\Users\admlocal.kivy\logs\kivy_23-05-02_5.txt [INFO ] [deps ] Successfully imported "kivy_deps.angle" 0.3.3 [INFO ] [deps ] Successfully imported "kivy_deps.glew" 0.3.1 [INFO ] [deps ] Successfully imported "kivy_deps.sdl2" 0.4.5 [INFO ] [Kivy ] v2.1.0 [INFO ] [Kivy ] Installed at "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-Cp8P18BB-py3.9\lib\site-packages\kivy__init.py" [INFO ] [Python ] v3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)] [INFO ] [Python ] Interpreter at "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-Cp8P18BB-py3.9\Scripts\python.exe" [INFO ] [Logger ] Purge log fired. Processing... [INFO ] [Logger ] Purge finished! Traceback (most recent call last): File "C:\Users\admlocal\Downloads\PyTibia-main\main.py", line 4, in import pyautogui File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-Cp8P18BB-py3.9\lib\site-packages\pyautogui__init.py", line 183, in import pyscreeze File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-Cp8P18BB-py3.9\lib\site-packages\pyscreeze\init.py", line 45, in import cv2, numpy File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-Cp8P18BB-py3.9\lib\site-packages\cv2\init.py", line 181, in bootstrap() File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-Cp8P18BB-py3.9\lib\site-packages\cv2\init.py", line 175, in bootstrap if load_extra_py_code_for_module("cv2", submodule, DEBUG): File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-Cp8P18BB-py3.9\lib\site-packages\cv2\init.py", line 28, in load_extra_py_code_for_module py_module = importlib.import_module(module_name) File "C:\Users\admlocal\AppData\Local\Programs\Python\Python39\lib\importlib__init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "C:\Users\admlocal\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-Cp8P18BB-py3.9\lib\site-packages\cv2\gapi\init__.py", line 301, in cv.gapi.wip.GStreamerPipeline = cv.gapi_wip_gst_GStreamerPipeline AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)

lucasmonstrox commented 1 year ago

Pode tentar novamente?