Syntax error when running setup.py
Closed this issue · 2 comments
I get the following error message:
byte-compiling build/bdist.linux-x86_64/egg/been/cli.py to cli.cpython-33.pyc
File "build/bdist.linux-x86_64/egg/been/cli.py", line 29
print 'No {desc} matching \'{key}\''.format(desc=desc, key=key)
^
SyntaxError: invalid syntax
I'm not the most experienced Python coder by far, but it looks fine to me. Is this supposed to run on Py2, and I've skipped over that? If so, how do I get this running on Py3, since everything else compiled fine? Cheers.
Looked it up, it's because print is now a function in Py3. I'll leave it alone so it continues to work in Py2, and will create a repo for a Py3 version later. Sorry for the dumb mistake.
Thanks for the update! I'd happily accept a pull request that converts
these via from future import print_function
.
On Nov 2, 2014 8:04 AM, "theg721" notifications@github.com wrote:
Looked it up, it's because print is now a function in Py3. I'll leave it
alone so it continues to work in Py2, and will create a repo for a Py3
version later. Sorry for the dumb mistake.—
Reply to this email directly or view it on GitHub
#4 (comment).