-
Notifications
You must be signed in to change notification settings - Fork 173
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
Python bug? #16
Comments
Hmm that is an odd one! Do you definitely have Python 3 installed? What is the output if you run: The only reason I ask is because I'm pretty sure f strings were introduced in Python 3 and that's what seems to be throwing a syntax error. If you don't have it installed, try running these commands before running the script again:
Merry Christmas to you, too! :) |
Hey. :)
jep i do have python installed... so.. even when i try to extra step to check:
|
Ah, okay - There's your problem.
F-strings were introduced in Python 3.6 so you need to find a way to
upgrade your version (I've not done this before). I'm assuming this is the
case as you're on Raspbian Stretch which is not the latest version
I believe the version I have installed is 3.7.3
|
Well, that is an minor problem i think. Just build it with: and now i just have to add .6 to the end of any command :D Thank you. :) |
Hello, I have just experienced this same issue myself when trying to install. I was hoping that there would be an issue already posted before that would help me troubleshoot, and I did find this one and resolved the issue in similar fashion. However, other users might not be as motivated as I to search through Closed Issues to figure out why things aren't working for them. I would suggest you add a Troubleshooting section to the main Readme that addresses this issue and points people towards a method for installing Python 3.6+ on their Pi. |
Hi :) This is a good idea - Perhaps I will link directly to this issue from the main readme page. I will add this to my to-do list. Thanks for the suggestion! |
root@raspberrypi:~# curl -sSl https://raw.githubusercontent.com/mmotti/pihole-regex/master/install.py | sudo python3 File "<stdin>", line 65 print(f'{path_pihole} was not found') ^ SyntaxError: invalid
is what i get when i try to use your Script (btw all of them ^^ Could you tell me why they are not working? :3 Thank you and Marry Christmess. :3
The text was updated successfully, but these errors were encountered: