another bug (price import)

Dave Peticolas dave@krondo.com
24 May 2001 23:24:44 -0700


On 23 May 2001 08:39:43 -0500, Linas Vepstas wrote:
> 
> When importing an old data file (trading.xac), it fails to 
> import any of the old prices, with the following error:
> 
> This is a development version. It may or may not work.
> Report bugs and other problems to gnucash-devel@gnucash.org.
> The last stable version was gnucash-1.4.12.
> The next stable version will be gnucash-1.6.0.
> 
> 
> Gdk-WARNING **: locale not supported by C library
> Warning: gnc_pricedb_add_price: no commodity
> Error: cvt_potential_prices_to_pr...(): problem adding price to pricedb.
> 
> Warning: gnc_pricedb_add_price: no commodity
> Error: cvt_potential_prices_to_pr...(): problem adding price to pricedb.
> 
> Warning: gnc_pricedb_add_price: no commodity
> Error: cvt_potential_prices_to_pr...(): problem adding price to pricedb.
> 
> Warning: gnc_pricedb_add_price: no commodity
> Error: cvt_potential_prices_to_pr...(): problem adding price to pricedb.
> 
> Warning: gnc_pricedb_add_price: no commodity
> Error: cvt_potential_prices_to_pr...(): problem adding price to pricedb.
> 
> Warning: gnc_pricedb_add_price: no commodity
> Error: cvt_potential_prices_to_pr...(): problem adding price to pricedb.
> 
> 
> This used to work in earlier 1.5.x versions of gnucash.  
> (I don't know if the earlier versions printed this error or not,
> but they did import the price data.  Now it seems not to do that
> anymore.  For example, the t2.xac file sent in the previous 
> bug report does does have the imported price data in it.)
> 
> The trading.xac file is the gnucash cvs, as one of the old-data demo
> files.

This behavior is caused by the fact that the stock accounts in 
trading.xac do not have securities set. GnuCash 1.4.x allowed
the behavior though it results in meaningless data. The price
db is refusing to record them because prices with no base
commodity don't make any sense.

dave