[jira] [Commented] (IGNITE-6660) Python Redis example fails for python 3 run
[ https://issues.apache.org/jira/browse/IGNITE-6660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16216770#comment-16216770 ] ASF GitHub Bot commented on IGNITE-6660: Github user asfgit closed the pull request at: https://github.com/apache/ignite/pull/2879 > 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)
[jira] [Commented] (IGNITE-6660) Python Redis example fails for python 3 run
[ https://issues.apache.org/jira/browse/IGNITE-6660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16214234#comment-16214234 ] Oleg Ostanin commented on IGNITE-6660: -- Added new configuration file for Redis examples. [~ntikho...@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)
[jira] [Commented] (IGNITE-6660) Python Redis example fails for python 3 run
[ https://issues.apache.org/jira/browse/IGNITE-6660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16211172#comment-16211172 ] Sergey Kozlov commented on IGNITE-6660: --- I tested the suggested changes for Python 2.7/3.6. It works. Also would be good to add a separate config file to start node(s) for redis example > 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)
[jira] [Commented] (IGNITE-6660) Python Redis example fails for python 3 run
[ https://issues.apache.org/jira/browse/IGNITE-6660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)
[jira] [Commented] (IGNITE-6660) Python Redis example fails for python 3 run
[ https://issues.apache.org/jira/browse/IGNITE-6660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16209521#comment-16209521 ] Oleg Ostanin commented on IGNITE-6660: -- [~ntikho...@apache.org] Please review the changes https://github.com/apache/ignite/pull/2879 > 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)
[jira] [Commented] (IGNITE-6660) Python Redis example fails for python 3 run
[ https://issues.apache.org/jira/browse/IGNITE-6660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16209518#comment-16209518 ] ASF GitHub Bot commented on IGNITE-6660: GitHub user oleg-ostanin opened a pull request: https://github.com/apache/ignite/pull/2879 IGNITE-6660 fixed Python Redis example (print statements) You can merge this pull request into a Git repository by running: $ git pull https://github.com/gridgain/apache-ignite ignite-6660 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/ignite/pull/2879.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2879 commit 5b2329fb1f75de4c41592868c58be92fa5a908da Author: oleg-ostaninDate: 2017-10-18T15:16:19Z IGNITE-6660 fixed Python Redis example (print statements) > 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)