Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

i upgraded python to 2.7 and i am getting errors with command-not-found -

Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 8, in <module>
    import CommandNotFound
ImportError: No module named CommandNotFound


@6730b]j> lsb_release -rd
Description:    Ubuntu 10.10
Release:    10.10

When i switch back to 2.6, it works fine! Is there a fix for this with python 2.7?

share|improve this question

closed as too localized by qbi, fossfreedom Feb 25 at 23:31

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

all the releases of python keep their modules separate.

Are you using any of the modules in that code ?

if yes as you just did an upgrade, you should check available modules and its path

python -c "help('modules')"
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.