I just rented a VPS from Linode which has python2.5 and ubuntu 8.04. When I run this command from python
shell:
import urllib
I get:
ImportError: No module named urllib
What can be the reason? How can I add this module to python? Isn't it prepackaged with the basic version?
Can it be PYTHONPATH problem?
I use a later OS, so I don't know if this will help, but just in case:
Ok, I resolved the issue. Somehow, python-tk package (which includes urllib) was missing.
So the following line fixed the problem