<html theme="default-light" iconset="color"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body text="#000000">Dean,<br>
<br>
The Chirp software is written in the Python programming language and the
 patch file was created by its author using the 'diff' tool. The diff 
tool compares the modified copy of the source (.py) file(s) (in this 
case x3 files) to the original source files and creates a 'patch file' 
that records the differences. This is useful because those differences 
can then be applied by anyone who has an unpatched version of the source
 files on their computer by using the 'patch' tool. This is a common 
approach among open source developers for distributing patches so its 
worth being aware of how they work. In this instance someone has kindly 
shared a list of changes they to their copy of Chirp in a form that can 
be applied automatically by anyone with the appropriate tool.<br>
<br>
However, there is a caveat. You do not mention whether you are using 
Windows, Mac or Linux? This patch file applies to the original Python 
(.py) program files. On most Unix based systems, Python is installed by 
default and as it is commonly used by various system tools. The Chirp 
program is supplied as a series of .py files along with various other 
supplementary files. On my computer I found the Chirp directory at:<br>
  <br>
/usr/lib/python2.7/dist-packages/chirp<br>

<br>
The patch file would need to be copied there and then the patch tool 
would be run. The most basic invocation is:<br>
<br>
patch -i addRadioRefCanadaSearch.patch<br>
<br>
This would apply modifications to the three .py files listed at the 
start of the patch file. Before applying the patch, it is usually good 
to first make a copy of the contents of the original directory in case 
something goes wrong. This will work for Linux and probably on Mac, 
although you will need to find the location for the program directory on
 the Mac.<br>
<br>
However, on Windows, Chirp is supplied as a binary (.exe) program and 
its dependencies (required supplemental packages) including Python 2.7 
are packaged into a series of .dll files. The program is provided in a 
very different form so that it will run in Windows. That patch file will
 unfortunately not work with the Windows version, neither the installer 
nor the .zip version. I do not have sufficient knowledge of how Chrip 
has been packaged for Windows to be able to help. Maybe someone else 
does or you will have to wait for the author to include the patch in the
 next official version.<br>
<br>
Regards.<br>
<br>
<br>
<br>
<span>Dean Gmail wrote on 17/12/2020 18:07:</span><br>
<blockquote type="cite" 
cite="mid:6d0c4bf6-b4da-4709-b78f-869ea2c6eb72@fluidstudios.ca" 
style="zoom: 0%;">
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <style>/*<![CDATA[*/p.MsoNormal, li.MsoNormal, div.MsoNormal {
 margin: 0.0cm;
 font-size: 11.0pt;
 font-family: Calibri , sans-serif;
 color: rgb(31,73,125);
}
a:link, span.MsoHyperlink {
 color: blue;
 text-decoration: underline;
}
a:visited, span.MsoHyperlinkFollowed {
 color: purple;
 text-decoration: underline;
}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate {
 margin: 0.0cm;
 font-size: 8.0pt;
 font-family: Tahoma , sans-serif;
 color: rgb(31,73,125);
}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
 margin-top: 0.0cm;
 margin-right: 0.0cm;
 margin-bottom: 0.0cm;
 margin-left: 36.0pt;
 font-size: 11.0pt;
 font-family: Calibri , sans-serif;
 color: rgb(31,73,125);
}
span.BalloonTextChar {
 font-family: Tahoma , sans-serif;
 color: rgb(31,73,125);
}
span.EmailStyle20 {
 font-family: Calibri , sans-serif;
 color: rgb(31,73,125);
 font-weight: normal;
 font-style: normal;
}
span.EmailStyle21 {
 font-family: Calibri , sans-serif;
 color: rgb(31,73,125);
}
span.EmailStyle22 {
 font-family: Calibri , sans-serif;
 color: rgb(31,73,125);
}
*.MsoChpDefault {
 font-size: 10.0pt;
}
div.Section1 {
 page: Section1;
}
* {
}
* {
}
* {
}
* {
}
* {
}
* {
}
* {
}
* {
}
* {
}
* {
}
ol {
 margin-bottom: 0.0cm;
}
ul {
 margin-bottom: 0.0cm;
}
/*]]>*/</style>
  <div dir="auto">Thanks Mark - good work!<br><br></div>

  <div dir="auto">I looked at the patch, but I've never used Python 
before.  Where would it be applied? <br><br></div>

  <div dir="auto">Is there anyone else that  could implement it? <br><br></div>

  <div dir="auto">Thanks, <br></div>

  <div dir="auto">Dean  </div>

  <div class="gmail_quote">On Dec. 17, 2020, at 10:00 a.m., Mark Leigh 
&lt;<a href="mailto:mark.leigh@shaw.ca" target="_blank" 
moz-do-not-send="true">mark.leigh@shaw.ca</a>&gt; wrote:<blockquote 
class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px 
solid rgb(204, 204, 204); padding-left: 1ex;"><div style="font-family: 
arial, helvetica, sans-serif; font-size: 10pt; color: #000000"><div>Hi 
G-Mail,</div><div>I have recently added this feature for 
Canada/RadioReference and I submitted the patch on Nov 29th (for the 
stable branch - py3). As the author is (I believe) hospitalized at the 
moment, patches have not been accepted or applied since Nov 26th. If 
you're savvy, you can used the attached patch file to add support for 
importing from any province in Canada. I'll probably fork CHIRP with 
this added feature as it's been requested by boatloads of folks, and I 
would love for folks to be able to get their hands on it... When I have 
time...</div><div>See attached patch.</div><div>Cheers,</div><div>-Mark</div><div><br></div><hr
 id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From:
 </b>"G-mail" <a class="moz-txt-link-rfc2396E" href="mailto:gmail@fluidstudios.ca">&lt;gmail@fluidstudios.ca&gt;</a><br><b>To: </b>"chirp users" 
<a class="moz-txt-link-rfc2396E" href="mailto:chirp_users@intrepid.danplanet.com">&lt;chirp_users@intrepid.danplanet.com&gt;</a><br><b>Sent: </b>Thursday, 
December 17, 2020 7:00:48 AM<br><b>Subject: </b>[chirp_users] Database 
import from Radioreference.com<br></div><div><br></div><div 
data-marker="__QUOTED_TEXT__">

<div class="Section1">

<p class="MsoNormal">Hi,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">When importing a database into CHIRP from
Radioreference.com, it asks for:<br>
- Username<span style="color:#1f497d"> - ok</span><br>
- Password<span style="color:#1f497d"> - ok</span><br>
- <b><u>Zip Code</u></b> – I’m from Canada<span style="color:#1f497d"> 
&amp;
the database is also</span>.  Which zip code should I use? <span 
style="color:#1f497d"></span></p>

<p class="MsoNormal">I didn't enter an address <span 
style="color:#1f497d">on
Radioreference </span>&amp; I don't see one associated with the 
database... ?</p>

<p class="MsoListParagraph" style="margin-left:0cm;text-indent:0cm">-<span
 style="font:7pt 'times new roman'">                 
</span>It is giving an error code: server raised fault:
Invalid Country ID</p>

<p class="MsoNormal"><br>
<span style="color:#1f497d">I have also tried to import via a CSV file, 
but so
far I’m getting an error message, as it doesn’t like the CSV 
formatting…  </span></p>

<p class="MsoNormal"><span style="color:#1f497d"> </span></p>

<p class="MsoNormal">Thanks!</p>

</div>

<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de"><tbody><tr><td 
style="width:55px;padding-top:13px"><a 
href="http://www.avg.com/email-signature?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=emailclient"
 target="_blank" rel="nofollow noopener noreferrer" 
moz-do-not-send="true"><img alt="" style="width:46px;height:29px" 
src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png"
 moz-do-not-send="true" height="29" width="46"></a></td><td 
style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:'arial'
 , 'helvetica' , sans-serif;line-height:18px">Virus-free. <a 
href="http://www.avg.com/email-signature?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=emailclient"
 style="color:#4453ea" target="_blank" rel="nofollow noopener 
noreferrer" moz-do-not-send="true">www.avg.com</a>
  </td></tr></tbody></table><a 
href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" rel="nofollow" 
moz-do-not-send="true"> </a></div>
<br>_______________________________________________<br>chirp_users 
mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:chirp_users@intrepid.danplanet.com">chirp_users@intrepid.danplanet.com</a><br><a class="moz-txt-link-freetext" href="http://intrepid.danplanet.com/mailman/listinfo/chirp_users">http://intrepid.danplanet.com/mailman/listinfo/chirp_users</a><br>This
 message was sent to Mark Leigh at <a class="moz-txt-link-abbreviated" href="mailto:mark.leigh@shaw.ca">mark.leigh@shaw.ca</a><br>To unsubscribe,
 send an email to <a class="moz-txt-link-abbreviated" href="mailto:chirp_users-unsubscribe@intrepid.danplanet.com">chirp_users-unsubscribe@intrepid.danplanet.com</a><br></div></div><pre class="blue"><hr>
chirp_users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:chirp_users@intrepid.danplanet.com">chirp_users@intrepid.danplanet.com</a>
<a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_users" moz-do-not-send="true">http://intrepid.danplanet.com/mailman/listinfo/chirp_users</a>
This message was sent to Dan at <a class="moz-txt-link-abbreviated" href="mailto:gmail@fluidstudios.ca">gmail@fluidstudios.ca</a>
To unsubscribe, send an email to <a class="moz-txt-link-abbreviated" href="mailto:chirp_users-unsubscribe@intrepid.danplanet.com">chirp_users-unsubscribe@intrepid.danplanet.com</a></pre></blockquote></div>

  <br>
  <fieldset class="mimeAttachmentHeader"></fieldset>
  <br>
  <pre wrap="">_______________________________________________
chirp_users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:chirp_users@intrepid.danplanet.com">chirp_users@intrepid.danplanet.com</a>
<a class="moz-txt-link-freetext" href="http://intrepid.danplanet.com/mailman/listinfo/chirp_users">http://intrepid.danplanet.com/mailman/listinfo/chirp_users</a>
This message was sent to John Chajecki at <a class="moz-txt-link-abbreviated" href="mailto:subs@qcontinuum.plus.com">subs@qcontinuum.plus.com</a>
To unsubscribe, send an email to <a class="moz-txt-link-abbreviated" href="mailto:chirp_users-unsubscribe@intrepid.danplanet.com">chirp_users-unsubscribe@intrepid.danplanet.com</a></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>John.<br>

</div>
</body></html>