Advanced portfolio doing weird things after upgrade to 2.0.5

Stephen J. Gowdy gowdy at slac.stanford.edu
Mon Apr 9 11:51:21 EDT 2007


The output looks very similar to Oliver's, it is below. I also notice that 
there is no difference in the other two options prices. I would have 
expected it to make a difference.

gnucash: [M] "Found Finance::Quote version ""1.13"
gnucash: [W] "gnc:case-exchange-fn: bad price-source value: 
"pricedb-latest-before
In /usr/local/share/gnucash/guile-modules/gnucash/main.scm:
   162: 19* [lazy-catch #t #<procedure #f ()> #<procedure dumper (key . 
args)>]
In unknown file:
     ?: 20* [#<procedure #f ()>]
In /usr/local/share/gnucash/guile-modules/gnucash/main.scm:
   163: 21* [apply #<procedure #f ()> ()]
In unknown file:
     ?: 22  [#<procedure #f ()>]
In /usr/local/share/gnucash/scm/report.scm:
      ...
   444: 23  (set! html (gnc:report-render-html report #t))
   444: 24* [gnc:report-render-html # #t]
   409: 25  (if (and (not #) (gnc:report-ctext report)) (gnc:report-ctext 
report) ...)
   417: 26  (let ((template #) (doc #f)) (set! doc (if template # #f)) doc)
   420: 27* (set! doc (if template (let* # # # ...) #f))
   420: 28* (if template (let* # # # ...) #f)
   421: 29  (let* (# # # ...) (gnc:html-document-set-style-sheet! doc 
stylesheet) ...)
   423: 30* [advanced-portfolio-renderer #]
In 
/usr/local/share/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:
   179: 31  (let (# # #) (letrec # # #))
      ...
   552: 32  (let (# # # ...) (gnc:html-document-set-title! document #) ...)
   592: 33* (if (not (null? accounts)) (let* (# # # ...) (if show-symbol #) 
...) ...)
   594: 34  (let* (# # # # ...) (if show-symbol #) (if show-listing #) ...)
   648: 35* [table-add-stock-rows # # # ...]
   288: 36  (let* ((share-print-info #)) (letrec (#) (set! work-to-do #) 
...))
      ...
   295: 37  (let* (# # # # ...) (for-each # #) (set! use-txn #) ...)
   323: 38* [#<unspecified> # #]
/usr/local/share/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:323:25: 
In expression (exchange-fn (gnc:make-gnc-monetary commodity units) 
currency):
/usr/local/share/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:323:25: 
Wrong type to apply: #<unspecified>
gnucash: [W] "gnc:case-exchange-fn: bad price-source value: 
"pricedb-latest-before
In /usr/local/share/gnucash/guile-modules/gnucash/main.scm:
   162: 16* [lazy-catch #t #<procedure #f ()> #<procedure dumper (key . 
args)>]
In unknown file:
     ?: 17* [#<procedure #f ()>]
In /usr/local/share/gnucash/guile-modules/gnucash/main.scm:
   163: 18* [apply #<procedure #f ()> ()]
In unknown file:
     ?: 19  [#<procedure #f ()>]
In /usr/local/share/gnucash/scm/report.scm:
      ...
   444: 20  (set! html (gnc:report-render-html report #t))
   444: 21* [gnc:report-render-html # #t]
   409: 22  (if (and (not #) (gnc:report-ctext report)) (gnc:report-ctext 
report) ...)
   417: 23  (let ((template #) (doc #f)) (set! doc (if template # #f)) doc)
   420: 24* (set! doc (if template (let* # # # ...) #f))
   420: 25* (if template (let* # # # ...) #f)
   421: 26  (let* (# # # ...) (gnc:html-document-set-style-sheet! doc 
stylesheet) ...)
   423: 27* [advanced-portfolio-renderer #]
In 
/usr/local/share/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:
   179: 28  (let (# # #) (letrec # # #))
      ...
   552: 29  (let (# # # ...) (gnc:html-document-set-title! document #) ...)
   592: 30* (if (not (null? accounts)) (let* (# # # ...) (if show-symbol #) 
...) ...)
   594: 31  (let* (# # # # ...) (if show-symbol #) (if show-listing #) ...)
   648: 32* [table-add-stock-rows # # # ...]
   288: 33  (let* ((share-print-info #)) (letrec (#) (set! work-to-do #) 
...))
      ...
   295: 34  (let* (# # # # ...) (for-each # #) (set! use-txn #) ...)
   323: 35* [#<unspecified> # #]
/usr/local/share/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:323:25: 
In expression (exchange-fn (gnc:make-gnc-monetary commodity units) 
currency):
/usr/local/share/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:323:25: 
Wrong type to apply: #<unspecified>


On Mon, 9 Apr 2007, Derek Atkins wrote:

> "Stephen J. Gowdy" <gowdy at slac.stanford.edu> writes:
>
>> [I replied to this thread earlier today saying I had seem similar problems
>> and suggesting it was including other parts of the same transaction that
>> it shouldn't, but replied from another email address so the post is held
>> for approval]
>>
>> I tried Check & Repair and it didn't help Advanced Portfolio's wierd
>> numbers.
>
> I wasn't expecting it to help the weird numbers.   I was expecting
> (hoping?) that it would prevent the crash that's below.
>
>> When trying the other price options "nearest in time" was the default.
>> "most recent" didn't help. "most recent to report" just gave me;
>>
>> "Report error
>> An error occurred while running the report."
>
> And what's printed on the controlling terminal from where you started
> "gnucash &" ?
>
>> I use 2.0.5 on RHEL5. Check & Repair didn't make any changes.
>
> -derek
>
>> On Mon, 9 Apr 2007, Derek Atkins wrote:
>>
>>> Hmm...
>>>
>>> If you run Check & Repair, does it fix this problem?
>>>
>>> -derek
>>>
>>> Oliver Iberien <odilist at sonic.net> writes:
>>>
>>>> On Sunday 08 April 2007 12:24, Bob Thibodeau wrote:
>>>>> Check the report properties for the source of the prices.
>>>>> On the basic portfolio, you can choose from three options,
>>>>> which generate different numbers. I don't have it on this computer,
>>>>> or I'd list them for you. Something like weighted average, nearest
>>>>> in time, and another.
>>>>>
>>>>> Bob T
>>>>
>>>> Thanks you -- the "most recent to report" option generates the following
>>>> errors:
>>>>
>>>> gnucash: [W] "gnc:case-exchange-fn: bad price-source
>>>> value: "pricedb-latest-before
>>>> In /usr/local/share/gnome/gnucash/guile-modules/gnucash/main.scm:
>>>>  162:  6* [lazy-catch #t #<procedure #f ()> #<procedure dumper (key . args)>]
>>>> In unknown file:
>>>>    ?:  7* [#<procedure #f ()>]
>>>> In /usr/local/share/gnome/gnucash/guile-modules/gnucash/main.scm:
>>>>  163:  8* [apply #<procedure #f ()> ()]
>>>> In unknown file:
>>>>    ?:  9  [#<procedure #f ()>]
>>>> In /usr/local/share/gnome/gnucash/scm/report.scm:
>>>>     ...
>>>>  444: 10  (set! html (gnc:report-render-html report #t))
>>>>  444: 11* [gnc:report-render-html # #t]
>>>>  409: 12  (if (and (not #) (gnc:report-ctext report)) (gnc:report-ctext
>>>> report) ...)
>>>>  417: 13  (let ((template #) (doc #f)) (set! doc (if template # #f)) doc)
>>>>  420: 14* (set! doc (if template (let* # # # ...) #f))
>>>>  420: 15* (if template (let* # # # ...) #f)
>>>>  421: 16  (let* (# # # ...) (gnc:html-document-set-style-sheet! doc
>>>> stylesheet) ...)
>>>>  423: 17* [advanced-portfolio-renderer #]
>>>> In /usr/local/share/gnome/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:
>>>>  179: 18  (let (# # #) (letrec # # #))
>>>>     ...
>>>>  552: 19  (let (# # # ...) (gnc:html-document-set-title! document #) ...)
>>>>  592: 20* (if (not (null? accounts)) (let* (# # # ...) (if show-symbol
>>>> #) ...) ...)
>>>>  594: 21  (let* (# # # # ...) (if show-symbol #) (if show-listing #) ...)
>>>>  648: 22* [table-add-stock-rows # # # ...]
>>>>  288: 23  (let ((share-print-info #)) (letrec (#) (set! work-to-do #) ...))
>>>>     ...
>>>>  295: 24  (let* (# # # # ...) (for-each # #) (set! use-txn #) ...)
>>>>  323: 25* (exchange-fn (gnc:make-gnc-monetary commodity units) currency)
>>>> /usr/local/share/gnome/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:323:25:
>>>> In expression (exchange-fn (gnc:make-gnc-monetary commodity units) currency):
>>>> /usr/local/share/gnome/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:323:25:
>>>> Wrong type to apply: #<unspecified>
>>>>
>>>> Would anyone know what this means, or if it's relevant?
>>>>
>>>> I found a reference to something very similar happening on a Windows port of
>>>> GnuCash. Perhaps this is a porting issue? From the GnuCash wiki-changes feed:
>>>>
>>>> -  === Advanced Portfolio Report Problems? ===
>>>>   -  I've been testing the binary distribution for windows and everything
>>>> seems fine except for the Advanced Portfolio report. I'm not sure if this is
>>>> a GNUCash 2.x problem or a Windows problem. Shares, price, and value are all
>>>> computed correctly, but all the other columns are quite large and incorrect
>>>> (orders of magnitude off).
>>>>
>>>> [... some error messages I don't have...]
>>>>
>>>>   -  Has anyone else seen this issue? I copied my accounts file from 1.8.11
>>>> and opened it in 2.0.99 if that makes a difference. Thanks! --[[User:Scbash|
>>>> Scbash]] 09:44, 24 March 2007 (EDT)
>>>>
>>>> Thanks,
>>>>
>>>> Oliver
>>>> _______________________________________________
>>>> gnucash-user mailing list
>>>> gnucash-user at gnucash.org
>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>>>> -----
>>>> Please remember to CC this list on all your replies.
>>>> You can do this by using Reply-To-List or Reply-All.
>>>>
>>>>
>>>
>>>
>>
>> --
>>    /------------------------------------+-------------------------\
>> |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     |
>>    \------------------------------------+-------------------------/
>> _______________________________________________
>> gnucash-user mailing list
>> gnucash-user at gnucash.org
>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>> -----
>> Please remember to CC this list on all your replies.
>> You can do this by using Reply-To-List or Reply-All.
>>
>>
>
>

--
   /------------------------------------+-------------------------\
|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