I'm getting tracebacks when I use Leo's "stickynoteenc" command on an encoded node. Immediately after I put in my password, the traceback below occurs. However, it doesn't occur in all my environments and installations. The successes and failures are listed below. Obviously it coincides with Python 3, which combined with a unicode error matches up nicely ;-) I've looked quickly at the code, but I can't see what it going on (I'm relatively new to Python3 and unicode stuff). But it would seem that the bug goes back to December of last year at least. Does this mean I'm the I the only regular user of stickynoteenc or is my testing faulty?
Hope that helps Peter. ...................................................... Note that there are several combinations of Leo build, python version, PyQt version and operating system here: Works fine: - Leo 5.3-devel, build 20160327164927, Sun Mar 27 16:49:27 CDT 2016 Not running from a git repo Python 2.7.6, PyQt version 4.8.6 linux2 - Leo 5.3-devel, build 20160327164927, Sun Mar 27 16:49:27 CDT 2016 Not running from a git repo Python 2.7.11 [ed: from Anaconda], PyQt version 4.8.7 linux2 Fails with exception: - Leo 5.1-final, build 20151207062203, Mon Dec 7 06:22:03 CST 2015 Not running from a git repo Python 3.5.1 [ed: from Anaconda], PyQt version 4.8.7 linux - Leo 5.2-b1, build 20160313181002, Sun Mar 13 18:10:02 CDT 2016 Not running from a git repo Python 3.5.1, PyQt version 4.8.7 Windows 7 AMD64 (build 6.1.7601) SP1 Typical Traceback (only the paths differ): File "/home/peter/anaconda2/envs/py3/lib/python3.5/site-packages/leo/plugins/qt_events.py", line 126, in eventFilter k.masterKeyHandler(event) File "/home/peter/anaconda2/envs/py3/lib/python3.5/site-packages/leo/core/leoKeys.py", line 3299, in masterKeyHandler done = k.doMode(event, state, stroke) File "/home/peter/anaconda2/envs/py3/lib/python3.5/site-packages/leo/core/leoKeys.py", line 3377, in doMode val = k.callStateFunction(event) # Calls end-command. File "/home/peter/anaconda2/envs/py3/lib/python3.5/site-packages/leo/core/leoKeys.py", line 3352, in callStateFunction val = k.state.handler(event) File "/home/peter/anaconda2/envs/py3/lib/python3.5/site-packages/leo/core/leoKeys.py", line 2533, in fullCommand ok = k.callAltXFunction(k.mb_event) File "/home/peter/anaconda2/envs/py3/lib/python3.5/site-packages/leo/core/leoKeys.py", line 2587, in callAltXFunction func(event) File "/home/peter/anaconda2/envs/py3/lib/python3.5/site-packages/leo/plugins/stickynotes.py", line 366, in stickynoteenc_f sn_getenckey() File "/home/peter/anaconda2/envs/py3/lib/python3.5/site-packages/leo/plugins/stickynotes.py", line 428, in sn_getenckey txt = unicode(txt) NameError: name 'unicode' is not defined -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
