Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'pyscreeze' has no attribute 'locateOnWindow' #456

Closed
Kiera-17 opened this issue Dec 24, 2021 · 4 comments
Closed
Labels
wontfix This will not be worked on

Comments

@Kiera-17
Copy link

Pessoal, boa noite.

Estou com este erro ao tentar iniciar o bot, estou usando a versão 3.9.9 do python, alguém consegue me ajudar com este problema ?

obg...

image

@Nydoehar
Copy link

Nydoehar commented Dec 24, 2021

Resposta: asweigart/pyautogui#598

Hi Everyone! I hope everyone is doing well. It looks like there is an easy fix for this one.

pyautogui/pyautogui/init.py

Line 221 in 5e4acb8
locateOnWindow.doc = pyscreeze.locateOnWindow.doc

Here on this line we just need to change

locateOnWindow.doc = pyscreeze.locateOnWindow.doc

To This:

locateOnWindow.doc = pyscreeze.locateOnScreen.doc

Update this and your inputs will work. The locateOnWindow changed to locateOnScreen.

++@asweigart, FYI

Tested on: Windows Version 10.0.19042 Build 19042
Current Python: 3.9.2
Current PyAutoGUI: 0.9.53

The file location for me was:
'C:\Users{UserName}\AppData\Roaming\Python\Python39\site-packages\pyautogui\init.py'

Do not look in the
C:\Program Files\Python39 folders

Resumindo, você troca:
pyscreeze.locateOnWindow.doc

por

pyscreeze.locateOnScreen.doc

@Kiera-17
Copy link
Author

Eu consegui localizar o arquivo indicado "init.py", abro ele com o bloco de notas para realizar esta substituição certo? não encontrei essa parte do código para substituir, a indicação da linha, aparece em algum programa especifico ? tipo de desenvolvimento ?

@fguide
Copy link
Contributor

fguide commented Dec 24, 2021

Remova a linha 4 do codigo:

from captcha.solveCaptcha import solveCaptcha

O jogo esta sem captcha por enquanto, nao é necessário.
Tem que remover tb tudoq ue esta com solveCaptcha no index.py

@stale
Copy link

stale bot commented Feb 22, 2022

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.

@stale stale bot added the wontfix This will not be worked on label Feb 22, 2022
@stale stale bot closed this as completed Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants