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:
try:
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)
except:
print "Unexpected error:", sys.exc_info()[0]
raise
time.sleep(10)
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:
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.
Post a Comment