[Bug 1077533] Re: pydoc complains it cant get into my gnome-keyring
Moses Moore
1077533 at bugs.launchpad.net
Wed Dec 12 03:20:18 UTC 2012
I removed packag 'python-gnomekeyring'
$ dpkg -S /usr/lib/python2.7/dist-packages/gtk-2.0/gnomekeyring.sopython-gnomekeyring: /usr/lib/python2.7/dist-packages/gtk-2.0/gnomekeyring.so
$ sudo dpkg -r python-gnomekeyring
$ pydoc -k cheezburger
WARNING: gnome-keyring:: couldn't connect to: /run/user/moses/keyring-thWOug/pkcs11: No such file or directory
... something is still trying to get into my keyring.
$ cat /tmp/strace.log | grep keyr | grep -v ENOENT | grep \\.so
open("/usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so", O_RDONLY|O_CLOEXEC) = 12
Based on your last comment, I used `</tmp/strace.log egrep '^open' |grep
-v ENOENT |less` to get a better idea of what python modules could be
asking for gnome keyring access during some python importing automagic.
open("/usr/lib/python2.7/dist-packages/uno.py", O_RDONLY|O_LARGEFILE) = 3
open("/usr/lib/python2.7/dist-packages/unohelper.py", O_RDONLY|O_LARGEFILE) = 3
openat(AT_FDCWD, "/usr/lib/python2.7/dist-packages/urlgrabber", O_RDONLY|O_NONBL
OCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
open("/usr/lib/python2.7/dist-packages/urlgrabber/__init__.py", O_RDONLY|O_LARGE
FILE) = 3
open("/usr/lib/python2.7/dist-packages/urlgrabber/__init__.py", O_RDONLY|O_LARGE
FILE) = 3
open("/usr/lib/python2.7/dist-packages/urlgrabber/__init__.py", O_RDONLY|O_LARGE
FILE) = 3
open("/usr/lib/python2.7/dist-packages/urlgrabber/__init__.pyc", O_RDONLY|O_LARG
EFILE) = 5
open("/usr/lib/python2.7/dist-packages/urlgrabber/grabber.py", O_RDONLY|O_LARGEF
ILE) = 5
open("/usr/lib/python2.7/dist-packages/urlgrabber/grabber.pyc", O_RDONLY|O_LARGE
FILE) = 11
open("/usr/lib/python2.7/dist-packages/urlgrabber/byterange.py", O_RDONLY|O_LARG
EFILE) = 11
open("/usr/lib/python2.7/dist-packages/urlgrabber/byterange.pyc", O_RDONLY|O_LAR
GEFILE) = 12
open("/dev/urandom", O_RDONLY) = 11
openat(AT_FDCWD, "/etc/pkcs11/modules", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECT
ORY|O_CLOEXEC) = 12
open("/etc/pkcs11/modules/gnome-keyring.module", O_RDONLY) = 14
open("/usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so", O_RDONLY|O_CLOEXEC) = 12
I'll try removing python-urlgrabber as well and re-run the test. ... and
**pass**.
NEW steps to reproduce the problem:
$ pydoc -k cheezburger
(no output)
$ sudo apt-get install python-urlgrabber
$ pydoc -k cheezburger
WARNING: gnome-keyring:: couldn't connect to: /run/user/moses/keyring-thWOug/pkcs11: No such file or directory
$ sudo dpkg -r python-urlgrabber
$ pydoc -k cheezburger
(no output)
Someone close this bug -- I'll file a new one against python-urlgrabber.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1077533
Title:
pydoc complains it cant get into my gnome-keyring
Status in “python-defaults” package in Ubuntu:
New
Bug description:
$ pydoc -k cheezburger
No handlers could be found for logger "OpenGL.Tk"
WARNING: gnome-keyring:: couldn't connect to: /run/user/moses/keyring-XXXXXX/pkcs11: No such file or directory
I can't only think of one good and not-scary reason why pydoc needs my
authentication credentials when it should be searching text files on
the local harddrive -- if I had an network filesystem on autofs
somewhere in Python's sys.path -- but I do not.
I expect pydoc's '-k' would search the .__doc__ for modules in the
following directories:
$ python -c 'import sys; print repr(sys.path)' |sed 's/, /,\n /g'
['',
'/usr/local/lib/python2.7/dist-packages/PyAMF-0.6.1-py2.7-linux-i686.egg',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7',
'/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
'/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: python 2.7.3-0ubuntu7
ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
Uname: Linux 3.5.0-17-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.6.1-0ubuntu6
Architecture: i386
Date: Sat Nov 10 20:18:08 2012
MarkForUpload: True
SourcePackage: python-defaults
UpgradeStatus: Upgraded to quantal on 2012-10-19 (22 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/1077533/+subscriptions
More information about the foundations-bugs
mailing list