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

Syntax Error when running customiser.py #24

Closed
kaylamillerdev opened this issue Jul 16, 2020 · 6 comments
Closed

Syntax Error when running customiser.py #24

kaylamillerdev opened this issue Jul 16, 2020 · 6 comments
Labels
bug Something isn't working right

Comments

@kaylamillerdev
Copy link

kaylamillerdev commented Jul 16, 2020

FILL OUT THIS TEMPLATE, REMOVING/REPLACING EVERYTHING HERE WITH YOUR OWN INFORMATION.
BE AS CLEAR AND CONCISE AS POSSIBLE.

describe the bug
what is the bug - what happens?

I'm running 'python customiser.py' in the command prompt and getting a syntax error. (see screenshot below).

expected behaviour
why is this a bug - what should be happening?

Shouldn't be getting an error

screenshots
if applicable, add screenshots of your problem.

image

platform
what OS are you using? e.g. windows 7, windows 10, WSL, ubuntu, arch linux, macOS
Windows 10

@kaylamillerdev kaylamillerdev added the bug Something isn't working right label Jul 16, 2020
@kaylamillerdev
Copy link
Author

image

I also opened up the cleaner file in Visual Studio Code and it also has an error. I think it's because of differences between Python 2 and 3 but I am not familiar at all with Python.

@kaylamillerdev
Copy link
Author

PS: when I disable the Python linter, VSCode doesn't say there are any problems, but it still gives the same exact error messages.

@dragonwocky
Copy link
Member

dragonwocky commented Jul 16, 2020

what version of python are you running? in theory that error should only be occurring on python 2, though a couple people have reported weird stuff on python 3.8 that i haven't been able to reproduce yet.

for lines that print()/log something, you can probably just delete them. otherwise you might need to translate the f-strings into normal strings with concatenation (just 'text ' + variable instead of f'text variable').

this is already fixed in the wip update (see the js branch), btw. that should be ready for beta-testing by Monday or Tuesday.

@kaylamillerdev
Copy link
Author

kaylamillerdev commented Jul 16, 2020 via email

@dragonwocky
Copy link
Member

if you just run the python command alone to enter the shell it'll print the version up the top: if it says anything below 3.6 you may need to run with python3 instead

@kaylamillerdev
Copy link
Author

Installing the windows store python fixed it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right
Projects
None yet
Development

No branches or pull requests

2 participants