Seems like it was some old cached variable in CMake land. After doing a
./acprep gitclean and ./acprep clean, I produced a ledger.so using ./acprep
--python debug && ./acprep --python make.

Sorry for the noise!

Ethan



On Sun, Apr 6, 2014 at 4:50 PM, Ethan <[email protected]> wrote:

> I read the previous thread and it seems like the knowledge produced from
> those emails was represented in pull requests:
>
> https://github.com/ledger/ledger/pull/231 "Create shared python module"
> https://github.com/ledger/ledger/pull/232 "Correct compilation of shared
> library and python module"
> https://github.com/ledger/ledger/pull/234 "Create default scope from
> python session only if needed"
>
> It definitely seems like there is an existing way to build/import the
> Python module, but I can't figure out what it is.
>
>
>
> On Sun, Apr 6, 2014 at 2:40 PM, Jostein Berntsen <[email protected]>wrote:
>
>> On 06.04.14,14:09, Ethan wrote:
>> > Hey, what's the current status of Python support? It seems as though
>> there
>> > have been a few pull requests to change/update things related to Python,
>> > and it seems like the most up-to-date way to "import ledger" is to ln -s
>> > libledger.so ledger.so, but when I do this, I get:
>> >
>> > >>> import ledger
>> > Traceback (most recent call last):
>> >   File "<stdin>", line 1, in <module>
>> > ImportError: dynamic module does not define init function (initledger)
>> >
>> > Indeed, it seems like the py* files didn't get built. (I don't see them
>> in
>> > src/CMakeFiles.)
>> >
>> > I built using "./acprep --python update" after first doing "./acprep
>> > --python clean". Am I doing something stupid/wrong?
>> >
>>
>> There might be some hints in this previous thread:
>>
>> https://groups.google.com/forum/#!topic/ledger-cli/FjcppC_xShk
>>
>> This looks cool: ledgertools
>>
>> https://github.com/frasertweedale/ledgertools$
>>
>> Jostein
>>
>> --
>>
>> ---
>> 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.
>>
>
>

-- 

--- 
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.

Reply via email to