ImportError: Can't load a json library while easy_install Tweepy
was playing with these:
- http://parezcoydigo.wordpress.com/2011/04/23/twitter-from-the-command-line/
- http://talkfast.org/2010/05/31/twitter-from-the-command-line-in-python-using-oauth
Was trying to install Tweepy library for python.
Encountered below:
1) yum install python-setuptools -y [success]
2) easy_install tweepy [success]
3) Made a simple script, trying to make use of Tweepy [Failed]
so tried to easy_install simplejson, also failed:
[root@chi alakClient]# easy_install simplejson
Searching for simplejson
Reading http://cheeseshop.python.org/pypi/simplejson/
Reading http://github.com/simplejson/simplejson
Reading http://cheeseshop.python.org/pypi/simplejson/2.1.6
Best match: simplejson 2.1.6
Downloading http://pypi.python.org/packages/source/s/simplejson/simplejson-2.1.6.tar.gz#md5=2f8351f6e6fe7ef25744805dfa56c0d5
Processing simplejson-2.1.6.tar.gz
Running simplejson-2.1.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-mEH9fn/simplejson-2.1.6/egg-dist-tmp-2qtieS
simplejson/_speedups.c:1:20: error: Python.h: No such file or directory
simplejson/_speedups.c:2:26: error: structmember.h: No such file or directory
...
truncated
...
simplejson/_speedups.c:2650: error: expected expression before ‘)’ token
simplejson/_speedups.c:2651: error: expected expression before ‘)’ token
***************************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.
Failure information, if any, is above.
I'm retrying the build without the C extension now.
***************************************************************************
***************************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python installation succeeded.
***************************************************************************
Adding simplejson 2.1.6 to easy-install.pth file
Installed /usr/lib/python2.4/site-packages/simplejson-2.1.6-py2.4.egg
Processing dependencies for simplejson
So what was the issue? pyhton version!
sumply:
yum update python -y
and voila! \o/ Everyhting works perfectly. simplejson package was included in pyhton 2.6.
/alak
- http://parezcoydigo.wordpress.com/2011/04/23/twitter-from-the-command-line/
- http://talkfast.org/2010/05/31/twitter-from-the-command-line-in-python-using-oauth
Was trying to install Tweepy library for python.
Encountered below:
1) yum install python-setuptools -y [success]
2) easy_install tweepy [success]
3) Made a simple script, trying to make use of Tweepy [Failed]
so tried to easy_install simplejson, also failed:
[root@chi alakClient]# easy_install simplejson
Searching for simplejson
Reading http://cheeseshop.python.org/pypi/simplejson/
Reading http://github.com/simplejson/simplejson
Reading http://cheeseshop.python.org/pypi/simplejson/2.1.6
Best match: simplejson 2.1.6
Downloading http://pypi.python.org/packages/source/s/simplejson/simplejson-2.1.6.tar.gz#md5=2f8351f6e6fe7ef25744805dfa56c0d5
Processing simplejson-2.1.6.tar.gz
Running simplejson-2.1.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-mEH9fn/simplejson-2.1.6/egg-dist-tmp-2qtieS
simplejson/_speedups.c:1:20: error: Python.h: No such file or directory
simplejson/_speedups.c:2:26: error: structmember.h: No such file or directory
...
truncated
...
simplejson/_speedups.c:2650: error: expected expression before ‘)’ token
simplejson/_speedups.c:2651: error: expected expression before ‘)’ token
***************************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.
Failure information, if any, is above.
I'm retrying the build without the C extension now.
***************************************************************************
***************************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python installation succeeded.
***************************************************************************
Adding simplejson 2.1.6 to easy-install.pth file
Installed /usr/lib/python2.4/site-packages/simplejson-2.1.6-py2.4.egg
Processing dependencies for simplejson
So what was the issue? pyhton version!
sumply:
yum update python -y
and voila! \o/ Everyhting works perfectly. simplejson package was included in pyhton 2.6.
/alak
Comments
Post a Comment