You are not logged in.
Hi there,
I have a problem with my python2 and this simple script:
#/home/peta/simple.py
import platform
print platform.system()
When I run it from urxvt with "python2 /home/peta/simple.py", everything is just fine. But when I start it either from dmenu_run or gmrun, I'll get the following error:
Traceback (most recent call last):
File "/home/peta/simple.py", line 3, in <module>
sysname = platform.system()
File "/usr/lib/python2.7/platform.py", line 1310, in system
return uname()[0]
File "/usr/lib/python2.7/platform.py", line 1277, in uname
processor = _syscmd_uname('-p','')
File "/usr/lib/python2.7/platform.py", line 1012, in _syscmd_uname
rc = f.close()
IOError: [Errno 10] No child processes
Initially, I was trying to blame it on dmenu_run (https://bbs.archlinux.org/viewtopic.php … 0#p1332000), but it seems to be a problem with my python or system.
My dmenu_run is started from 2bwm WM with execvp, my .xinitrc ends like this:
2bwm &
exec urxvt
Am I missing something? Any ideas are welcome.
Last edited by mrinx (2013-10-10 19:15:25)
English isn't my first language.
Is Arch Linux user called archer? Where are our bows and arrows?
Offline
So, I kind of have a solution. I'm not sure, if I should blame 2bwm or python or threads or children... I guess the problem is caused by interthread communication, or something similar to it (I believe).
Anyway, my solution is to use xbindings for starting dmenu_run instead of starting it with shortcut defined in my wm.
English isn't my first language.
Is Arch Linux user called archer? Where are our bows and arrows?
Offline