85Views2Replies

Author Options:

PyTumblr tumblrRestClient? Answered

Hi, i can't succeed to connect to Tumblr. I've got this error:

code (variables are correctly set):

import pytumblr
client = pytumblr.TumblrRestClient( consumer_key, consumer_secret, token_key, token_secret)

output:

client = pytumblr.TumblrRestClient( consumer_key, consumer_secret, token_key, token_secret)
AttributeError: 'module' object has no attribute 'TumblrRestClient'

I tried to uninstall pytumblr and reinstall it, still same error.

Any idea?

Discussions

None
LiliwoL

2 years ago

I'm trying to use pytumblr with IDLE and it works! But it doesn't when i'm calling my script with command lines...

I'm stuck. Any ideas please?

None
bekathwiaLiliwoL

Best Answer 2 years ago

Are you using Python 2 to run it from the command line? That's what worked for me:

python testPytumblr.py

not python3 testPytumblr.py