[Bug 983875] Re: lots of ImportWarning noise
Launchpad Bug Tracker
983875 at bugs.launchpad.net
Tue Apr 17 11:35:31 UTC 2012
** Branch linked: lp:~ubuntu-core-dev/command-not-found/ubuntu
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to command-not-found in Ubuntu.
https://bugs.launchpad.net/bugs/983875
Title:
lots of ImportWarning noise
Status in “command-not-found” package in Ubuntu:
New
Bug description:
$ foo
/usr/lib/command-not-found:12: ImportWarning: Not importing directory '/usr/lib/gettext': missing __init__.py
import gettext
/usr/lib/python2.7/gettext.py:49: ImportWarning: Not importing directory '/usr/lib/locale': missing __init__.py
import locale, copy, os, re, struct, sys
/usr/lib/python2.7/dist-packages/aptsources/sourceslist.py:35: ImportWarning: Not importing directory '/usr/lib/apt': missing __init__.py
from apt.deprecation import function_deprecated_by
/usr/lib/python2.7/httplib.py:1136: ImportWarning: Not importing directory '/usr/lib/ssl': missing __init__.py
import ssl
No command 'foo' found, did you mean:
Command 'fio' from package 'fio' (universe)
Command 'goo' from package 'goo' (universe)
Command 'fop' from package 'fop' (main)
Command 'fox' from package 'objcryst-fox' (universe)
Command 'xoo' from package 'xoo' (universe)
Command 'fgo' from package 'fgo' (universe)
Command 'zoo' from package 'zoo' (universe)
foo: command not found
This is untidy, and arises from c-n-f's odd installation path.
Perhaps forcibly remove /usr/lib from sys.path to avoid this?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/983875/+subscriptions
More information about the foundations-bugs
mailing list