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] - ABRIR O BOT #63

Open LucasCamboim opened 1 year ago

LucasCamboim commented 1 year ago

Não entendi bem como funciona a inicialização do bot. mas tentei pelos comandos no poetry e o comando: poetry run python -m pytest deu o seguinte erro:


> ERROR collecting test session ____________________________________________
> C:\Users\leleu\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-AUqp0jeg-py3.9\lib\site-packages\_pytest\runner.py:341: in from_call
>     result: Optional[TResult] = func()
> C:\Users\leleu\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-AUqp0jeg-py3.9\lib\site-packages\_pytest\runner.py:372: in <lambda>
>     call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
> C:\Users\leleu\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-AUqp0jeg-py3.9\lib\site-packages\_pytest\main.py:719: in collect
>     for direntry in visit(str(argpath), self._recurse):
> C:\Users\leleu\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-AUqp0jeg-py3.9\lib\site-packages\_pytest\pathlib.py:698: in visit
>     yield from visit(entry.path, recurse)
> C:\Users\leleu\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-AUqp0jeg-py3.9\lib\site-packages\_pytest\pathlib.py:698: in visit
>     yield from visit(entry.path, recurse)
> C:\Users\leleu\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-AUqp0jeg-py3.9\lib\site-packages\_pytest\pathlib.py:698: in visit
>     yield from visit(entry.path, recurse)
> C:\Users\leleu\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-AUqp0jeg-py3.9\lib\site-packages\_pytest\pathlib.py:683: in visit
>     for entry in os.scandir(path):
> E   PermissionError: [WinError 5] Acesso negado: 'C:\\WINDOWS\\system32\\LogFiles\\WMI\\RtBackup'
> =============================================== short test summary info ===============================================
> ERROR  - PermissionError: [WinError 5] Acesso negado: 'C:\\WINDOWS\\system32\\LogFiles\\WMI\\RtBackup'
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection

Ou mesmo quando tento: poetry run python main.py ele da o seguinte erro na ultima linha:

`

pywintypes.error: (1400, 'SetForegroundWindow', 'O identificador da janela é inválido.')

`

lucasmonstrox commented 1 year ago

Opa @LucasCamboim pode tentar novamente?