question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cfn2py SyntaxError with missing parentheses

See original GitHub issue

cfn2py in troposphere version 2.4.6 is failing with

File "/usr/bin/cfn2py", line 52 print 'from troposphere import Base64, Select, FindInMap, GetAtt, GetAZs, Join, Output, If, And, Not, Or, Equals, Condition' ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('from troposphere import Base64, Select, FindInMap, GetAtt, GetAZs, Join, Output, If, And, Not, Or, Equals, Condition')?

At first I thought it may still be a Python2 script, but right at the top it says

#!/usr/bin/python3.6

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
markpeekcommented, May 18, 2019

Just release 2.4.7 which has the latest cfn2py script.

0reactions
Marakaicommented, May 18, 2019

Update:

I cloned the repo, then did

$ sudo pip3 uninstall troposphere
$ python3 setup.py sdist
$ sudo pip3 install dist/troposphere-2.4.6.tar.gz

and this same version number package now has the correct cfn2py script (and it looks like some other fixes too!). Should the version actually say 2.4.7 which is why pypi didn’t pick up the fixes?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does "SyntaxError: Missing parentheses in call to 'print ...
This error message means that you are attempting to use Python 3 to follow an example or run a program that uses the...
Read more >
Python Error · Issue #8617 - Missing parenthesis - GitHub
Missing Parenthesis When i tried to use azure-cli for the first time after ... SyntaxError: Missing parentheses in call to 'print'.
Read more >
What does "SyntaxError: Missing parentheses in call to 'print ...
PYTHON : What does " SyntaxError : Missing parentheses in call to 'print'" mean in Python? [ Gift : Animated Search Engine ...
Read more >
python missing parentheses in call to 'print' mean in Python?
While running the above code if you are getting this “SyntaxError: Missing parentheses in call to 'print'” error it means that you are...
Read more >
Python SyntaxError: Missing parentheses in call to 'print'
On Career Karma, learn about the Python SyntaxError: Missing parentheses in call to 'print' error, how the error works, and how to solve...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found