mpcabete / bombcrypto-bot

This is a python bot that automatically logs in, clicks the new button, and sends heroes to work in the bombcrypto game. It is fully open source and free.
817 stars 540 forks source link

Não inicia no linux #681

Closed Higt007 closed 2 years ago

Higt007 commented 2 years ago

511 Uso ele em uma VM ubuntu há certa de 1 mês porem tive que reiniciar a maquina depois disso não funcionou mai

---> Some configs can be found in the config.yaml file. [2022-01-24 23:05:57] => 🏢 Search for heroes to work [2022-01-24 23:05:57] => ⬆️ Processing last action..Traceback (most recent call last): File "/home/gus/Desktop/bomb/index.py", line 527, in main() File "/home/gus/Desktop/bomb/index.py", line 496, in main refreshHeroes() File "/home/gus/Desktop/bomb/index.py", line 425, in refreshHeroes goToHeroes() File "/home/gus/Desktop/bomb/index.py", line 304, in goToHeroes if clickBtn(images['go-back-arrow']): File "/home/gus/Desktop/bomb/index.py", line 156, in clickBtn matches = positions(img, threshold=threshold) File "/home/gus/Desktop/bomb/index.py", line 183, in positions img = printSreen() File "/home/gus/Desktop/bomb/index.py", line 174, in printSreen sct_img = np.array(sct.grab(monitor)) File "/home/gus/.local/lib/python3.9/site-packages/mss/base.py", line 88, in grab return self._grab_impl(monitor) File "/home/gus/.local/lib/python3.9/site-packages/mss/linux.py", line 446, in _grab_impl ximage = self.xlib.XGetImage( File "/home/gus/.local/lib/python3.9/site-packages/mss/linux.py", line 191, in validate raise ScreenShotError(err, details=details) mss.exception.ScreenShotError: XGetImage() failed


1x10 commented 2 years ago

Qual é o Host e como você conecta na VM?

fguide commented 2 years ago

Deve ter atualizado e começado a utilizar o wayland, veja se não é o caso e se for, troque para o Xorg.

fguide commented 2 years ago

Em tempo, se estiver usando gnome, aparentemente instalar o gnome-screenshot resolve o problema.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.