Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669568 - sys-cluster/crmsh - crm: SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Ctrl-C, leaving")?
Summary: sys-cluster/crmsh - crm: SyntaxError: Missing parentheses in call to 'print'....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-25 10:17 UTC by Hector Martin
Modified: 2019-12-12 22:25 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hector Martin 2018-10-25 10:17:14 UTC
Emerge says:

[ebuild   R   ~] sys-cluster/crmsh-3.0.3::gentoo  PYTHON_TARGETS="python3_6 -python3_5 -python3_7" 0 KiB

But the package is definitely using Python 2 syntax.

# crm
Traceback (most recent call last):
  File "/usr/bin/crm", line 35, in <module>
    from crmsh import main
  File "/usr/lib64/python3.6/site-packages/crmsh/main.py", line 271
    print "Ctrl-C, leaving"
                          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Ctrl-C, leaving")?

Looks like this needs to switch to PYTHON_SINGLE_TARGET="python2_7" (I'm not sure if it even makes sense to install crmsh to potentially multiple python slots).
Comment 1 Carlos Konstanski 2019-06-19 18:05:34 UTC
This bug appears to be fixed in master. We just need an update to the package. Could we please confirm this bug and move forward?
Comment 2 Carlos Konstanski 2019-06-19 18:13:29 UTC
I'm pressing the crmsh team to make a tag that contains the fixes. See https://github.com/ClusterLabs/crmsh/issues/454
Comment 3 Carlos Konstanski 2019-06-21 15:05:39 UTC
The clusterlabs team created the tag 4.1.0. Please version-bump sys-cluster/crmsh!
Comment 5 Hector Martin 2019-12-02 04:05:39 UTC
Ping? Looks like this just needs a version bump at this point.
Comment 6 Ultrabug gentoo-dev 2019-12-12 22:25:10 UTC
okay mates, bumped!