On Wednesday, September 23, 2015 at 9:49:50 AM UTC-7, Michael Toomim wrote: > > On Wednesday, September 23, 2015 at 1:05:45 AM UTC-7, unices wrote: >> >> Hello Michael, >> I find the Ledger Python module quite handy for custom needs >> such as exports or reports. >> >> Can you show me an example of your Python attempt and describe >> what you were missing from it or what didn't work for you? >> >> >> Alexis >> > > Yes, as described before, it segfaults on "import ledger". Here is a > transcript: > > $ ipython > Python 2.7.10 (default, Jul 14 2015, 19:46:27) > Type "copyright", "credits" or "license" for more information. > > IPython 2.0.0 -- An enhanced Interactive Python. > ? -> Introduction and overview of IPython's features. > %quickref -> Quick reference. > help -> Python's own help system. > object? -> Details about 'object', use 'object??' for extra details. > > In [1]: import ledger > Segmentation fault: 11 > > I did not GDB it. I get the impression that python support is too early in > development and that I shouldn't rely upon it. > > My ledger was installed from homebrew on OSX Yosemite. >
Here's a stack trace for the python segfault: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 org.python.python 0x000000011184e5a4 PyInt_FromLong + 33 1 ledger.so 0x0000000110fea93b ledger::export_commodity() + 3531 2 ledger.so 0x000000011106dc5a ledger::initialize_for_python() + 26 3 libboost_python-mt.dylib 0x00000001117d0391 boost::python::handle_exception_impl(boost::function0<void>) + 81 4 libboost_python-mt.dylib 0x00000001117d13b9 boost::python::detail::init_module(char const*, void (*)()) + 121 5 org.python.python 0x000000010ecac97b _PyImport_LoadDynamicModule + 140 6 org.python.python 0x000000010ecac663 0x10ec10000 + 640611 7 org.python.python 0x000000010ecac22d 0x10ec10000 + 639533 8 org.python.python 0x000000010ecaa436 PyImport_ImportModuleLevel + 1135 9 org.python.python 0x000000010ec8f9b3 0x10ec10000 + 522675 10 org.python.python 0x000000010ec1a50a PyObject_Call + 99 -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
