Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging Error #272

Open
vikaspattathe opened this issue Jul 22, 2020 · 0 comments
Open

Logging Error #272

vikaspattathe opened this issue Jul 22, 2020 · 0 comments

Comments

@vikaspattathe
Copy link

--- 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',)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant