Home » Blog » Problems With Python-Twitter

Problems with python-twitter

Although python-twitter was working fine on my local development machine, I couldn’t get it working on my Slicehost Ubuntu VPS. The error Django/Python would throw was:

‘module’ object has no attribute ‘Api’ twitter

Basically if you get any error where a module can be imported but is missing an attribute then it’s because the wrong module is being imported. In my case it was because I’d inadvertently installed Python Twitter Tools instead of python-twitter and the former was taking precedence.

To remove the offending module I went to usr/lib/python2.5/site-packages and removed the .egg file followed by the appropriate line from easy-install.pth. I believe I might have also had to restart Apache to get it to work too. You can do that with sudo /etc/init.d/apache2 reload.

0 Comments

Add Your Opinions

Latest Tweet

Recent Posts

Elsewhere