diff options
author | Michael Meeks <michael.meeks@suse.com> | 2011-12-05 19:44:49 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2011-12-05 20:53:24 +0000 |
commit | 1a7eee2446dfbe06ac39941473010fc8915ee6e6 (patch) | |
tree | bc5d1249caa05432540b86267fd24e800ea4b2fe /pyuno/source/loader | |
parent | 41b8bad143c06bc5419783b9f3cf5685aa3eea63 (diff) |
Improve pyuno debugging in various ways - add stack traces etc.
Diffstat (limited to 'pyuno/source/loader')
-rw-r--r-- | pyuno/source/loader/pythonloader.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pyuno/source/loader/pythonloader.py b/pyuno/source/loader/pythonloader.py index 5675a0c9596c..c4fa69d7ef28 100644 --- a/pyuno/source/loader/pythonloader.py +++ b/pyuno/source/loader/pythonloader.py @@ -111,7 +111,8 @@ class Loader( XImplementationLoader, XServiceInfo, unohelper.Base ): g_loadedComponents[url] = mod return mod elif "vnd.openoffice.pymodule" == protocol: - print ("here") + # the failure is on symbol lookup later in the parent ... + print ("Warning: Python module loading is almost certainly pre-broken") nSlash = dependent.rfind('/') if -1 != nSlash: path = unohelper.fileUrlToSystemPath( dependent[0:nSlash] ) @@ -127,7 +128,8 @@ class Loader( XImplementationLoader, XServiceInfo, unohelper.Base ): protocol + " in url " +url, self ) except Exception as e: if DEBUG: - print ("Python import error " + str(e) + " args " + str(e.args)); + print ("Python import exception " + str(type(e)) + + " message " + str(e) + " args " + str(e.args)); raise RuntimeException( "Couldn't load " + url + " for reason " + str(e), None ) return None |