IOError 4 with pipes
Giuseppe Corbelli
cowo at braveheart.cowo.net
Wed Apr 3 04:01:49 EST 2002
Hi
I've done a pygtk GUI to cmdline program (global source indexing) as a
plugin for glimmer text editor.
It uses os.popen to exec the prog and read the output.
I developed it with Python 2.1 without problems.
Updated Linux distro do Mdk 8.2 and began getting
Traceback (most recent call last):
File "/usr/lib/python2.2/site-packages/libglade.py", line 28, in __call__
ret = apply(self.func, a)
File "/usr/local/share/glimmer/scripts/Global.py", line 510, in
__on_searchbutton_cb
completionlist = self.search (tag, self.__searchtype)
File "/usr/local/share/glimmer/scripts/Global.py", line 162, in search
for line in xreadlines.xreadlines (pipe):
IOError: [Errno 4] Interrupted system call
Offending line is
pipe = os.popen (self.__global_path+" -ax '"+initial_string+"'", 'r')
Of course exe path is correct.
Tried other pipe methods (popen2,3,popen3 class) without luck, keep getting
same error.
I am unable to understand why.
--
Giuseppe "Cowo" Corbelli \/\ My software: http://cowo.yoda2000.net
**ANTI-SPAM** -- **Substitute IHATESPAM with cowo to reply by mail**
[cowo at braveheart cowo]$ make sex
make: *** No rule to make target 'sex'. Stop.
More information about the Python-list
mailing list