Free-Games icon indicating copy to clipboard operation
Free-Games copied to clipboard

Sytax Error: Invalid Syntax

Open akirayorunoe opened this issue 3 years ago • 9 comments

i do all the instructions you said and run python Free_Games.py , it come with error image

akirayorunoe avatar Feb 07 '21 15:02 akirayorunoe

Did you clone this using Git or did you download it by hand?

MasonStooksbury avatar Feb 08 '21 18:02 MasonStooksbury

i clone using Git

akirayorunoe avatar Feb 09 '21 14:02 akirayorunoe

Do you care to copy and paste that line from the file? And maybe grab a few lines around it for context?

MasonStooksbury avatar Feb 11 '21 20:02 MasonStooksbury

try: if not wait_until_xpath_clickable_then_click("//*[text() = 'Get']"): raise TypeError("Unable to find 'Get' button") except: print("Failed to click on 'Get' button. Using parent element workaround... ", end='') if not wait_until_xpath_clickable_then_click("//*[text() = 'Get']/.."): raise TypeError("Workaround failed") else: print("Worked") if not wait_until_xpath_clickable_then_click("//*[text() = 'Place Order']"): raise TypeError("Unable to find 'Place Order' button") and if i comment that line, new error occur
image

akirayorunoe avatar Feb 12 '21 05:02 akirayorunoe

Looks like you're trying to run this with Python 2.7. You'll need to switch to Python 3 in order for this to work.

You can find that here: https://www.python.org/downloads/

MasonStooksbury avatar Feb 21 '21 01:02 MasonStooksbury

image

akirayorunoe avatar Feb 22 '21 12:02 akirayorunoe

Did you run the commands from the README? Specifically the "pip install -r requirements.txt"?

That should install all the modules you need

MasonStooksbury avatar Apr 23 '21 13:04 MasonStooksbury

@MasonStooksbury I followed the installation instructions but end up on the dotenv error as well, despite pip3 saying it is installed:

image

latere-a-latere avatar May 07 '21 20:05 latere-a-latere

Try using the --user flag or using pip instead of pip3. Lemme know if that works or not.

MasonStooksbury avatar May 09 '21 23:05 MasonStooksbury

I'm no longer going to update this repository. Please use this new and improved one that makes use of the Epic Games desktop app rather than logging in via the browser:

https://github.com/MasonStooksbury/Free-Games-V2

MasonStooksbury avatar Dec 27 '23 00:12 MasonStooksbury