osx python binding (PyThreadState_Get error)

2014-12-20 Thread zt
Just got into using ledger and I love it. I need to start using python with 
ledger, and running into some trouble. I've scoured the previous post and 
made progress, but full success still evades me. Ledger without python 
works fine.

I am running OS X 10.10.1 (Yosemite) with Python 2.7.6. gcc is :

[local] gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr 
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix

I have tried two things:

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. 

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

The PyThreadState_Get seems related to LoadableModule on Python OSX binding 
http://comments.gmane.org/gmane.comp.programming.tools.scons.user/23384 issue 
and I do not want to mess around with a new python version (many of my 
projects use Python and I do not want to introduce any new variables)

I have been exploring a little more on both of those options, but have not 
had any luck. Would any of you have any experience in this and have a 
recommendation?


-- 

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to make faster posts on ledger

2014-12-20 Thread Kev Lau
Hello,

Currently I am using nano to make my ledger entries and it takes a very 
long time as I have to write the full form for everything 
(Expenses:Car:Petrol) etc and get very tired making entries.

Is there something we can do to make entries on nano 
faster(predictive-text)? I heard emac can take care of this. Can someone 
confirm on this and provide a page dedicated to emac and ledger(perhaps 
showing tutorials for newbies?)

Appreciate feedback for this.
Regards
Kevin

-- 

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to make faster posts on ledger

2014-12-20 Thread Alexis H
Hi Kevin,
for starters have a look at the xact Ledger command
http://ledger-cli.org/3.0/doc/ledger3.html#xact

Since I have no knowledge about the Ledger Emacs integration, I can only
point to the documentation
http://ledger-cli.org/3.0/doc/ledger3.html#Emacs-org-Mode


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 ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.