when “import twitter” report “ImportError: No module named simplejson”

Posted on August 27, 2009. Filed under: Python |

When I use python-twitter in windows python 2.6:

“import twitter” will have error “ImportError: No module named simplejson”

The simplest solve method:

1. check if there is package  json: import json

2. find the “Python26\Lib\site-packages\twitter.py”, modify the beginning line “import simplejson” to ”import json as simplejson’

3. recall again, it should be solved

References:

http://code.google.com/p/python-twitter/

Advertisements

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: