[Bug 268945] Re: No module named CommandNotFound

2009-10-13 Thread Michael Vogt
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, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268945] Re: No module named CommandNotFound

2009-06-26 Thread Michael Vogt
This was fixed in jaunty:

...
  * command-not-found:
- remove -S from #!/usr/bin/python

 -- Michael Vogt michael.v...@ubuntu.com  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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268945] Re: No module named CommandNotFound

2008-10-28 Thread John Gill
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.

If I do:

python  /usr/lib/command-not-found ls

it works fine without an error.

So the fix here is either to remove the -S from the script or to fix the
python initialisation so that it sets the python path up ok in the case
when site.py is not imported.

-- 
No module named CommandNotFound
https://bugs.launchpad.net/bugs/268945
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268945] Re: No module named CommandNotFound

2008-10-18 Thread Marco Rodrigues
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.py

-- 
No module named CommandNotFound
https://bugs.launchpad.net/bugs/268945
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268945] Re: No module named CommandNotFound

2008-10-18 Thread Marco Rodrigues
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.launchpad.net/bugs/268945
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268945] Re: No module named CommandNotFound

2008-09-18 Thread Marco Rodrigues
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 module
import CommandNotFound
ImportError: No module named CommandNotFound

-- 
No module named CommandNotFound
https://bugs.launchpad.net/bugs/268945
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268945] Re: No module named CommandNotFound

2008-09-13 Thread Matteo Croce
[~]$ vin /etc/fstab
Traceback (most recent call last):
  File /usr/lib/command-not-found, line 8, in module
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-r--r-- 1 root root   45 2007-03-16 23:52 __init__.py
-rw-r--r-- 1 root root 1,8K 2008-07-23 14:44 util.py
[~]$ dpkg -l command-not-found
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ NameVersion Description
+++-===-===-==
ii  command-not-found   0.2.24ubuntu1   Suggest installation of 
packages in interactive bash sessions
[~]$ lsb_release -rd
Description:Ubuntu intrepid (development branch)
Release:8.10

** Changed in: command-not-found (Ubuntu)
   Status: New = Confirmed

-- 
No module named CommandNotFound
https://bugs.launchpad.net/bugs/268945
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268945] Re: No module named CommandNotFound

2008-09-11 Thread Homersp
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 is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs