python jaunty django virtualization

the first problem that i ran into after installing Ubuntu 9.04 is that I could not start my django application and it threw error.

i had followed the django installation instructions available at its website and had made a symbolic link of my svn check out of django source to /usr/lib/python2.5/site-packages

later I realized that the default python with jaunty is 2.6 and hence decided to change it to 2.5 (also i could not find site-packages directory under /usr/lib/python2.6/ but did found dist-packages under it.)

here is all that i did to change the python’s default version to 2.5 from 2.6

i removed the symbolic link /usr/bin/python and linked it to python 2.5

$ sudo ln -s /usr/bin/python2.5 python

later i edited /usr/share/python/debian_defaults file and changed the default-version to python2.5

and started my django app successfully..

recently I upgraded my RAM for virtualization reasons and installed all related packages.. but when i tried starting the virt-manager, it threw error ‘No module named libvirt’

again it was due the version change that I did with regard to python, and I did the following for the virt-manager to work properly from the /usr/lib/python2.5/site-packages/ directory,

sudo ln -s /usr/lib/python2.6/dist-packages/libvirt.pyc .
sudo ln -s /usr/lib/python2.6/dist-packages/ .
sudo ln -s /usr/lib/python2.6/dist-packages/ .
sudo ln -s /usr/lib/python2.6/dist-packages/ .

3 Responses to python jaunty django virtualization

  1. Michael says:

    Hi amachu,

    Just wondering why you didn’t stick with the default python2.6 – as it’s listed as a suitable version on the Django installation page?

    Also, perhaps you’re keen to use the bleeding-edge django (it’s always pretty safe hey!), but otherwise, you could also install the python-django package (via apt-get or synaptic) which installs 1.0.2-1 on Jaunty.


  2. Спасибо. было познавательно.

  3. Thanks for the article. I am new at python and this is a big help.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: