> 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
Hello,
I have a program that uses pyside for an QT interface and a thread that
downloads a lot of files. The thread is created with QThread object. But
my problem I don't think it's QT related.
The thread retrieves with pycurl a file that contains a list of files
and start to downloads them.