Re: Trouble using the python interface

2012-03-18 Thread thierry
$ gdb ./ledger GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent pe

Re: Trouble using the python interface

2012-03-17 Thread John Wiegley
> thierry writes: > NameError: name 'ledger' is not defined Try using "import ledger" immediately before "dir(ledger)". > Program received signal SIGSEGV, Segmentation fault. 0x722492f1 in > ?? () from /usr/lib/python2.7/lib-dynload/readline.so (gdb) Can you show me the output of

Re: Trouble using the python interface

2012-03-17 Thread thierry
After having compiled without opt (that is with debug), I get : $ gdb ./ledger GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to c

Re: Trouble using the python interface

2012-03-16 Thread John Wiegley
> Jim Robinson > writes: > On Friday, March 16, 2012 4:52:35 PM UTC-7, thierry wrote: > I am on Ubuntu 11.10, and I got seg fault. How I can help digging into > this? Thierry > $ ledger python ./python/demo.py Welcome to the Ledger.Python demo! > Demo completed succe

Re: Trouble using the python interface

2012-03-16 Thread Jim Robinson
On Friday, March 16, 2012 4:52:35 PM UTC-7, thierry wrote: > > I am on Ubuntu 11.10, and I got seg fault. How I can help digging into > this? > Thierry > > $ ledger python ./python/demo.py > Welcome to the Ledger.Python demo! > Demo completed successfully. > $ ledger python > Python 2.7.2+ (defau

Re: Trouble using the python interface

2012-03-16 Thread thierry
I am on Ubuntu 11.10, and I got seg fault. How I can help digging into this? Thierry $ ledger python ./python/demo.py Welcome to the Ledger.Python demo! Demo completed successfully. $ ledger python Python 2.7.2+ (default, Oct 4 2011, 20:41:12) [GCC 4.6.1] on linux2 Type "help", "copyright", "cr

Re: Trouble using the python interface

2012-03-15 Thread Jim Robinson
> > On Monday, July 11, 2011 2:09:23 PM UTC-7, John Wiegley wrote: > Hyrum K Wright writes: > > I don't know if there is a better way to debug this. > > The first thing to confirm is that Ledger and your boost_python shared > library > are both linking to the exact same Python library. That's us

Re: Trouble using the python interface

2012-03-15 Thread Jim Robinson
On Monday, July 11, 2011 2:09:23 PM UTC-7, John Wiegley wrote: > > Hyrum K Wright writes: > > > I don't know if there is a better way to debug this. > > The first thing to confirm is that Ledger and your boost_python shared > library > are both linking to the exact same Python library. That's usu

Re: Trouble using the python interface

2011-07-11 Thread John Wiegley
Hyrum K Wright writes: > I don't know if there is a better way to debug this. The first thing to confirm is that Ledger and your boost_python shared library are both linking to the exact same Python library. That's usually the reason for startup crashes when using the Python bridge. John

Re: Trouble using the python interface

2011-07-11 Thread Hyrum K Wright
On Thu, Jul 7, 2011 at 6:38 AM, John Wiegley wrote: > Hyrum K Wright writes: > >> $ python > > Could you try using "ledger python" instead of just "python"? > > I've seen this problem before, it'll just take a moment to remember. That does work. I can run the demo.py file, but anything spontane

Re: Trouble using the python interface

2011-07-07 Thread John Wiegley
Hyrum K Wright writes: > $ python Could you try using "ledger python" instead of just "python"? I've seen this problem before, it'll just take a moment to remember. John

Trouble using the python interface

2011-07-07 Thread Hyrum K Wright
After several attempts, I managed to get the python interface on the next branch built and installed on an Ubuntu 11.04 system. However, when I attempt to access anything in the ledger python module, I get an AttributeError. For whatever reason, it appears the various submodules aren't being inst