<!doctype html>
<html>
 <head> 
  <meta charset="UTF-8"> 
 </head>
 <body>
  <div>
   Nothing to stop you installing 2.6, 27. and 3.something to ensure compatibility. They will all reside together.
  </div>
  <div>
   All available from python.org for free download.
  </div>
  <div>
   <br>
  </div>
  <blockquote type="cite">
   On 19 July 2020 at 11:26 Martin Cooper &lt;mfncooper@gmail.com&gt; wrote: 
   <br>
   <br>
   <div dir="ltr">
    <div dir="ltr">
     <div style="font-size: small;" class="ox-f5b7a96645-gmail_default">
      <br>
     </div>
    </div>
    <br>
    <div class="ox-f5b7a96645-gmail_quote">
     <div class="ox-f5b7a96645-gmail_attr" dir="ltr">
      On Sat, Jul 18, 2020 at 10:37 PM David Ranch &lt; 
      <a href="mailto:chirp@trinnet.net">chirp@trinnet.net</a>&gt; wrote: 
      <br>
     </div>
     <blockquote>
      <div>
       It's just strange to me that certain drivers would use Python2.7 syntax but others would be fine with 2.6 syntax.
      </div>
     </blockquote>
     <div>
      <br>
     </div>
     <div>
      <div style="font-size: small;" class="ox-f5b7a96645-gmail_default">
       Not really. As I mentioned, Chirp is targeted at Python 2.7. All Python 2.6.x syntax is valid in 2.7, but 2.7 adds some new capabilities. It's not strange that someone would want to take advantage of those new capabilities when they're available as part of the target version.
      </div>
      <div style="font-size: small;" class="ox-f5b7a96645-gmail_default">
       <br>
      </div>
      <div style="font-size: small;" class="ox-f5b7a96645-gmail_default">
       This is not really different from someone working in C++. If the target version was C++11, any code written for C++98 or C++03 would still be fine, but there are new features - and new syntax - that can be taken advantage of in C++11 to make life simpler / more robust. Code written using those new features may not compile with an older compiler.
      </div>
      <div style="font-size: small;" class="ox-f5b7a96645-gmail_default">
       <br>
      </div>
      <div style="font-size: small;" class="ox-f5b7a96645-gmail_default">
       Also, I'll note in passing that Python 2.7 was released 10 years ago, and security updates for Python 2.6.6 were stopped 7 years ago, in 2013.
      </div>
      <br>
     </div>
     <div>
      <div style="font-size: small;" class="ox-f5b7a96645-gmail_default">
       Martin.
      </div>
      <div style="font-size: small;" class="ox-f5b7a96645-gmail_default">
       KD6YAM
      </div>
      <br>
     </div>
     <div>
      <br>
     </div>
     <blockquote>
      <div>
       --David
       <br>KI6ZHD
       <br>
       <br>
       <br>
       <div>
        On 07/18/2020 09:39 PM, Martin Cooper wrote: 
        <br>
       </div>
       <blockquote type="cite">
        <div dir="ltr">
         <div style="font-size: small;">
          Hi David,
         </div>
         <div style="font-size: small;">
          <br>
         </div>
         <div style="font-size: small;">
          Chirp is written for Python 2.7, which is why you're seeing the error. Dictionary comprehensions were introduced with 2.7. It's possible that you're just unlucky in trying to use a driver that uses a 2.7 feature, but given that 2.7 is the target version, it's also quite possible that you'd run into more problems if you worked around&nbsp;this one. (If you wanted to try, google for dictionary comprehensions in 2.6, but don't be too surprised if you hit something else shortly thereafter.)
         </div>
         <div style="font-size: small;">
          <br>
         </div>
         <div style="font-size: small;">
          That 2.7 is the target platform isn't well documented. There's a note in the wiki for a Win32 dev env that says " 
          <span style="color: #484848; font-family: Verdana,sans-serif; font-size: 12px;">chirp is currently written for Python 2.7 and above</span>", though in the same para it also says it "will generally run on Python 2.6.x". That latter likely depends on the features you want to use. The KK7DS Python runtime for Mac OSX, needed for Chirp on a Mac, is also a packaging of Python 2.7.
         </div>
         <div style="font-size: small;">
          <br>
         </div>
         <div style="font-size: small;">
          Martin.
         </div>
         <div style="font-size: small;">
          KD6YAM
         </div>
        </div>
        <br>
        <div class="ox-f5b7a96645-gmail_quote">
         <div class="ox-f5b7a96645-gmail_attr" dir="ltr">
          On Sat, Jul 18, 2020 at 7:18 PM David Ranch &lt; 
          <a target="_blank" href="mailto:chirp@trinnet.net" rel="noopener">chirp@trinnet.net</a>&gt; wrote: 
          <br>
         </div>
         <blockquote>
          <div>
           <br>Hello Everyone,
           <br>
           <br>I've been a happy Chirp user for a long time but haven't upgraded for some time.&nbsp; I was previously running the TIP version back from Feb&nbsp; 3&nbsp; 2018 (chirp-hg-e3b90fa8c316) and that worked well but once I fetched the newest version with:
           <br>
           <br>&nbsp;&nbsp; wget 
           <a target="_blank" href="http://d-rats.com/hg/hgwebdir.cgi/chirp.hg/archive/tip.tar.gz" rel="noopener">http://d-rats.com/hg/hgwebdir.cgi/chirp.hg/archive/tip.tar.gz</a>
           <br>
           <br>Both of these newest versions give me the below errors:
           <br>
           <br>&nbsp;&nbsp; lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 dranch dranch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 21 Jul 18 19:09 chirp-tip-newest -&gt; chirp-hg-37a6a6d6f425
           <br>&nbsp;&nbsp; lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 dranch dranch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 21 Jul 12 13:22 chirp-tip-newest -&gt; chirp-hg-061e53a8a2cc
           <br>
           <br>
           <br>The errors I'm seeing are:
           <br>--
           <br>$ ./chirpw
           <br>Traceback (most recent call last):
           <br>&nbsp; File "./chirpw", line 24, in &lt;module&gt;
           <br>&nbsp;&nbsp;&nbsp; from chirp.drivers import *
           <br>&nbsp; File "/home/archive/Chirp/chirp-hg-37a6a6d6f425/chirp/drivers/anytone778uv.py", line 192
           <br>&nbsp;&nbsp;&nbsp; for val in TONE_MAP_VAL_TO_TONE}
           <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^
           <br>SyntaxError: invalid syntax
           <br>--
           <br>
           <br>It was mentioned by Jim Unroe to install the "future" pip package but installing version 0.18.2 didn't help.&nbsp; Any thoughts?
           <br>
           <br>--David
           <br>KI6ZHD
           <br>
          </div>_______________________________________________ 
          <br>chirp_users mailing list 
          <br>
          <a target="_blank" href="mailto:chirp_users@intrepid.danplanet.com" rel="noopener">chirp_users@intrepid.danplanet.com</a> 
          <br>
          <a target="_blank" href="http://intrepid.danplanet.com/mailman/listinfo/chirp_users" rel="noopener">http://intrepid.danplanet.com/mailman/listinfo/chirp_users</a> 
          <br>This message was sent to Martin Cooper at 
          <a target="_blank" href="mailto:mfncooper@gmail.com" rel="noopener">mfncooper@gmail.com</a> 
          <br>To unsubscribe, send an email to 
          <a target="_blank" href="mailto:chirp_users-unsubscribe@intrepid.danplanet.com" rel="noopener">chirp_users-unsubscribe@intrepid.danplanet.com</a>
         </blockquote>
        </div>
        <br>
        <br>
        <pre>_______________________________________________
chirp_users mailing list
<a target="_blank" href="mailto:chirp_users@intrepid.danplanet.com" rel="noopener">chirp_users@intrepid.danplanet.com</a>
<a target="_blank" href="http://intrepid.danplanet.com/mailman/listinfo/chirp_users" rel="noopener">http://intrepid.danplanet.com/mailman/listinfo/chirp_users</a>
This message was sent to David Ranch at <a target="_blank" href="mailto:chirp@trinnet.net" rel="noopener">chirp@trinnet.net</a>
To unsubscribe, send an email to <a target="_blank" href="mailto:chirp_users-unsubscribe@intrepid.danplanet.com" rel="noopener">chirp_users-unsubscribe@intrepid.danplanet.com</a></pre>
       </blockquote>
       <br>
      </div>_______________________________________________ 
      <br>chirp_users mailing list 
      <br>
      <a target="_blank" href="mailto:chirp_users@intrepid.danplanet.com" rel="noopener">chirp_users@intrepid.danplanet.com</a> 
      <br>
      <a target="_blank" href="http://intrepid.danplanet.com/mailman/listinfo/chirp_users" rel="noopener">http://intrepid.danplanet.com/mailman/listinfo/chirp_users</a> 
      <br>This message was sent to Martin Cooper at 
      <a target="_blank" href="mailto:mfncooper@gmail.com" rel="noopener">mfncooper@gmail.com</a> 
      <br>To unsubscribe, send an email to 
      <a target="_blank" href="mailto:chirp_users-unsubscribe@intrepid.danplanet.com" rel="noopener">chirp_users-unsubscribe@intrepid.danplanet.com</a>
     </blockquote>
    </div>
   </div>_______________________________________________ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Nigel Gunn, W8IFF at nigel@ngunn.net To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
  </blockquote>
  <div class="default-style">
   <br>&nbsp;
  </div>
  <div class="io-ox-signature">
   <p>Nigel A. Gunn, ///shoulders.outwards.resolutions&nbsp; &nbsp;tel +1 937 825 5032<br>Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@ngunn.net www http://www.ngunn.net <br><br></p>
  </div> 
 </body>
</html>