Anders Andreasen Blog

Just another weblog

pydb not working properly on Ubuntu 9.10

with 7 comments

I was trying to use pydb with ddd in order to debug a python script. However when invoking ddd with e.g.
ddd clamied that it could not find pydb. I tried running pydb from the command line and I was left with a message like
The program 'pydb' is currently not installed. You can install it by typing:
sudo apt-get install pydb
pydb: command not found

Ok, so I tried to install it
sudo apt-get install pydb
Reading package lists... Done
Building dependency tree
Reading state information... Done
pydb is already the newest version.

Hmmm, strange. Google, google, google……….
It turned out that some else had experienced the same problem as me and provided a fix. Apparently the link to pydb in /usr/bin is broken. The fix is
sudo rm /usr/bin/pydb
sudo ln -s /usr/lib/python2.4/site-packages/pydb/ /usr/bin/pydb


Written by aandreasen

March 18, 2010 at 8:46 pm

Posted in GNU/Linux, Programming, Python, Ubuntu

Tagged with , , ,

7 Responses

Subscribe to comments with RSS.

  1. So have you started using Ubuntu for your desktop? I read a older post suggesting CentOS, (I’m looking to possibly use it for daily workstation use). Also I’ve been having issues with various Python related items (issues w/ easy_install) in Ubuntu lately which is another reason I want to look into CentOS.


    March 25, 2010 at 2:23 pm

    • Yes currently I am using Ubuntu 9.10. I started experimenting with Centos, since we are considering to move from Suse to Rocks/CentOS at work. However, for full blown desktop usage I found myself messing around with outdated packaged e.g. I had trouble installing a fairly recent version of Miro, hence the transition to Ubuntu. I will try out easy_install. Right now I am relying on numpy, scipy, matplotlib and similar packages already in the Ubuntu repository. I haven’t relied on easy_install yet, although it is a very convinient tool.


      March 25, 2010 at 4:00 pm

    • Btw, just tried easy_install on python. Installed with
      sudo apt-get install python-setuptools
      You must run easy_install with sudo i.e.
      # sudo easy_install somepackage


      March 25, 2010 at 4:18 pm

  2. Great! Thanks for the info! I’m giving Mandriva gnome a chance and its a pleasure for the most part, really don’t like urpmi but aside from that its decent. Keep up the writing! look forward to your next post.


    March 26, 2010 at 1:05 pm

  3. i did sudo apt-get install pydb but i got an error on ubuntu 9.10 :

    Reading symbols from /usr/bin/python…(no debugging symbols found)…done.
    (gdb) quit
    please tell me how to install debugging symbols.

    sanam singh

    April 19, 2010 at 12:51 pm

    • Sounds like you’re running gdb instead of pydb like e.g.
      gdb python

      Call either pydb directly from the command line

      or through ddd

      Hope this works for you


      April 19, 2010 at 6:20 pm

  4. Forgot to mention, install a python version with debugging symbols with
    $ sudo apt-get install python2.x-dbg
    Replace x with whatever version of python is installed (2.6 on Ubuntu 9.10)
    $ gdb python2.6-dbg
    (gdb) run [programname].py [arguments]
    see e.g.


    April 19, 2010 at 6:32 pm

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: