From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rajanikanth Jammalamadaka Newsgroups: gmane.emacs.bugs Subject: bug#14366: 24.3; Python os.getlogin does not work Date: Wed, 8 May 2013 18:29:59 -0400 Message-ID: References: <87li7q17m9.fsf@ubuntu.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec5215ea965fd2d04dc3c79c4 X-Trace: ger.gmane.org 1368052270 19806 80.91.229.3 (8 May 2013 22:31:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 May 2013 22:31:10 +0000 (UTC) Cc: 14366@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 09 00:31:10 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UaCt9-0005Vr-BM for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 May 2013 00:31:07 +0200 Original-Received: from localhost ([::1]:47503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaCt8-0004X7-Vh for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 May 2013 18:31:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaCt4-0004X1-1y for bug-gnu-emacs@gnu.org; Wed, 08 May 2013 18:31:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UaCt3-0004HF-0W for bug-gnu-emacs@gnu.org; Wed, 08 May 2013 18:31:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaCt2-0004HB-TO for bug-gnu-emacs@gnu.org; Wed, 08 May 2013 18:31:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UaCt3-0006Xw-Lm for bug-gnu-emacs@gnu.org; Wed, 08 May 2013 18:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rajanikanth Jammalamadaka Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 May 2013 22:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14366 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14366-submit@debbugs.gnu.org id=B14366.136805220624983 (code B ref 14366); Wed, 08 May 2013 22:31:01 +0000 Original-Received: (at 14366) by debbugs.gnu.org; 8 May 2013 22:30:06 +0000 Original-Received: from localhost ([127.0.0.1]:34221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UaCs9-0006Uo-HG for submit@debbugs.gnu.org; Wed, 08 May 2013 18:30:06 -0400 Original-Received: from mail-pb0-f42.google.com ([209.85.160.42]:45635) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UaCs6-0006UA-7Q for 14366@debbugs.gnu.org; Wed, 08 May 2013 18:30:03 -0400 Original-Received: by mail-pb0-f42.google.com with SMTP id up7so1534557pbc.29 for <14366@debbugs.gnu.org>; Wed, 08 May 2013 15:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=UQ95GF78t9VOL/k+dxyGayTa99CHeoLRj3PSuoE8n0s=; b=D4fHQ8hw0x7xp9iimzPFhXLlO/vgPPZfGzhxO8cedXPBfdwHQCtlg1ntJPDhs5Y0r2 Ab6w1spBDJdhVaVAFEHckuHwCiy7Y4UHWImdX26g5wT1Tc1NNhIyi1tL+1ANI8bPqWiR Q2SgrJukoYMvOMHA4wUxWzKfr6m20UFHFm/GHA8kahKKgUGaokIYKt3zF+jKiYk+4vIS 8RBGInYUpb3C6bVP4YLQIB+MfJuYnPRZbBcu+QmrGJ+6HSaGSowHvN3Zj88nrOFvX4Gt 2BZaA6AGbIaB/lwS3QlmJ1l8Kk+PCpr6TBEXgefOfsGsQlaA4HL2+XdAcs8XnZOMRqP/ CuKA== X-Received: by 10.68.1.34 with SMTP id 2mr9718746pbj.3.1368052199715; Wed, 08 May 2013 15:29:59 -0700 (PDT) Original-Received: by 10.66.228.105 with HTTP; Wed, 8 May 2013 15:29:59 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74091 Archived-At: --bcaec5215ea965fd2d04dc3c79c4 Content-Type: text/plain; charset=ISO-8859-1 > > FileNotFoundError: [Errno 2] No such file or directory > > Works for me. Found various old Python bugs related to this: > > http://bugs.python.org/issue584566 > http://bugs.python.org/issue1750013 > > > System Description: Ubuntu 13.04 > Thanks. Please close it. I will use pwd which is the recommended module: >>> pwd.getpwuid(os.getuid())[0] pwd.getpwuid(os.getuid())[0] 'rajanikanth' Thanks, Raj -- Rajanikanth --bcaec5215ea965fd2d04dc3c79c4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

=
> FileNotFoundError: [Errno 2] No such file or directory

Works for me. Found various old Python bugs related to this:

http://bug= s.python.org/issue584566
http://bu= gs.python.org/issue1750013

> System Description: =A0 Ubuntu 13.04

Thanks. Please close it. I will use pwd which is the= recommended module:

>>> pwd.getpwuid(os.ge= tuid())[0]
pwd.getpwuid(os.getuid())[0]
'rajanikanth'

Thanks,
Raj

--
Rajanikanth
--bcaec5215ea965fd2d04dc3c79c4--