[python-users] python2.5 / commands / os.popen

Christopher Arndt chris.arndt at web.de
Do Jan 22 19:29:08 CET 2009


Stefan Pampel schrieb:
> mein derzeit eingesetzte Kalenderanwendung wxremind wirft seit kurzem
> einen Fehler aus, den ich nicht so recht zuordnen kann:
> 
> Traceback (most recent call last):
>   File "<stdin>", line 14, in <module>
>   File "/home/pampel/bin/wxremind/wxremind.py", line 1093, in main
>   File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7935, in __init__
>     self._BootstrapApp()
>   File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7509, in _BootstrapApp
>     return _core_.PyApp__BootstrapApp(*args, **kwargs)
>   File "/home/pampel/bin/wxremind/wxremind.py", line 1087, in OnInit
>   File "/home/pampel/bin/wxremind/wxremind.py", line 306, in __init__
>   File "/home/pampel/bin/wxremind/wxremind.py", line 507, in OnTimer
>   File "/home/pampel/bin/wxremind/wxremdata.py", line 183, in getMonths
>   File "/home/pampel/bin/wxremind/wxremdata.py", line 231, in slurp
>   File "/usr/lib/python2.5/commands.py", line 44, in getoutput
>     return getstatusoutput(cmd)[1]
>   File "/usr/lib/python2.5/commands.py", line 53, in getstatusoutput
>     pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
> OSError: [Errno 38] Function not implemented

Baue vor Zeile 231 in wxremind.py doch mal ein print statement ein, dass
"cmd" ausgibt und dann versuche "{ <inhalt von cmd> } 2>&1" in der Shell
auszuführen. Vielleicht gibt das ja schon Hinweise oder Fehlermeldungen.

Vielleicht benutzt os.popen() ja jetzt durch irgendeine eine
Systemänderung eine andere Shell, welche die Ausgabeumleitung nicht in
dieser Syntax unterstützt?


Chris



Mehr Informationen über die Mailingliste python-users