http://bugs.winehq.org/show_bug.cgi?id=10157
Summary: Python's os module calls can't execute commands Product: Wine Version: 0.9.47. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-msvcrt AssignedTo: wine-bugs@winehq.org ReportedBy: mpartap@gmx.net
With the native python 2.5 and running current WINE, the python os module can not call any commands. The subprocess module works just fine. Minimal test case: create a file test.py: import os print os.popen("echo test").read() and invoke python on it. Nothing happens, while it SHOULD output test on the screen. Loading native msvcrt did not fix this. Also the wcmd.exe is somehow messed up a bit. I am going to investigate this under windows and with GIT head soon, for now reporting the bug.
http://bugs.winehq.org/show_bug.cgi?id=10157
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com Status|UNCONFIRMED |NEW Component|wine-msvcrt |wine-misc Ever Confirmed|0 |1 Keywords| |download
--- Comment #1 from Dan Kegel dank@kegel.com 2007-10-24 15:33:14 --- Yeah. And worse, just running wine python doesn't give you the python prompt properly.
Running it in wineconsole doesn't either, until you hit ^C.
This is the case with both python-2.4.2 and python-2.5.1, and both wine-0.9.9 and current git.
(We should NOT need wineconsole to run commandline apps like python, btw. Every few months somebody breaks this. But since the problem seems to happen in both wine and wineconsole, I'm not going to push the panic button on that rant yet.)
http://bugs.winehq.org/show_bug.cgi?id=10157
Marcel Partap mpartap@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID
--- Comment #2 from Marcel Partap mpartap@gmx.net 2007-10-26 22:03:28 --- mmh, as was suggested on the kde-windows mailing list ("fix your wine first") the problem went away by doing a fresh wineprefixcreate.. it's just like the real stuff: format c: and everything is back to normal ;D Also python now works all well, however it is run. hit a different problem though: piping is broken, f.e. dir|more doesn't work as expected. I looked at the source and had some fun with breaking the pointers but I totally do not grasp how it should work and what is going wrong. Report in a new bug? Seems to be a small, 1-2 byte problem in WCMD_ReadAndParseLine and WCMD_pipe ...
http://bugs.winehq.org/show_bug.cgi?id=10157
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2007-10-26 22:05:11 --- Closing invalid