[ python-Bugs-1732686 ] Built-in open function fail. Too many file open

SourceForge.net noreply at sourceforge.net
Thu Jun 7 15:08:17 CEST 2007


Bugs item #1732686, was opened at 2007-06-07 10:28
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1732686&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Python 2.3
>Status: Closed
>Resolution: Rejected
Priority: 5
Private: No
Submitted By: Alex (alexteo21)
Assigned to: Nobody/Anonymous (nobody)
Summary: Built-in open function fail. Too many file open

Initial Comment:
Hi,

I have created a cron script using python.
Every hour it will batch process certain files

e.g.

t=open(filename,'rb')
data=t.read()
#processing data...
t.close()

The script is working fine on the day of execution.
It is able to process the files.  However, when the next day comes, the processing fail!!

Traceback (most recent call last):
  File "./alexCopy.py", line 459, in processRequestModule
    sanityTestSteps(reqId,model)
  File "./alexCopy.py", line 699, in sanityTestSteps
    t = open(filename, 'rb')
IOError: [Errno 24] Too many open files:

I have explicitly closed the file.
Please help.

Thanks,
Alex

----------------------------------------------------------------------

>Comment By: Georg Brandl (gbrandl)
Date: 2007-06-07 13:08

Message:
Logged In: YES 
user_id=849994
Originator: NO

Please do *not* open another bug when your first one was closed!

If you think closing it was not correct, reopen the first one.
In this case, however, I referred you to comp.lang.python, so
*please* post the issue (and your script) there.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1732686&group_id=5470


More information about the Python-bugs-list mailing list