-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOError: [Errno 2] on dumpgenerator with image filename containing / #86
Comments
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) |
From [email protected] on January 31, 2014 07:25:36 Issue 63 has been merged into this issue. |
From [email protected] on January 31, 2014 07:28:57 Blockedon: wikiteam:73 |
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: #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. |
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
main()
File "dumpgenerator.py", line 1211, in main
resumePreviousDump(config=config, other=other)
File "dumpgenerator.py", line 1127, in resumePreviousDump
generateImageDump(config=config, other=other, images=images, start=lastfilename2) # we resume from previous image, which may be corrupted (or missing .desc)
by the previous session ctrl-c or abort
File "dumpgenerator.py", line 673, in generateImageDump
urllib.urlretrieve(url=url, filename='%s/%s' % (imagepath, filename2) )
File "C:\Python27\lib\urllib.py", line 94, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
File "C:\Python27\lib\urllib.py", line 244, in retrieve
tfp = open(filename, 'wb')
IOError: [Errno 2] No such file or directory: './norunescapewikiacom-20140127-wikidump/images/Engelsk/Norsk.png'
Attachment: errno2.png
Original issue: http://code.google.com/p/wikiteam/issues/detail?id=86
The text was updated successfully, but these errors were encountered: