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

Reply via email to