Saturday, January 05, 2013

Python wrapper for Tumblr API


install easy_install:
sudo apt-get install python-setuptools

install simple json:

sudo easy_install simplejson

install python-tumblr
sudo easy_install

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/", line 7, in
    from requests.auth import OAuth1
ImportError: cannot import name OAuth1

uninstall packages installed with easy_install? near impossible.

sudo pip install oauth2
still doesnt work

sudo pip install requests.auth
still doesnt work

who said python was simple? :-/

No comments :