one suggestion:
I get an error when I do this:
>>> c = chr(129) >>> c + u'2' Traceback (most recent call last): File "<pyshell#21>", line 1, in <module> c + u'2' UnicodeDecodeError: 'ascii' codec can't decode byte 0x81 in position 0: ordinal not in range(128)
There is a unicode string passed in for the connection somewhere.
Can the path to the zip file be encoded in Unicode? What to do if you do this:
zip = zipfile.ZipFile(str(path1)) zip.extractall(str(path2))
or that:
zip = zipfile.ZipFile(unicode(path1)) zip.extractall(unicode(path2))
This is line 128 in ntpath:
def join(a, *p): # 63 for b in p: # 68 path += "\\" + b # 128
Second sentence:
from ntpath import * def join(a, *p): """Join two or more pathname components, inserting "\\" as needed. If any component is an absolute path, all previous path components will be discarded.""" path = a for b in p: b_wins = 0
source share