> There used to be a problem with subprocess fds being held by
> a traceback. IIRC, the problem could be triggered by having
> an except clause around a subprocess call within which something
> attempted to, eg,
> remove one of the affected files.
I have no subprocess call.. in this last issue.
On 24/05/2011 21:18, Claudiu Nicolaie CISMARU wrote:
Now. There is one more issue. Seems that on faster computers and/or
Windows 7 (the Win32 thing I have tested on a HVM Xen machine with
Windows XP) the os.rename is too fast after fp.close() and generates the
same Exception. The code follows:
c
On 5/24/2011 4:18 PM, Claudiu Nicolaie CISMARU wrote:
Seems that close_fds did the trick. Anyway, I read that description on
the documentation last night but I think I was so tired that I
understood that in Windows has no effect... :)
Now. There is one more issue. Seems that on faster computers
> Seems that close_fds did the trick. Anyway, I read that description on
> the documentation last night but I think I was so tired that I
> understood that in Windows has no effect... :)
Now. There is one more issue. Seems that on faster computers and/or
Windows 7 (the Win32 thing I have tested
I'm quoting a message that I received on personal address and wasn't
sent to list:
>
> try adding argument close_fds=True to subprocess.Popen
>
> harish
>
And Tim's message:
> It's not quite clear from your description above whether you
> can be sure that the called subprocess has closed all
On 24/05/2011 11:01, Claudiu Nicolaie CISMARU wrote:
The problem appears when I close the called program (in our case
calc.exe). The (1) part (the call of os.rename) raise an exception:
(32, 'The process cannot access the file because it is being used by
another process')
[Error 32] The process
Thanks for the suggestion, I am thinking implement a database system
for that.
JD
On Aug 2, 12:11 pm, Larry Bates <[EMAIL PROTECTED]> wrote:
> JD wrote:
> > Hi,
>
> > What I am trying to do is to run a subprocess on another machine using
> > subprocess.Popen, this subprocess contuinue writing som
JD wrote:
> Hi,
>
> What I am trying to do is to run a subprocess on another machine using
> subprocess.Popen, this subprocess contuinue writing something into a
> file when it is runing.
>
> After submit this subprocess, I tried to open the file and readlines()
> in the loop (with a delay) in th
Thanks for answering,
No, the data was writing into the file when the subprocess was
runing.
For example, every second it will write something into the file.
I tried to run another python program aside and it sucessfully read
the file when the subprocess was runing.
JD
On Aug 2, 11:00 am, Adri
On Aug 2, 12:41 pm, JD <[EMAIL PROTECTED]> wrote:
> Hi,
>
> What I am trying to do is to run a subprocess on another machine using
> subprocess.Popen, this subprocess contuinue writing something into a
> file when it is runing.
>
> After submit this subprocess, I tried to open the file and readline
>Tkinter has a file acces dialog available with the same API on all platforms.
>It is also mapped to the standard dialog on Windows.
> Since Tkinter is certainly installed by default with Python, if a file dialog
> is everything you need, you probably don't have to look further.
Great :)
Wout
For simple, it's hard to beat EasyGUI: http://www.ferg.org/easygui/
Bob
--
http://mail.python.org/mailman/listinfo/python-list
Wouter van Ooijen wrote:
>I have a tool in Python to which I want to add a small GUI. The tools
> currently runs everywhere PySerial is supported. I need a file-access
> dialog. What is the preffered way to to this? Is there a
> platform-independent file-access dialog available, or should I use th
On Fri, 26 Aug 2005 07:52:06 GMT, Wouter van Ooijen (www.voti.nl) <[EMAIL
PROTECTED]> wrote:
> I have a tool in Python to which I want to add a small GUI. The tools
> currently runs everywhere PySerial is supported. I need a file-access
> dialog. What is the preffered way to to this? Is there a
>
Well, I only know how to do it with Qt:
Dialog = QFileDialog(self.filedir, 'Python files (*.py)', self, 'open
file dialog')
self.filename = str( Dialog.getOpenFileName())
I don't think PyQt is available for Qt4 on windows yet.
You might be ablt to use this:
http://www.quadgames.c
15 matches
Mail list logo