I am having trouble saving leo files in a fresh leo cloned from github,
with ensure_extension() complaining about concatenating a tuple and str at
L2636. Wrapping the failing line in a try:/except: block to log the problem
showed the filename was being passed in as a tuple (name,
expected_extension) including the extension selected in the 'Save As'
dialog box:
unexpected exception in g.ensure_extension with
name=('/home/stephen/a/a.leo', 'Leo files (*.leo)') and ext='.leo'
Traceback (most recent call last):
File
"/usr/lib/python3.4/site-packages/leo-4.11_final-py3.4.egg/leo/core/leoGlobals.py",
line 2639, in ensure_extension
return name + ext
TypeError: can only concatenate tuple (not "str") to tuple
As I don't have time right now to trace the root cause, I used this
temporary fix:
if type( name ) == tuple:
name = name[0]
to the start of ensure_extension().
Config info at Leo's start-up is:
Leo Log Window
Leo 5.0d1, build 20141103113053, Mon Nov 3 11:30:53 CST 2014
Not running running from a cloned git repo
Python 3.4.1, PyQt version 5.3.1
linux
Thanks
Stephen
--
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 http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.