[0.46] [Win32]: "No handlers could be found for logger 'zim.fs'"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
Fix Released
|
High
|
Unassigned |
Bug Description
confirmed in lp:zim revisions 221 (0.46) and 225
platform: Windows
Zim always says "No handlers could be found for logger 'zim.fs'" in log file at some point during execution but otherwise seems to work okay. During exit, Zim tells you an error occurred and this is all that shows up in the log file.
Occurs when running compiled zim.exe from ./windows/
Incidentally, I couldn't figure out how to get zim.exe to produce "--debug" output.
TO REPRODUCE:
1. Get lp:~bkidwell/zim/pyzim-win-installer . (This is currently based upon lp:zim rev 221, the version 0.46 milestone.)
2. Follow instructions in windows/
3. Run windows/zim/zim.exe .
summary: |
- Win32: "No handlers could be found for logger 'zim.fs'" + [0.46] [Win32]: "No handlers could be found for logger 'zim.fs'" |
This error means there is some logging being used before logging is configured. Configuration happens early on zim.__init__.py main() .
My suspicion is that somehow in the compiled version modules are loaded in a different order so a warning is emitted before this main() function is called.
You can try putting the following code at the start of zim.py and compile it again:
import logging basicConfig( )
logging.
Hope this helps.