looker-open-source / henry

A command line tool for Looker instance cleanup
MIT License
79 stars 27 forks source link

'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape #55

Open moseleyi opened 2 years ago

moseleyi commented 2 years ago

I created a looker.ini file in the working directory

[main]
base_url=https://<c>.looker.com/:19999
client_id=<client_id>
client_secret=<client_secret>
verify_ssl=True

Trying simple command henry pulse --section=main but getting the following error:

Traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Python38\Scripts\henry.exe\__main__.py", line 4, in <module>
  File "C:\Python38\lib\site-packages\henry\cli.py", line 33, in <module>
    logging.config.fileConfig(LOGGING_CONFIG_PATH,
  File "C:\Python38\lib\logging\config.py", line 79, in fileConfig
    handlers = _install_handlers(cp, formatters)
  File "C:\Python38\lib\logging\config.py", line 142, in _install_handlers
    args = eval(args, vars(logging))
  File "<string>", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
duduzai2019 commented 1 year ago

I created a looker.ini file in the working directory

[main]
base_url=https://<c>.looker.com/:19999
client_id=<client_id>
client_secret=<client_secret>
verify_ssl=True

Trying simple command henry pulse --section=main but getting the following error:

Traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Python38\Scripts\henry.exe\__main__.py", line 4, in <module>
  File "C:\Python38\lib\site-packages\henry\cli.py", line 33, in <module>
    logging.config.fileConfig(LOGGING_CONFIG_PATH,
  File "C:\Python38\lib\logging\config.py", line 79, in fileConfig
    handlers = _install_handlers(cp, formatters)
  File "C:\Python38\lib\logging\config.py", line 142, in _install_handlers
    args = eval(args, vars(logging))
  File "<string>", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

how can you deal with it?