sezuan / uploadr

XEP-0363 CLI upload tool
MIT License
7 stars 4 forks source link

Syntax error #2

Closed thundergreen closed 7 years ago

thundergreen commented 7 years ago

(python) pi@home-assistant:~/uploadr $ ./uploadr.py -h File "./uploadr.py", line 37 print self.short(get_url) ^ SyntaxError: invalid syntax

I installed accordiung to your short tutorial and get this error. I activad venv but get this error. Do you have a hint for me?

        # Upload File

        try:
            get_url = self['xep_0363'].upload_file(self.filename)
            if self.shorten_url:
                print self.short(get_url)
            else:
                print get_url
        except IqError as err:
thundergreen commented 7 years ago

Solved by installing pythin 2.7 env