I'm new to ledger.  I'm using piecash to generate ledger files, so this may 
well be an error at another point in the chain.  I'll start here where the 
error occurs in the hopes of relevant pointers.

I generate a ledger file from a gnucash (sqlite3-format, gnucash v2.6.19) 
file thus:

piecash ledger my-accounts.gnucash --output ledger.out

Piecash is version 0.19.0 installed via pip.

Then I try to read that file with ledger (version  3.1.2-20160801, from 
ubuntu repository):

╭╴[virt]╶╮
╰ jeff@starshine:scripts $ ledger -f ledger.out reg
While parsing file ".../ledger.out", line 2809:
While parsing posting:
  2_IMMOBILISATIONS:21_IMMOBILISATIONS CORPORELLES:218_Autres 
immobilisations corporelles:2181_Installations Générales  pontons, barge    
78272.89 EUR
                                                                                
                                          
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: No quantity specified for amount
While parsing file ".../ledger.out", line 2825:
While parsing posting:
  2_IMMOBILISATIONS 2:28_AMMORTISSEMENTS DES IMMOBILISATIONS 
2:281_Amortissements des immobilisations corporelles 2:2813_Constructions  
2:28131_construction, batiment    -1586.05 EUR
                                                                                
                                                        
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Unexpected char ':' (Note: inline math requires parentheses)
While parsing file ".../ledger.out", line 2829:
While parsing posting:
  2_IMMOBILISATIONS 2:28_AMMORTISSEMENTS DES IMMOBILISATIONS 
2:281_Amortissements des immobilisations corporelles 2:2813_Constructions  
2  -237672.45 EUR
                                                                                
                                                        
^^^^^^^^^^^^^^^^^
Error: Unexpected char '-' (Note: inline math requires parentheses)
While parsing file ".../ledger.out", line 3958:
While parsing posting:
  2_IMMOBILISATIONS:21_IMMOBILISATIONS CORPORELLES:218_Autres 
immobilisations corporelles:2181_Installations Générales  pontons, 
barge      538.44 EUR ;   panneau, blocs de sécurité
                                                                                
                                          
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: No quantity specified for amount
While parsing file ".../ledger.out", line 6386:
While parsing posting:
  2_IMMOBILISATIONS:21_IMMOBILISATIONS CORPORELLES:218_Autres 
immobilisations corporelles:2181_Installations Générales  pontons, 
barge     1978.80 EUR ;   20181015-evolia_2018-10-02193.pdf
                                                                                
                                          
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: No quantity specified for amount
While parsing file ".../ledger.out", line 6390:
While parsing posting:
  2_IMMOBILISATIONS:21_IMMOBILISATIONS CORPORELLES:218_Autres 
immobilisations corporelles:2181_Installations Générales  pontons, 
barge      540.90 EUR ;   20181015-evolia_2018-10-02196.pdf
                                                                                
                                          
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: No quantity specified for amount
╭╴[virt]╶╮
╰ 6, jeff@starshine:scripts $ 

Any suggestions what is failing / why, what to look at?

Many thanks.

Jeff Abrahamson
https://www.p27.eu/jeff/
https://www.transport-nantes.com/

-- 

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