This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python throws `IOError: [Errno 27] File too large' on long file names
Type: behavior Stage: resolved
Components: IO Versions: Python 2.5
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: Jason.Gross, amaury.forgeotdarc, georg.brandl
Priority: normal Keywords:

Created on 2010-07-16 05:49 by Jason.Gross, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg110414 - (view) Author: Jason Gross (Jason.Gross) Date: 2010-07-16 05:49
On attempting to open files with sufficiently long file names, python throws IOError: [Errno 27] File too large.  This is misleading, and perhaps should be relabeled as 'File name too long.'

I have only tested this on unix with Python 2.5.2.  This error was thrown when I opened /afs/athena.mit.edu/user/j/g/jgross/web_scripts/alphabets/results/turk/armenian_01_A3NOO9K3CY1YU5.cstroke for writing.
msg110417 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2010-07-16 08:33
The file name is only 106 characters long, it's not too long.

"[Errno 27] File too large" probably refers to a big file larger than 2Gb.
Does your OS support large files?
msg110419 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-07-16 08:53
In any case, the error message comes from the operating system, not from Python, and I don't think we should introduce special cases here.
History
Date User Action Args
2022-04-11 14:57:03adminsetgithub: 53517
2012-08-18 01:12:17r.david.murraysetstatus: pending -> closed
stage: resolved
2010-07-16 08:53:44georg.brandlsetstatus: open -> pending

nosy: + georg.brandl
messages: + msg110419

resolution: wont fix
2010-07-16 08:33:54amaury.forgeotdarcsetnosy: + amaury.forgeotdarc
messages: + msg110417
2010-07-16 05:49:05Jason.Grosscreate