search for: format_except

Displaying 5 results from an estimated 5 matches for "format_except".

2019 Nov 23
1
[PATCH nbdkit] python: Print readable tracebacks
We used traceback.format_exception, returning traceback lines. Join the lines to make the tracebacks more readable. Here is an example traceback: $ ./nbdkit -f -v python tests/python-exception.py ... nbdkit: debug: python: config_complete nbdkit: error: tests/python-exception.py: config_complete: error: Traceback (most recent c...
2013 May 11
1
Samba git: build error when upgrading
...File "/home/gerryr/build/samba4/buildtools/wafadmin/Build.py", line 993, in add_subdirs self.recurse(dirs, 'build') File "/home/gerryr/build/samba4/buildtools/wafadmin/Utils.py", line 650, in recurse raise WscriptError("".join(traceback.format_exception(exc_type, exc_value, tb)), base) WscriptError: /home/gerryr/build/samba4/python/wscript: error: Traceback (most recent call last): File "/home/gerryr/build/samba4/buildtools/wafadmin/Utils.py", line 647, in recurse exec(compile(txt, file_path, 'exec'), dc)...
2014 Mar 02
0
3/2/2014 Samba4 git pull make clean error
...subdirs(relpath) File "/usr/local/samba-master/buildtools/wafadmin/Build.py", line 993, in add_subdirs self.recurse(dirs, 'build') File "/usr/local/samba-master/buildtools/wafadmin/Utils.py", line 650, in recurse raise WscriptError("".join(traceback.format_exception(exc_type, exc_value, tb)), base) WscriptError: /usr/local/samba-master/pidl/lib/wscript: error: Traceback (most recent call last): File "/usr/local/samba-master/buildtools/wafadmin/Utils.py", line 647, in recurse exec(compile(txt, file_path, 'exec'), dc) File "/usr...
2018 Aug 08
2
[PATCH nbdkit] python: Try harder to print the full traceback on error.
...rt the Python traceback to a string and call nbdkit_error. + * https://stackoverflow.com/a/15907460/7126113 + */ +static int +print_python_traceback (const char *callback, + PyObject *type, PyObject *error, PyObject *traceback) +{ + PyObject *module_name, *traceback_module, *format_exception_fn, *rv, + *traceback_str; + char *traceback_cstr; + +#ifdef HAVE_PYSTRING_FROMSTRING + module_name = PyString_FromString ("traceback"); +#else + module_name = PyUnicode_FromString ("traceback"); +#endif + traceback_module = PyImport_Import (module_name); + Py_DECREF...
2018 Aug 08
0
Re: [PATCH nbdkit] python: Try harder to print the full traceback on error.
...call nbdkit_error. > + * https://stackoverflow.com/a/15907460/7126113 > + */ > +static int > +print_python_traceback (const char *callback, > + PyObject *type, PyObject *error, PyObject > *traceback) > +{ > + PyObject *module_name, *traceback_module, *format_exception_fn, *rv, > + *traceback_str; > + char *traceback_cstr; > + > +#ifdef HAVE_PYSTRING_FROMSTRING > + module_name = PyString_FromString ("traceback"); > +#else > + module_name = PyUnicode_FromString ("traceback"); > +#endif > + traceback_module =...