Sunday, May 31, 2009

"The directory or file cannot be created (0x52)" error while installing S60 5th Edition SDK

While installing some of the newer SDK from Forum Nokia I'm getting greeted by the following error:

Nice, after looking at that bloated folder it's clearly that my FAT32 partition can't cope with the multitude of files that Nokia chose to dump there.

A quick look at FN reveals that others have the same problem (see here) and a suggestion for a fix, by deleting the resources for languages other than English.

So I went ahead an wrote the following script that does the trick:

import fnmatch
import os
import time

path = 'C:\\S60\\devices\\S60_5th_Edition_SDK_v1.0\\epoc32\\release\\winscw\\udeb\\z\\resource'

while True:

for file in os.listdir(path):
if (fnmatch.fnmatch(file, '*.r0[023456789]') or
fnmatch.fnmatch(file, '*.r[123456789][0123456789]') or
fnmatch.fnmatch(file, '*.r[123456789][0123456789][0123456789]')):
print file
os.remove(path + '\\' + file)

except IOError as (errno, strerror):
print "I/O error({0}): {1}".format(errno, strerror)
except WindowsError as (errno, strerror):
print "Windows error({0}): {1}".format(errno, strerror)
print "Unexpected error:", sys.exc_info()[0]


Update the path variable with your installation path and run this script after you hit the first error and chose retry. When you're done with the install kill the script.

1 comment:

Bindesh Kumar Singh said...

Thanks l lot Bogdan. I wasn't able to install the sdk due to this error, i was keeping i key pressed until full installation. Even after that i wasn't able to see SDK detected by Carbide and other IDEs.

Thanks again for you script.