[03:58] <mssbrg> how stable/unstable is Vivid? would it be a bad idea to upgrade?
[09:13] <lordievader> Good morning.
[12:14] <BluesKaj> Hiyas all
[16:45] <ngaio> I would like some help determining under which component I should file a bug relating to python raising a FileNotFoundError when calling os.getlogin(). The odd thing is that it happens when running in the KDE session, but in Unity it works as expected. There are no problems with os.getenv('USER') under KDE.
[16:46] <lordievader> ngaio: What is calling that function?
[16:47] <ngaio> lordievader, my code :-)
[16:47] <lordievader> ngaio: Could you pastebin it?
[16:48] <ngaio> lordievader, python -c 'import os; print os.getlogin()'
[16:49] <lordievader> ngaio: What is the full traceback you get?
[16:50] <ngaio> Traceback (most recent call last):
[16:50] <ngaio>   File "<string>", line 1, in <module>
[16:50] <ngaio> OSError: [Errno 2] No such file or directory
[16:51] <lordievader> !paste | ngaio
[16:51] <ngaio> lordievader, http://paste.ubuntu.com/10391745/
[16:51] <lordievader> Hmm, that is strange. Do you get the same behaviour in python3?
[16:52] <ngaio> lordievader, yes, but of course I have to change the print statement to be in python3 format first
[16:52] <ngaio> and as I say, it works fine under a Unity session
[16:53] <lordievader> That is very strange...
[16:54] <ngaio> lordievader, and why this works, I don't know: python -c "import os; print os.getenv('USER')"
[16:54] <lordievader> That reads the $USER environment variable.
[16:55] <ngaio> I guess the other call tries something else first! I haven't looked at the python OS module code
[16:56] <lordievader> ngaio: Python finds this not a Python bug: https://mail.python.org/pipermail/python-bugs-list/2002-July/012691.html
[16:57] <ngaio> that's from 2002!
[16:57] <ngaio> thanks for picking that up - I should have googled that myself
[16:58] <lordievader> ngaio: From where are you calling this?
[17:00] <ngaio> lordievader, I'm the author of Rapid Photo Downloader and I'm porting it from PyGtk + python multiprocessing to PyQt + 0mq
[17:00] <lordievader> So you are running it from a mortal user?
[17:00] <ngaio> what is a mortal user?
[17:01] <lordievader> Normal user without any real permissions, i.e. not root.
[17:01] <ngaio> lordievader, yes, a regular user
[17:01] <lordievader> Hmm...
[17:02] <lordievader> No idea, really... -.-
[18:06] <rww> "i assume the + in +1 won't break it" -> Turns out it does :(
[18:12] <lordievader> rww: ?
[18:13]  * rww points at his last comment before then in scrollback
[18:13] <lordievader> rww: Ah, fancy.