twitter ImportError: No module named oauth_dance ?

This is the place for queries that don't fit in any of the other categories.

twitter ImportError: No module named oauth_dance ?

Postby Rushi Pandya » Fri Jul 26, 2013 5:18 am

I am getting this error while opening twitter python program in terminal..
If someone is having suggestion please help me in this...

Code: Select all
Traceback (most recent call last):
  File "twitter.py", line 6, in <module>
    import twitter
  File "/home/rkp/Documents/twitter.py", line 19, in <module>
    from twitter.oauth_dance import oauth_dance
ImportError: No module named oauth_dance
Last edited by Yoriz on Fri Jul 26, 2013 5:51 am, edited 2 times in total.
Reason: Added code tags and changed title.
Rushi Pandya
 
Posts: 1
Joined: Fri Jul 26, 2013 5:03 am

Re: twitter ImportError: No module named oauth_dance ?

Postby hansn » Fri Jul 26, 2013 7:36 am

How did you install the package? It seems the oauth_dance module did not install properly. You should be able to check the installation folder and see if there's a module (.py file) name oauth_dance.py there.

My only suggestion is to re-install the twitter package entirely.

Here's a good read on how modules and packages work in python: viewtopic.php?f=25&t=3952
It's a 3-part tutorial and you'll find the other parts in the 'tutorials' forum.
hansn
 
Posts: 87
Joined: Thu Feb 21, 2013 8:46 pm


Return to General Coding Help

Who is online

Users browsing this forum: bill z, snippsat and 3 guests