ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Kozlov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-6660) Python Redis example fails for python 3 run
Date Wed, 18 Oct 2017 10:05:00 GMT
Sergey Kozlov created IGNITE-6660:

             Summary: 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: 2.2, 2.1, 2.0, 1.9, 1.8
            Reporter: Sergey Kozlov
             Fix For: 2.3

Looks like python redis example fails due to design python 2. But for python 3 run raised
the following error:
  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

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

View raw message