[
https://issues.apache.org/jira/browse/IGNITE-6660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16209572#comment-16209572
]
Nikolay Tikhonov commented on IGNITE-6660:
------------------------------------------
[~oleg-ostanin],
Thank you for your contribution! Let's make this example compatibility with
second version python too. For it need to add just one import. Please, look at
a post on
[SO|https://stackoverflow.com/questions/32032697/how-to-use-from-future-import-print-function].
> Python Redis example fails for python 3 run
> -------------------------------------------
>
> Key: IGNITE-6660
> URL: https://issues.apache.org/jira/browse/IGNITE-6660
> Project: Ignite
> Issue Type: Bug
> Security Level: Public(Viewable by anyone)
> Components: examples
> Affects Versions: 1.8, 1.9, 2.0, 2.1, 2.2
> Reporter: Sergey Kozlov
> Assignee: Oleg Ostanin
> Fix For: 2.3
>
>
> Looks like python redis example fails due to design python 2. But for python
> 3 run raised the following error:
> {noformat}
> File
> "/var/lib/teamcity/data/work/17028f058b6ef75f/i2test/var/suite-examples/gg-pro-fab/examples/redis/redis-example.py",
> line 32
> print 'Value for "k1": %s' % r.get('k1')
> ^
> SyntaxError: invalid syntax
> {noformat}
> The suggested fix is to put brackets for print calls:
> -{{print 'Value for "k1": %s' % r.get('k1')}}-
> {{print('Value for "k1": %s' % r.get('k1'))}}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)