<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Debian 13 Trixie</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Kmymoney appimage 4767</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Hi</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">I have a problem with Finance:quote:</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">When I run Update Stock and Currency Prices I get 1)</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">From the command line I get 2)</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The source code with the offending line is 3). </p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The command line actually gives the correct quote, but this is not evident in the output from </p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">the normal KMM.</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">I cannot get in to edit the code to see if there is anything else, but it appears to get the quote correctly.</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Please help as I have reverted back to 5.1.3 which does not have this test line.</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Many thanks;</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Timothy
</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">--------------------------------------------------------------------------------------------------------------------------------
</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">1) Executing perl /tmp/.mount_kmymonlcGKjc/usr/share/alkimia6/misc/financequote.pl za_unittrusts PTST ...</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Symbol found: 'PTST'</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Price found: '2025' (2,025)</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Date found: ' and anything following them is</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> considered non-numeric.</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> </p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Argument "09/12/2025" isn't numeric in numeric ne (!=) at</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> /tmp/.mount_kmymonlcGKjc/usr/share/alkimia6/misc/financequote.pl line 92 (#1)</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">"PTST"'</p>
<br>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-weight:700; color:#ff0000;">Received an invalid price for PTST, unable to update.</span></p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">(Debug) symbol=PTST id=E000001...</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Fetching URL /tmp/.mount_kmymonlcGKjc/usr/share/alkimia6/misc/financequote.pl...</p>
<p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-weight:700; color:#ff0000;">Unable to fetch URL for PTST</span></p>
<style type="text/css">p, li { white-space: pre-wrap; }hr { height: 1px; border-width: 0; }li.unchecked::marker { content: "\2610"; }li.checked::marker { content: "\2612"; }</style>------------------------------------------------------------------------------------------------------------------------------------<br>
2) Run from the command line I get the following response:<br>
timothy@tim:~$ perl
/tmp/.mount_kmymonlcGKjc/usr/share/alkimia6/misc/financequote.pl
za_unittrusts AGSF<br>
Argument "" isn't numeric in numeric ne (!=) at<br>
/tmp/.mount_kmymonlcGKjc/usr/share/alkimia6/misc/financequote.pl
line 92 (#1)<br>
(W numeric) The indicated string was fed as an argument to an
operator<br>
that expected a numeric value instead. If you're fortunate the
message<br>
will identify which operator was so unfortunate.<br>
<br>
Note that for the Inf and NaN (infinity and not-a-number) the<br>
definition of "numeric" is somewhat unusual: the strings
themselves<br>
(like "Inf") are considered numeric, and anything following them
is<br>
considered non-numeric.<br>
<br>
Argument "09/12/2025" isn't numeric in numeric ne (!=) at<br>
/tmp/.mount_kmymonlcGKjc/usr/share/alkimia6/misc/financequote.pl
line 92 (#1)<br>
"AGSF","2025-09-12","51.00"<br>
--------------------------------------------------------------------------------------------------------------------------------<br>
3) The source code from the appimage is:<br>
if (!%qhash) { $errcode = 1;} # no data from fq (?bad exchange?)<br>
elsif ($qhash {$symbol, "success"} != 1) {$errcode = 2;} # got
data but quote failed (?bad symbol?)<br>
elsif (!$qhash{$symbol, "last"} and !$qhash{$symbol, "price"} )
{$errcode = 3;} # can't find a price (?hmmm?)<br>
if ($errcode != 0) {<br>
print "Error " => "$errcode";<br>
} else {<br>
# extract the date and convert from m/d/yyyy to yyyy-mm-dd<br>
my ($usdate, $month, $day, $year, $yyyymmdd);<br>
$usdate = $qhash{$symbol, "date"};<br>
<font color="#e01b24"> if ($usdate != "") {
<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!!!!</font><br>
($month,$day,$year) = ($usdate =~
/([0-9]+)\/([0-9]+)\/([0-9]+)/);<br>
# i'm sure I can do the following with a regex but I'm just
too idle...<br>
$month = "0$month" if ($month < 9);<br>
$day = "0$day" if ($day < 9);<br>
$yyyymmdd = "$year-$month-$day";<br>
} else {<br>
$yyyymmdd = strftime "%Y-%m-%d", localtime<br>
<br>
</body>
</html>