[Bug 155508] os.getlogin fails on konsole

poseidon purpleposeidon at gmail.com
Sun Oct 21 20:02:00 UTC 2007

Public bug reported:

Binary package hint: konsole

Python's os.getlogin() function fails when it is runs under KDE
terminals (like, konsole, kate, and kdevelop). It does not fail under
virtual consoles, xterm, or gnome's terminal.

I've reproduced this konsole bug on both Kubuntu Edgy (Python 2.4.4c1) and Kubuntu Fiesty (Python 2.5.1)
To reproduce, open konsole, type  python  , type  import os; os.getlogin()

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
OSError: [Errno 2] No such file or directory

I guess konsole messes up some environment variables, or something.

** Affects: kdebase (Ubuntu)
     Importance: Undecided
         Status: New

os.getlogin fails on konsole
You received this bug notification because you are a member of Kubuntu
Team, which is a bug contact for kdebase in ubuntu.

More information about the kubuntu-bugs mailing list