mssbrg | how stable/unstable is Vivid? would it be a bad idea to upgrade? | 03:58 |
---|---|---|
lordievader | Good morning. | 09:13 |
BluesKaj | Hiyas all | 12:14 |
=== Malsasa_ is now known as Malsasa | ||
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:45 |
lordievader | ngaio: What is calling that function? | 16:46 |
ngaio | lordievader, my code :-) | 16:47 |
lordievader | ngaio: Could you pastebin it? | 16:47 |
ngaio | lordievader, python -c 'import os; print os.getlogin()' | 16:48 |
lordievader | ngaio: What is the full traceback you get? | 16:49 |
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:50 |
lordievader | !paste | ngaio | 16:51 |
ubottu | ngaio: For posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic. | 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:51 |
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:52 |
lordievader | That is very strange... | 16:53 |
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:54 |
ngaio | I guess the other call tries something else first! I haven't looked at the python OS module code | 16:55 |
lordievader | ngaio: Python finds this not a Python bug: https://mail.python.org/pipermail/python-bugs-list/2002-July/012691.html | 16:56 |
ngaio | that's from 2002! | 16:57 |
ngaio | thanks for picking that up - I should have googled that myself | 16:57 |
lordievader | ngaio: From where are you calling this? | 16:58 |
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:00 |
lordievader | Normal user without any real permissions, i.e. not root. | 17:01 |
ngaio | lordievader, yes, a regular user | 17:01 |
lordievader | Hmm... | 17:01 |
lordievader | No idea, really... -.- | 17:02 |
rww | "i assume the + in +1 won't break it" -> Turns out it does :( | 18:06 |
lordievader | rww: ? | 18:12 |
* rww points at his last comment before then in scrollback | 18:13 | |
lordievader | rww: Ah, fancy. | 18:13 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!