I mark this fix released as its fixed in jaunty and onwards.
** Changed in: command-not-found (Ubuntu)
Status: Confirmed => Fix Released
--
"No module named CommandNotFound"
https://bugs.launchpad.net/bugs/268945
You received this bug notification because you are a member of Ubuntu
Bugs,
This was fixed in jaunty:
...
* command-not-found:
- remove "-S" from "#!/usr/bin/python"
-- Michael Vogt Mon, 02 Mar 2009 09:15:48
+0100
--
"No module named CommandNotFound"
https://bugs.launchpad.net/bugs/268945
You received this bug notification because you are a member of Ubuntu
Bu
Using intrepid I'm getting the same problem.
Looking at /usr/lib/command-not-found the top line is as follows:
#!/usr/bin/python -S
The -S says don't import site.py on initialisation. Now it looks that
site.py is necessary to got the path set up correctly to find the
CommandNotFound module.
I
The strange thing is.. it doesn't show this error when I do:
$ python
Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import CommandNotFound
--
"No module named CommandNotFound"
https://bugs.launch
I've that directory and the files inside it, but it still doesn't work.
I've purged the package command-not-found and command-not-found-data,
installed them and installed also using --reinstall and still doesn't
work.
$ ls /usr/share/pyshared/CommandNotFound
CommandNotFound.py __init__.py util.p
I've upgraded from Hardy to Intrepid and already purged package command-
not-found and installed it again. I still got this error:
$ sdf sdf
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 8, in
import CommandNotFound
ImportError: No module named CommandNotFound
[~]$ vin /etc/fstab
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 8, in
import CommandNotFound
ImportError: No module named CommandNotFound
[~]$ ll /usr/share/pyshared/CommandNotFound/
totale 16K
-rw-r--r-- 1 root root 6,7K 2008-08-19 09:48 CommandNotFound.py
-rw
Seems like a python error. Would you check so
/usr/share/pyshared/CommandNotFound exists?
You can also try reinstalling command-not-found.
--
"No module named CommandNotFound"
https://bugs.launchpad.net/bugs/268945
You received this bug notification because you are a member of Ubuntu
Bugs, which