File "traceback.pyo", line 298, in extract_stack
TypeError: fake_getline() takes exactly 2 arguments
Logged In: NO
Also run into this as well. Found the following after some
googling as a work around:
Logged In: YES
Another testcase on 2.5. regularly it gives a ValueError. when py2exe'd, it gives the fake_getline error:
for (a, b) in []:
print a, b
if sys.exc_info() != KeyboardInterrupt:
print "An error has occured!"
similar issue reported with workaround: http://osdir.com/ml/python.pyobjc.devel/2006-10/msg00031.html
You can also implement a workaround on windows:
OLD: def fake_getline(filename, lineno):
NEW: def fake_getline(filename, lineno, module_globals=None):
Tested on win xp sp2, enu, py 2.5 with py2exe 0.6.5
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.