Closed skillfully closed 10 years ago
Confirmed that demjson 2.0.1 is broken in Python 2.6.x. Will fix.
This is now fixed along with other Python 2.6 issues that I found in the new release version 2.2.
Tested with Python 2.6.9, and also with a narrow-Unicode build as that is the default config option when compiling Python 2.6.x.
Installing demjson v2.0.1 with Python v2.6.8 raises following error, because sys.version_info is returing a tuple and has no attribute 'major'.
-- snip -- Traceback (most recent call last): File "", line 1, in
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1992, in main
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1979, in with_ei_usage
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1996, in
File "/usr/local/Python-2.6.8/lib/python2.6/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/local/Python-2.6.8/lib/python2.6/distutils/dist.py", line 975, in run_commands self.run_command(cmd) File "/usr/local/Python-2.6.8/lib/python2.6/distutils/dist.py", line 995, in run_command cmd_obj.run() File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 380, in run
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 604, in easy_install
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 653, in install_item
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 849, in install_eggs
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1130, in build_and_install
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1115, in run_setup
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 69, in run_setup File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 120, in run File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 71, in
File "setup.py", line 7, in
AttributeError: 'tuple' object has no attribute 'major'
An error occured when trying to install demjson 2.0.1. Look above this message for any errors that were output by easy_install.
-- snap --