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", "credits" or "license" for more information.
>>> import ledger
>>> dir(ledger)
Segmentation fault


On Friday, March 16, 2012 1:07:34 AM UTC+1, Jim Robinson wrote:
>
> 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 usually the 
>> reason
>> for startup crashes when using the Python bridge.
>>
>> John
>>
>> [hopefully my previous partial post gets deleted correctly so this isn't 
> spam]
>
> As a random follow up to this old thread, I build ledger from the git
> repo, but use homebrew to maintain python and boost.   As a long
> term reminder to myself and perhaps of help to other mac users,
> to get ledger to run w/ python:
>
>   (a) check that /usr/local/bin is before /usr/bin in PATH
>   (b) brew install python
>   (c) brew install boost --with-mpi --with-icu
>   (d) mkdir build; ./acprep -j 2 --python --enable-doxygen --enable-cache 
> opt make
>
> following those steps, it appears as though python support works:
>
> $ ./build/ledger/opt/ledger python ./python/demo.py 
> Welcome to the Ledger.Python demo!
> Demo completed successfully.
>
> $ ./build/ledger/opt/ledger python
> Python 2.7.2 (default, Mar 15 2012, 16:05:11) 
> [GCC 4.2.1 Compatible Apple Clang 3.0 (tags/Apple/clang-211.12)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import ledger
> >>> dir(ledger)
> ['ACCOUNT_EXT_AUTO_VIRTUALIZE', 'ACCOUNT_EXT_DISPLAYED', 
> 'ACCOUNT_EXT_HAS_NON_VIRTUALS', 'ACCOUNT_EXT_HAS_UNB_VIRTUALS', 
> 'ACCOUNT_EXT_MATCHING', 'ACCOUNT_EXT_SORT_CALC', 'ACCOUNT_EXT_TO_DISPLAY', 
> 'ACCOUNT_EXT_VISITED', 'ACCOUNT_KNOWN', 'ACCOUNT_NORMAL', 'ACCOUNT_TEMP', 
> 'Account', 'AccountXData', 'AccountXDataDetails', 'Amount', 
> 'AnnotatedCommodity', 'Annotation', 'AutomatedTransaction', 'Balance', 
> 'COMMODITY_BUILTIN', 'COMMODITY_KNOWN', 'COMMODITY_NOMARKET', 
> 'COMMODITY_PRIMARY', 'COMMODITY_STYLE_DECIMAL_COMMA', 
> 'COMMODITY_STYLE_DEFAULTS', 'COMMODITY_STYLE_SEPARATED', 
> 'COMMODITY_STYLE_SUFFIXED', 'COMMODITY_STYLE_THOUSANDS', 
> 'COMMODITY_WALKED', 'Commodity', 'CommodityPool', 'DelegatesFlags16', 
> 'Expr', 'FileInfo', 'ITEM_GENERATED', 'ITEM_NORMAL', 'ITEM_TEMP', 
> 'Journal', 'JournalItem', 'KeepDetails', 'NULL_VALUE', 'POST_CALCULATED', 
> 'POST_COST_CALCULATED', 'POST_EXT_COMPOUND', 'POST_EXT_CONSIDERED', 
> 'POST_EXT_DIRECT_AMT', 'POST_EXT_DISPLAYED', 'POST_EXT_HANDLED', 
> 'POST_EXT_MATCHES', 'POST_EXT_RECEIVED', 'POST_EXT_SORT_CALC', 
> 'POST_EXT_VISITED', 'POST_MUST_BALANCE', 'POST_VIRTUAL', 'ParseFlags', 
> 'PeriodicTransaction', 'Position', 'PostCollectorWrapper', 'PostHandler', 
> 'Posting', 'PostingXData', 'Session', 'State', 'SupportFlags16', 
> 'SupportFlags8', 'Transaction', 'TransactionBase', 'Value', 'ValueType', 
> '__builtins__', '__doc__', '__file__', '__name__', '__package__', 
> '__path__', 'commodities', 'mask_value', 'parse_date', 'parse_datetime', 
> 'read_journal', 'read_journal_from_string', 'session', 'string_value', 
> 'times_initialize', 'times_shutdown', 'value_context']
> >>> 
>  
>
>>

Reply via email to