wikiteam
wikiteam copied to clipboard
IOError: [Errno 2] on dumpgenerator with image filename containing /
From [email protected] on January 27, 2014 21:09:34
I am using dumpgenerator revision r882 on windows 7 and I am getting the following error:
Traceback (most recent call last):
File "dumpgenerator.py", line 1220, in
Attachment: errno2.png
Original issue: http://code.google.com/p/wikiteam/issues/detail?id=86
From [email protected] on January 31, 2014 07:01:34
Another Wikia wiki... I wonder if this is the same as issue 81 . Ah, no, it's probably that slash in the filename. Does someone know how to handle Windows?
Summary: IOError: [Errno 2] on dumpgenerator with image filename containing / (was: IOError: [Errno 2] on dumpgenerator)
Labels: OpSys-Windows
Would just truncating or replacing with _ and adding the hash be sufficient?
Would just truncating or replacing with _ and adding the hash be sufficient?
Truncation should already be handled. If the slash works outside Windows I'd avoid additional sanitisation for everyone, though.
/ is the one character not allowed in filenames on Linux. Has this really been open for over a year now? I ran into this issue today so I made a pull request: https://github.com/WikiTeam/wikiteam/pull/249. Sorry if it overlooks some earlier fix.
I don't know why this weird bug is still a thing, but you can work around it by cd'ing a directory up and choosing the directory you were just in through the path argument or whatever other things you were using.