Package: python-dogtail
Version: 0.8.2-1
Usertags: serious
I can't use the dogtail.utils module:
$ python -c 'import dogtail.utils'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/dogtail/utils.py", line 20, in <module>
from config import config
File "/usr/lib/python2.7/dist-packages/dogtail/config.py", line 15, in <module>
class _Config(object):
File "/usr/lib/python2.7/dist-packages/dogtail/config.py", line 117, in _Config
'scratchDir' : '/'.join((_userTmpDir('dogtail'), '')),
File "/usr/lib/python2.7/dist-packages/dogtail/config.py", line 13, in
_userTmpDir
return '-'.join(('/'.join(('/tmp', baseName)), os.getlogin()))
OSError: [Errno 2] No such file or directory
os.getlogin() is almost never what you want. The documentation says[0]
that “for most purposes, it is more useful to use the environment
variable LOGNAME to find out who the user is, or
pwd.getpwuid(os.getuid())[0] to get the login name of the currently
effective user id.”
[0] https://docs.python.org/2/library/os.html#os.getlogin
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 3.12-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-dogtail depends on:
ii python 2.7.5-5
ii python-apt 0.9.3.5
ii python-gi 3.10.2-2+b1
ii python-gi-cairo 3.10.2-2+b1
ii python-pyatspi 2.10.0+dfsg-1
ii xvfb 2:1.15.0.901-1
Versions of packages python-dogtail recommends:
pn imagemagick <none>
pn python-celementtree | python-elementtree <none>
--
Jakub Wilk
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]