Issue 9271: Python throws `IOError: [Errno 27] File too large' on long file names (original) (raw)

Issue9271

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:03 admin set github: 53517
2012-08-18 01:12:17 r.david.murray set status: pending -> closedstage: resolved
2010-07-16 08:53:44 georg.brandl set status: open -> pendingnosy: + georg.brandlmessages: + resolution: wont fix
2010-07-16 08:33:54 amaury.forgeotdarc set nosy: + amaury.forgeotdarcmessages: +
2010-07-16 05:49:05 Jason.Gross create