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

Error Line 4 and Line 221 #50

Closed
Jojiin opened this issue Nov 21, 2021 · 7 comments
Closed

Error Line 4 and Line 221 #50

Jojiin opened this issue Nov 21, 2021 · 7 comments

Comments

@Jojiin
Copy link

Jojiin commented Nov 21, 2021

Hi i'm having this two errors, could anyone help?
Olá, estou tendo esses 2 erros, alguem poderia dar um help?

D:\bombcrypto-bot-main>python index.py
Traceback (most recent call last):
File "D:\bombcrypto-bot-main\index.py", line 4, in
import pyautogui
File "D:\Python\lib\site-packages\pyautogui_init_.py", line 221, in
locateOnWindow.doc = pyscreeze.locateOnWindow.doc
AttributeError: module 'pyscreeze' has no attribute 'locateOnWindow'

@RonaldoPerini
Copy link

you download the requirements?

@Jojiin
Copy link
Author

Jojiin commented Nov 21, 2021

yup

D:\bombcrypto-bot-main>pip install -r requirements.txt
Requirement already satisfied: opencv-python in d:\python\lib\site-packages (from -r requirements.txt (line 1)) (4.5.4.58)
Requirement already satisfied: mss in d:\python\lib\site-packages (from -r requirements.txt (line 2)) (6.1.0)
Requirement already satisfied: pyautogui in d:\python\lib\site-packages (from -r requirements.txt (line 3)) (0.9.53)
Requirement already satisfied: pyyaml in d:\python\lib\site-packages (from -r requirements.txt (line 4)) (6.0)
Requirement already satisfied: requests in d:\python\lib\site-packages (from -r requirements.txt (line 5)) (2.26.0)
Requirement already satisfied: numpy>=1.21.2 in d:\python\lib\site-packages (from opencv-python->-r requirements.txt (line 1)) (1.21.4)
Requirement already satisfied: pymsgbox in d:\python\lib\site-packages (from pyautogui->-r requirements.txt (line 3)) (1.0.7)
Requirement already satisfied: PyTweening>=1.0.1 in d:\python\lib\site-packages (from pyautogui->-r requirements.txt (line 3)) (1.0.4)
Requirement already satisfied: pyscreeze>=0.1.21 in d:\python\lib\site-packages (from pyautogui->-r requirements.txt (line 3)) (0.1.26)
Requirement already satisfied: pygetwindow>=0.0.5 in d:\python\lib\site-packages (from pyautogui->-r requirements.txt (line 3)) (0.0.9)
Requirement already satisfied: mouseinfo in d:\python\lib\site-packages (from pyautogui->-r requirements.txt (line 3)) (0.1.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\python\lib\site-packages (from requests->-r requirements.txt (line 5)) (1.26.7)
Requirement already satisfied: certifi>=2017.4.17 in d:\python\lib\site-packages (from requests->-r requirements.txt (line 5)) (2021.10.8)
Requirement already satisfied: idna<4,>=2.5 in d:\python\lib\site-packages (from requests->-r requirements.txt (line 5)) (3.3)
Requirement already satisfied: charset-normalizer~=2.0.0 in d:\python\lib\site-packages (from requests->-r requirements.txt (line 5)) (2.0.7)
Requirement already satisfied: pyrect in d:\python\lib\site-packages (from pygetwindow>=0.0.5->pyautogui->-r requirements.txt (line 3)) (0.1.4)
Requirement already satisfied: pyperclip in d:\python\lib\site-packages (from mouseinfo->pyautogui->-r requirements.txt (line 3)) (1.8.2)

@opastorello
Copy link

opastorello commented Nov 24, 2021

same error
image

EDIT:

It was missing a dependency, it performed the installation and it worked normally.

pip install wheel

@Jojiin
Copy link
Author

Jojiin commented Nov 25, 2021

same error image

EDIT:

It was missing a dependency, it performed the installation and it worked normally.

pip install wheel

did this, but i'm still getting the same error #sadness
thx anyway

@opastorello
Copy link

sadness

Do the following:

pip uninstall wheel
pip uninstall pyautogui

later

pip install wheel
pip install pyautogui

in the order given

@Jojiin
Copy link
Author

Jojiin commented Nov 26, 2021

sadness

Do the following:

pip uninstall wheel pip uninstall pyautogui

later

pip install wheel pip install pyautogui

in the order given

Tried this too, and still same error
Thx again

@Hermanyo
Copy link

Hermanyo commented Nov 30, 2021

sadness

Do the following:
pip uninstall wheel pip uninstall pyautogui
later
pip install wheel pip install pyautogui
in the order given

Tried this too, and still same error Thx again

Install python3 and then do pip3 install pyautogui

@Nucito Nucito closed this as completed Dec 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants