Advanced portfolio doing weird things after upgrade to 2.0.5

Stephen J. Gowdy gowdy at slac.stanford.edu
Mon Apr 9 19:04:02 EDT 2007


That (using the advanced-portfolio.scm file from 1.8.12) didn't work for 
me. The report gives an error when I try to run it with that version;

gnucash: [M] "Found Finance::Quote version ""1.13"
In unknown file:
     ?:  6  (letrec ((dumper #)) (catch (quote ignore) (lambda () #) (lambda 
# #f)))
In /usr/local/share/gnucash/guile-modules/gnucash/main.scm:
   159:  7  [catch ignore #<procedure #f ()> #<procedure #f (key . args)>]
In unknown file:
     ?:  8* [#<procedure #f ()>]
In /usr/local/share/gnucash/guile-modules/gnucash/main.scm:
   162:  9* [lazy-catch #t #<procedure #f ()> #<procedure dumper (key . 
args)>]
In unknown file:
     ?: 10* [#<procedure #f ()>]
In /usr/local/share/gnucash/guile-modules/gnucash/main.scm:
   163: 11* [apply #<procedure #f ()> ()]
In unknown file:
     ?: 12  [#<procedure #f ()>]
In /usr/local/share/gnucash/scm/report.scm:
      ...
   444: 13  (set! html (gnc:report-render-html report #t))
   444: 14* [gnc:report-render-html # #t]
   409: 15  (if (and (not #) (gnc:report-ctext report)) (gnc:report-ctext 
report) ...)
   417: 16  (let ((template #) (doc #f)) (set! doc (if template # #f)) doc)
   420: 17* (set! doc (if template (let* # # # ...) #f))
   420: 18* (if template (let* # # # ...) #f)
   421: 19  (let* (# # # ...) (gnc:html-document-set-style-sheet! doc 
stylesheet) ...)
   423: 20* [advanced-portfolio-renderer #]
In 
/usr/local/share/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:
   120: 21  (let (# #) (letrec # # #))
      ...
   283: 22  (let (# # # ...) (gnc:html-document-set-title! document #) ...)
   310: 23* (if (not #) (let* # # # ...) (gnc:html-document-add-object! 
document #))
   312: 24  (let* (# # #) (gnc:html-table-set-col-headers! table #) ...)
   313: 25* (case price-source ((quote pricedb-latest) (lambda # #)) ...)
/usr/local/share/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:313:17: 
In procedure memoization in expression (case price-source (# #) ...):
/usr/local/share/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:313:17: 
In file 
"/usr/local/share/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm", 
line 312: Duplicate case label quote in expression (case price-source 
((quote pricedb-latest) (lambda (foreign domestic date) 
(gnc:exchange-by-pricedb-latest foreign domestic))) ((quote 
pricedb-nearest) gnc:exchange-by-pricedb-nearest)).



On Mon, 9 Apr 2007, Rob Latham wrote:

> On Sun, Apr 08, 2007 at 11:49:41AM -0700, Oliver Iberien wrote:
>> Has anyone seen anything like this, and does anyone have a fix? Please let me
>> know what further information I should post, if you would like to help -- I
>> have no idea where to start, other than checking my accounts for bad entries
>> (which I have already done... nothing yet.)
>
> It does seem like splits are the issue here. I gave up and dropped the
> report from 1.8.12 into
> /usr/share/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm
> and get the 1.8.12-style portfolio.
>
> ==rob
>
>

--
   /------------------------------------+-------------------------\
|Stephen J. Gowdy, SLAC               | CERN     Office: 32-2-A22|
|http://www.slac.stanford.edu/~gowdy/ | CH-1211 Geneva 23        |
|http://calendar.yahoo.com/gowdy      | Switzerland              |
|EMail: gowdy at slac.stanford.edu       | Tel: +41 22 767 5840     |
   \------------------------------------+-------------------------/


More information about the gnucash-user mailing list