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

SyntaxError: Missing parentheses in call to 'print' #116

Open
davhan23 opened this issue Jun 10, 2019 · 2 comments
Open

SyntaxError: Missing parentheses in call to 'print' #116

davhan23 opened this issue Jun 10, 2019 · 2 comments

Comments

@davhan23
Copy link

Hello, I'm trying to run the SmartMirror Py for the first time and I'm getting this error. (line 201-202) I am new to this. Please help.

            if location2 == ", ":
                self.location = "Cannot Pinpoint Location"
                self.locationLbl.config(text="Cannot Pinpoint Location")
            else:
                self.location = location2
                self.locationLbl.config(text=location2)
    except Exception as e:
        traceback.print_exc()
        print "Error: %s. Cannot get weather." % e

    self.after(600000, self.get_weather)
@dangercrow
Copy link

Disclaimer, have not used this project at all.

However, that sounds awfully like you're using python 3 and the project is written in python 2.

Try using python from the command line instead of python3, if you're using the latter. If not, it gets a bit more complicated - I'd suggest googling "changing default python for "

@harishMadhavan1010
Copy link

In python 2, print statement did not require parantheses but in python 3, it is more like a function and require "( )". Just use ( ) and then change imports from Tkinter to tkinter. Then the code should run just fine in python 3 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants