2554: Newest version of simplejson used with RBTools doesn't support Python 2.4.

mail*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Jan. 19, 2014
[root@ln-swami swami]# easy_install -U RBTools
bash: easy_install: command not found
[root@ln-swami swami]# yum install python-setuptools
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.hmc.edu
 * extras: centos-distro.cavecreek.net
 * rpmforge: ftp-stud.fht-esslingen.de
 * updates: mirrors.kernel.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-setuptools.noarch 0:0.6c5-2.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
 Package                                      Arch                              Version                                Repository                       Size
=============================================================================================================================================================
Installing:
 python-setuptools                            noarch                            0.6c5-2.el5                            base                            479 k

Transaction Summary
=============================================================================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 479 k
Is this ok [y/N]: y
Downloading Packages:
python-setuptools-0.6c5-2.el5.noarch.rpm                                                                                              | 479 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : python-setuptools                                                                                                                     1/1

Installed:
  python-setuptools.noarch 0:0.6c5-2.el5

Complete!
[root@ln-swami swami]# easy_install -U RBTools
Searching for RBTools
Reading http://cheeseshop.python.org/pypi/RBTools/
Reading http://www.reviewboard.org/
Reading http://downloads.reviewboard.org/releases/RBTools/0.4/
Reading http://cheeseshop.python.org/pypi/RBTools/0.4.1
Best match: RBTools 0.4.1
Downloading http://downloads.reviewboard.org/releases/RBTools/0.4/RBTools-0.4.1-py2.4.egg
Processing RBTools-0.4.1-py2.4.egg
Moving RBTools-0.4.1-py2.4.egg to /usr/lib/python2.4/site-packages
Adding RBTools 0.4.1 to easy-install.pth file
Installing post-review script to /usr/bin

Installed /usr/lib/python2.4/site-packages/RBTools-0.4.1-py2.4.egg
Processing dependencies for RBTools
Searching for simplejson
Reading http://cheeseshop.python.org/pypi/simplejson/
Reading http://github.com/simplejson/simplejson
Reading http://cheeseshop.python.org/pypi/simplejson/2.4.0
Best match: simplejson 2.4.0
Downloading http://pypi.python.org/packages/source/s/simplejson/simplejson-2.4.0.tar.gz#md5=0020e2b33ee8a9b156e0652a96d9eeba
Processing simplejson-2.4.0.tar.gz
Running simplejson-2.4.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-nzo-WF/simplejson-2.4.0/egg-dist-tmp-Au7md1
  File "build/bdist.linux-x86_64/egg/simplejson/encoder.py", line 390
    if (not _bigint_as_string or
     ^
SyntaxError: invalid syntax
zip_safe flag not set; analyzing archive contents...
simplejson.tests.__init__: module references __file__
  File "/usr/lib/python2.4/site-packages/simplejson-2.4.0-py2.4-linux-x86_64.egg/simplejson/encoder.py", line 390
    if (not _bigint_as_string or
     ^
SyntaxError: invalid syntax
Adding simplejson 2.4.0 to easy-install.pth file

Installed /usr/lib/python2.4/site-packages/simplejson-2.4.0-py2.4-linux-x86_64.egg
[root@ln-swami swami]#   File "build/bdist.linux-x86_64/egg/simplejson/encoder.py", line 390
bash: File: command not found
[root@ln-swami swami]# cat /etc/redhat-release
CentOS release 5.6 (Final)
chipx86
#1 chipx86
Looks like simplejson dropped Python 2.4 compatibility.

You'll have to do some research and find out what older version you can run without problems. We can then hard-code support for that for Python 2.4. But be warned that we will also be dropping Python 2.4 support before long, so you really may want to consider upgrading.
  • +Confirmed
  • +Component-RBTools
  • +Newest version of simplejson used with RBTools doesn't support Python 2.4.
#2 mail*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Thanks for the quick diagnosis & response.
david
#3 david
Given that we've officially dropped support moving forward, I don't think this is worth spending more time on.
  • -Confirmed
    +WontFix