Hello zt on Sat, Dec 20, 2014 at 06:23:27PM CET, you wrote:
> Just got into using ledger and I love it.

That's great!

> 1 .I have been able to compile the source code through the acmake command 
> fine after enabling python, but it cannot find the python module when I do 
> "python import". 

Did you pass the --python option to the acprep command?

> 2. I install "brew install --with-python ledger" and I get the following:
> [local] python
> [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import ledger
> Fatal Python error: PyThreadState_Get: no current thread
> [1]    87853 abort      python

I take care of the Homebrew Ledger formula and have never seen that
error, can you provide me the output of: % brew --prefix please

What happens when you run: % brew test ledger --with-python ?

Also please try: % ledger python
this will put you in an interactive python session, what happens
when you import ledger in there?

I've learned most of my Ledger Python by reading
$(brew --prefix ledger)/share/ledger/demo.py
it's very worthwhile studying it!

There's one difference from my system I notice,
while I get the same output as you when I run: % gcc -v

When running Python it prints the following for me:
Python 2.7.6 (default, Sep  9 2014, 15:04:36) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

Instead of the LLVM 5.0 (clang-500.2.79) which you see, I see
LLVM 6.0 (clang-600.0.39).


Cheers,
Alexis

-- 

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