Closed josephisticated closed 5 months ago
What's the output of python -V
? (or py -V
)
I see you mentioned you installed 3.8.3, but just making sure the correct version is actually running.
output is Python 3.8.3
In that case, probably worth deleting your python modules folder and re-installing the requirements.
cleared the modules' folder and reinstalled default ones, ran pip install -r requirements.txt
and then tried again but having the same error again.
My guess would be that you somehow have two different modules directories somehow? Maybe try creating a venv in anaconda if it's convenient for you?
I'm not completely sure though, those two steps should've knocked out most common issues.
If anybody else has experience with a similar issue, please feel free to chime in!
Hey Detergent, I'm getting the same error here; "PyAutoGUI was unable to import pyscreeze. (This is likely because you're running a version of Python that Pillow (which pyscreeze depends on) doesn't support currently.) Please install this module to enable the function you tried to call." Tried your suggestions to joseph and still the same, any solutions to this?
Tried your suggestions to joseph and still the same, any solutions to this?
Hi, is it sometimes happening, always?
did u just start using it or have been for a longer time?
Hey,
Thanks for replying on a Sunday! I actually just installed it today and ran into the pyscreeze error. But yeah it just never started for me.
Please keep in mind that I'm not a Python developer, a newbie web dev here.
TO BE IGNORED
pyscreeze
if you have a bit of time, we could try some trouble shooting
try switching out def end_match()
def end_match():
while not onscreen("./captures/find match ready.png"): # added a main loop for the end match function to ensure you make it to the find match button.
while onscreen("./captures/missions ok.png"):
click_to("./captures/missions ok.png")
time.sleep(2)
while onscreen("./captures/skip waiting for stats.png"):
click_to("./captures/skip waiting for stats.png")
time.sleep(5)
while onscreen("./captures/play again.png"):
click_to("./captures/play again.png")
play()
best to do a copy of the tft.py and change it there then testrun it
we took out the screenshot function
Yes sir, just booting it up now.
another test you could do is go to your "cmd" type "pip list" scroll down and check what version your pyscreeze is
play() is not defined.
ups, my bad, we never implemented the screenshot function here.
just delete that try and check ur pyscreeze verison
Everything seems to be in order declared in requirements.txt
@Detergent13 you are better at this
some info drop from me Pillow 9.0.0 pip 23.0.1 (could be updated) PyAutoGUI 0.9.50 PyScreeze 0.1.28
Is the script running with the these updated versions of packages? Should I just go ahead and change the requirements to these and try again?
Sorry, I completely forgot to respond to this. That's certainly worth a try! I would also recommend giving a virtual environment such as anaconda a shot- make a new environment with Python 3.8.3, install the requirements, and attempt to run under the environment.
Should be fixed in #138
getting this output with python 3.8.3:
downloaded dependencies too