Saturday, January 05, 2013

Python wrapper for Tumblr API

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

Ubuntu:

install easy_install:
sudo apt-get install python-setuptools

install simple json:

sudo easy_install simplejson

install python-tumblr
sudo easy_install http://python-tumblr.googlecode.com/files/python-tumblr-0.1.zip

and then... it doesnt work!

Gotta use Tumblr's super complicated v2 API, yay for progress..

Enters Tumblpy:

sudo easy_install pip
sudo easy_install oauth
sudo pip install python-tumblpy

doesnt work


>>> import tumblpy
Traceback (most recent call last):
  File "", line 1, in
  File "/usr/local/lib/python2.7/dist-packages/tumblpy.py", line 7, in
    from requests.auth import OAuth1
ImportError: cannot import name OAuth1



uninstall packages installed with easy_install? near impossible.
http://stackoverflow.com/questions/1231688/how-do-i-remove-packages-installed-with-pythons-easy-install

sudo pip install oauth2
still doesnt work

sudo pip install requests.auth
still doesnt work


who said python was simple? :-/

No comments :