ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Ostanin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-6660) Python Redis example fails for python 3 run
Date Sun, 22 Oct 2017 08:52:00 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-6660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16214234#comment-16214234
] 

Oleg Ostanin commented on IGNITE-6660:
--------------------------------------

Added new configuration file for Redis examples.

[~ntikhonov@apache.org] please review.

> 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)

Mime
View raw message