<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF5 SDK for Mesh v2.2.0 - Python 2.7 and 3 Coexistence</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39747/nrf5-sdk-for-mesh-v2-2-0---python-2-7-and-3-coexistence</link><description>So what steps do we need to take to have these two different Python versions both installed &amp;amp; usable at the same time on the same machine? 
 The &amp;#39; Installing the toolchain &amp;#39; page says that tools have to be in the PATH - but, surely, it is going to matter</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Oct 2018 12:56:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39747/nrf5-sdk-for-mesh-v2-2-0---python-2-7-and-3-coexistence" /><item><title>RE: nRF5 SDK for Mesh v2.2.0 - Python 2.7 and 3 Coexistence</title><link>https://devzone.nordicsemi.com/thread/154512?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 12:56:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:762e6a98-f937-4cf2-a4eb-7cb7b00c81f9</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Great! Thanks for that! I will update the internal feedback &amp;amp; hopefully the documentation will be updated soon! &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK for Mesh v2.2.0 - Python 2.7 and 3 Coexistence</title><link>https://devzone.nordicsemi.com/thread/154510?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 12:55:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5264ade6-aa0b-4a77-9c2c-d11e2b767762</guid><dc:creator>awneil</dc:creator><description>[quote userid="25682" url="~/f/nordic-q-a/39747/nrf5-sdk-for-mesh-v2-2-0---python-2-7-and-3-coexistence/154507"]All of the python commands are entered in the terminal window by the user (or by a script that you can write yourself)[/quote]
&lt;p&gt;Ah - that&amp;#39;s the key information that&amp;#39;s missing, then!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK for Mesh v2.2.0 - Python 2.7 and 3 Coexistence</title><link>https://devzone.nordicsemi.com/thread/154507?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 12:45:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddaad4f1-1ccc-4884-9be5-c37b82021066</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>[quote user="awneil"]So are you saying that the Mesh SDK assumes that &amp;#39;python&amp;#39; will start Python 3 ?[/quote]
&lt;p&gt;&amp;nbsp;Yes, as of now I believe that is the case.&lt;/p&gt;
[quote user="awneil"]Therefore, I should modify my existing Python 2.7 so that it will &lt;em&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;/em&gt; be found by an unqualified &amp;#39;python&amp;#39; command?[/quote]
&lt;p&gt;&amp;nbsp;You could do this. All of the python commands are entered in the terminal window by the user (or by a script that you can write yourself). What I have done is run a python3 command (like I mentioned in my first comment) every time the documentation says to use python.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK for Mesh v2.2.0 - Python 2.7 and 3 Coexistence</title><link>https://devzone.nordicsemi.com/thread/154458?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 10:58:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eea7760-087d-4e61-bcd8-0b146df84d74</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So are you saying that the Mesh SDK assumes that &amp;#39;python&amp;#39; will start Python 3 ?&lt;/p&gt;
&lt;p&gt;Therefore, I should modify my existing Python 2.7 so that it will &lt;em&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;/em&gt; be found by an unqualified &amp;#39;python&amp;#39; command?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK for Mesh v2.2.0 - Python 2.7 and 3 Coexistence</title><link>https://devzone.nordicsemi.com/thread/154454?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 10:50:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3086739-39e2-4760-8919-fe12b919b68d</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;I will mention this internally. Thanks for the feedback. Unless you are using the DFU feature, you will not need to use Python 2.7 at all in the mesh sdk. Ideally, all of the mesh tools would use the same version of Python for simplicity.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK for Mesh v2.2.0 - Python 2.7 and 3 Coexistence</title><link>https://devzone.nordicsemi.com/thread/154439?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 09:52:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64661ce8-ded8-403a-a332-923825cc5096</guid><dc:creator>awneil</dc:creator><description>[quote userid="25682" url="~/f/nordic-q-a/39747/nrf5-sdk-for-mesh-v2-2-0---python-2-7-and-3-coexistence/154381"]Do you believe that the documentation is a bit vague?[/quote]
&lt;p&gt;Vague? It is completely silent!&lt;/p&gt;
&lt;p&gt;It needs to clearly state what needs to be done so that the Mesh SDK will correctly find the appropriate version for each of the tools requiring the different versions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK for Mesh v2.2.0 - Python 2.7 and 3 Coexistence</title><link>https://devzone.nordicsemi.com/thread/154381?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 07:09:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34ec9a04-1a7a-46ac-aa98-a371c2c78f60</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;The points that &lt;a href="https://devzone.nordicsemi.com/members/tesc"&gt;tesc&lt;/a&gt; &amp;amp; I made were supposed to be specific, as well as general points. This is what we have done &amp;amp; that has worked very well so far when supporting the nRF5 SDK for Mesh &amp;amp; developing our own examples/demos. Do you believe that the documentation is a bit vague? Is there anything you would change? Please let us know if anything is still unclear.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK for Mesh v2.2.0 - Python 2.7 and 3 Coexistence</title><link>https://devzone.nordicsemi.com/thread/154220?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 08:07:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88e6eba2-cbee-451e-81bf-8f7d64d139f1</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Thanks &lt;a href="https://devzone.nordicsemi.com/members/bjorn-kvaale"&gt;Bjørn Kvaale&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/members/tesc"&gt;tesc&lt;/a&gt;, but I understand these &lt;em&gt;general&lt;/em&gt; points.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The question is, &lt;em&gt;specifically&lt;/em&gt;, how does this need to be set up &lt;em&gt;&lt;strong&gt;for the&amp;nbsp;nRF5 SDK for Mesh&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK for Mesh v2.2.0 - Python 2.7 and 3 Coexistence</title><link>https://devzone.nordicsemi.com/thread/154218?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 08:03:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:209d2c09-32e2-4278-a33f-41a6d4e0d4c1</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Newer versions of Python 3.x will install as &amp;quot;py&amp;quot; in addition to &amp;quot;python&amp;quot;. You may have to rearrange your PATH in order for &amp;quot;python&amp;quot; to refer to the Python 2 install (having the Python 2 directory come first in PATH), but if you install Python 2 before Python 3 then this should work out of the box.&lt;/p&gt;
&lt;p&gt;Similarly, by default you can use &amp;quot;pip3&amp;quot; for the Python 3 version of pip, and &amp;quot;pip&amp;quot; for the Python 2 version.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK for Mesh v2.2.0 - Python 2.7 and 3 Coexistence</title><link>https://devzone.nordicsemi.com/thread/154199?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 06:21:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfbe868d-fb0b-4778-92d3-d223628f269f</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;I agree that this is an issue. Of course, you could always switch which location is first in the path to switch between Python 2 &amp;amp; 3, but this is a time-consuming &amp;amp; annoying process. What I have done is keep the Python 2 application named python &amp;amp; renamed the Python 3 application python3. That way, I can either call python or python3 &amp;amp; do not need to make any changes in the path. Naturally both applications need to be part of the path.&amp;nbsp;This may not be the best solution, but it works fine for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>