Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7638153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:06:17+00:00 2026-05-31T08:06:17+00:00

i am trying to install simplejson2.4 on RedHat however getting: SyntaxError: Invalid syntax encoder.py

  • 0

i am trying to install simplejson2.4 on RedHat however getting:

SyntaxError: Invalid syntax encoder.py line 390

Output:

[~/tmp/simplejson-2.4.0]# python setup.py install
running install
running build
running build_py
running build_ext
running install_lib
byte-compiling /lib64/python2.4/site-packages/simplejson/encoder.py to encoder.pyc
  File "/lib64/python2.4/site-packages/simplejson/encoder.py", line 390
    if (not _bigint_as_string or
     ^
SyntaxError: invalid syntax

Code

...
388         elif isinstance(value, (int, long)):
389                         yield ((buf + str(value))
390                                if (not _bigint_as_string or
391                                    (-1 << 53) < value < (1 << 53))
392                                    else (buf + '"' + str(value) + '"'
...

please advise

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:06:18+00:00Added an answer on May 31, 2026 at 8:06 am

    simplejson requires python 2.5. Either upgrade your python (recommended), use an older version of simplejson or try ultrajson which, afair, supports python 2.4.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to install pear package and keep getting this strange error. Can you shed
I was trying to install bundler in Linux Mint. but I'm getting this error
I'm trying install pycrypto on osx with easy_install and I'm getting the following error:
While trying to install Mongodb grails plug in for grails application, i am getting
Trying to install some gems under jruby 1.6, but getting connection refused: $ gem
when trying to install cygwin, I keep getting this error message: the entry point
When trying to install Imagemagick via Macports, I keep getting an error when it
Trying to install memcached-northscale and getting a weird error. Any help would be appreciated.
I am trying: install.packages(RGoogleDocs, repos = http://www.omegahat.org/R) As suggested here , but it doesn't
Trying to install the RMagick gem is failing with an error about being unable

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.