Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.

init_logger() issue #70

Open
sriks6711 opened this issue Mar 3, 2022 · 2 comments
Open

init_logger() issue #70

sriks6711 opened this issue Mar 3, 2022 · 2 comments

Comments

@sriks6711
Copy link

I am getting the following error when I try to run the main program -

E:\ivy>python -m main
Traceback (most recent call last):
File "C:\Users\sriks\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\sriks\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "E:\ivy\main.py", line 21, in
init_logger()
File "E:\ivy\util\logger.py", line 59, in init_logger
file_formatter = CustomJsonFormatter('(created) (logger) (level) (message)')
File "C:\Users\sriks\AppData\Local\Programs\Python\Python39\lib\site-packages\pythonjsonlogger\jsonlogger.py", line 112, in init
logging.Formatter.init(self, *args, **kwargs)
File "C:\Users\sriks\AppData\Local\Programs\Python\Python39\lib\logging_init
.py", line 570, in init
self.style.validate()
File "C:\Users\sriks\AppData\Local\Programs\Python\Python39\lib\logging_init
.py", line 423, in validate
raise ValueError("Invalid format '%s' for '%s' style" % (self._fmt, self.default_format[0]))
ValueError: Invalid format '(created) (logger) (level) (message)' for '%' style

@nicholaskajoh
Copy link
Owner

Can you try to run it with Python 3.5, 3.6 or 3.7?

@sriks6711
Copy link
Author

sriks6711 commented Mar 3, 2022 via email

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

No branches or pull requests

2 participants