EmaOlay / E7-Auto-Shop-Refresh

7 stars 11 forks source link

First time using Python, need some help with errors #3

Open kktk opened 3 years ago

kktk commented 3 years ago

Hi there.

Encountering some trouble with installing the modules. I installed anaconda and use it to install the 4 modules, but even though pyautogui is installed, the module doesn't run when executing the code:

(E7) C:\Users\kktk>pip install pyautogui Requirement already satisfied: pyautogui in c:\users\kktk\anaconda3\envs\e7\lib\site-packages (0.9.52) Requirement already satisfied: pymsgbox in c:\users\kktk\anaconda3\envs\e7\lib\site-packages (from pyautogui) (1.0.9) Requirement already satisfied: pygetwindow>=0.0.5 in c:\users\kktk\anaconda3\envs\e7\lib\site-packages (from pyautogui) (0.0.9) Requirement already satisfied: mouseinfo in c:\users\kktk\anaconda3\envs\e7\lib\site-packages (from pyautogui) (0.1.3) Requirement already satisfied: PyTweening>=1.0.1 in c:\users\kktk\anaconda3\envs\e7\lib\site-packages (from pyautogui) (1.0.3) Requirement already satisfied: pyscreeze>=0.1.21 in c:\users\kktk\anaconda3\envs\e7\lib\site-packages (from pyautogui) (0.1.26) Requirement already satisfied: pyrect in c:\users\kktk\anaconda3\envs\e7\lib\site-packages (from pygetwindow>=0.0.5->pyautogui) (0.1.4) Requirement already satisfied: Pillow>=6.2.1 in c:\users\kktk\anaconda3\envs\e7\lib\site-packages (from pyscreeze>=0.1.21->pyautogui) (8.2.0) Requirement already satisfied: pyperclip in c:\users\kktk\anaconda3\envs\e7\lib\site-packages (from mouseinfo->pyautogui) (1.8.2)

(E7) C:\Users\kktk>"C:\Users\kktk\Desktop\E7-Auto-Shop-Refresh-main\Auto Refresh.py" Traceback (most recent call last): File "C:\Users\kktk\Desktop\E7-Auto-Shop-Refresh-main\Auto Refresh.py", line 9, in from pyautogui import * ModuleNotFoundError: No module named 'pyautogui'

ewanh26 commented 3 years ago

ill look through ur code now

ewanh26 commented 3 years ago

how come ur importing pyautogui twice? Import it once (delete line 9).

ngtunganh123 commented 2 years ago

I got same problem as well, delete line 9 doesn't seem work

EmaOlay commented 2 years ago

Hey, been a while since I last saw this, I have no idea why it won't work but surely as ewanh26 above mentioned it's probably has to do with lines 9 or 10 try one or the other see if that fixes it.