TypeError: Logger.__init__() got an unexpected keyword argument 'patcher'
Closed this issue · 1 comments
borisprosto commented
After installing the async-openai package I try to run the example from the documentation and get an error:
File "D:\PythonProject\async-openai-bot\venv\lib\site-packages\fileio\utils\logs.py", line 73, in
logger = Logger(
TypeError: Logger.init() got an unexpected keyword argument 'patcher'
If you change the patcher to patchers (82 line logs.py), everything works.
trisongz commented
Thanks for pointing this out - this was a bug that happened when loguru
changed the init params in later versions. The underlying libraries have now all been patched to ensure this works.