keiffster / program-y

Python 3.x based AIML 2.0 Chatbot interpreter, framework, related programs and knowledge files
https://keiffster.github.io/program-y/
Other
348 stars 138 forks source link

Logging Error #272

Open vikaspattathe opened 4 years ago

vikaspattathe commented 4 years ago

--- Logging error --- Traceback (most recent call last): File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\site-packages\programy\clients\events\console\client.py", line 75, in wait_and_answer self.process_question_answer(client_context) File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\site-packages\programy\clients\events\console\client.py", line 67, in process_question_answer question = self.get_question(client_context) File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\site-packages\programy\clients\events\console\client.py", line 47, in get_question return input(ask) #pylint: disable=input-builtin KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\logging\handlers.py", line 69, in emit self.doRollover() File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\logging\handlers.py", line 170, in doRollover self.rotate(self.baseFilename, dfn) File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\logging\handlers.py", line 110, in rotate os.rename(source, dest) PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:\mybot\scripts\windows\template.log' -> 'D:\mybot\scripts\windows\template.log.1' Call stack: File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\site-packages\programy\clients\events\console\client.py", line 100, in run() File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\site-packages\programy\clients\events\console\client.py", line 98, in run console_app.run() File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\site-packages\programy\clients\events\client.py", line 53, in run self.run_loop() File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\site-packages\programy\clients\events\client.py", line 34, in run_loop self._running = self.wait_and_answer() File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\site-packages\programy\clients\events\console\client.py", line 80, in wait_and_answer self._renderer.render(client_context, client_context.bot.get_exit_response(client_context)) File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\site-packages\programy\bot.py", line 259, in get_exit_response exit_response = client_context.brain.ask_question(client_context, sentence) File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\site-packages\programy\brain.py", line 413, in ask_question conversation = client_context.bot.get_conversation(client_context) File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\site-packages\programy\bot.py", line 216, in get_conversation return self._conversation_mgr.get_conversation(client_context) File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\site-packages\programy\dialog\convo_mgr.py", line 70, in get_conversation YLogger.debug(client_context, "Retrieving conversation for client %s", client_context.userid) File "C:\Users\vikas_6bd7bsg\AppData\Local\Programs\Python\Python37-32\lib\site-packages\programy\utils\logging\ylogger.py", line 184, in debug logging.debug(YLogger.format_message(caller, message), *args, **kwargs) Message: '[Console] [bot] [brain] [Console] - Retrieving conversation for client %s' Arguments: ('Console',)