1

I'm trying to send my title post to twitter. In my local machine, this is working great, but in the remote machine, I have this error from the snippet file:

AttributeError: 'module' object has no attribute 'Api'

I'm using python-twitter and this snippet. I don't know why the error is being thrown. I tested the python-twitter with commands like import twitter and I sent the post to twitter from the python shell.

Qwerky
  • 18,217
  • 6
  • 44
  • 80
Asinox
  • 6,747
  • 14
  • 61
  • 89

2 Answers2

0

I had the same problem on a project recently. Do you have a folder in your application directory named twitter or a file named twitter.py? A file or folder in your application directory can create a conflict with the python-twitter library.

Thomas
  • 1,402
  • 1
  • 11
  • 14
0

Either installation is not proper. Anyway , take look at the documentation at http://code.google.com/p/python-twitter/

Jijoy
  • 12,386
  • 14
  • 41
  • 48