ivy icon indicating copy to clipboard operation
ivy copied to clipboard

init_logger() issue

Open sriks6711 opened this issue 2 years ago • 2 comments

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

sriks6711 avatar Mar 03 '22 16:03 sriks6711

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

nicholaskajoh avatar Mar 03 '22 19:03 nicholaskajoh

Thank you for your response Nicholas.

My Python versio is 3.9.2 E:\ivy>python --version Python 3.9.2

On Fri, 4 Mar 2022 at 00:45, Nicholas Kajoh @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/nicholaskajoh/ivy/issues/70#issuecomment-1058398259, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAECQSWZ6FBBWK26GLGBX2DU6EFVXANCNFSM5P3BNMDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

sriks6711 avatar Mar 03 '22 19:03 sriks6711