<?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>nrfutil not working on MacOS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104292/nrfutil-not-working-on-macos</link><description>I installed the latest nrfutil 7.x and it will not run on macOS. 
 I get: 
 ryan@superfruit ~ % nrfutil --help zsh: /usr/local/bin/nrfutil: bad interpreter: /usr/local/opt/python/bin/python3.7: no such file or directory</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Oct 2023 21:56:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104292/nrfutil-not-working-on-macos" /><item><title>RE: nrfutil not working on MacOS</title><link>https://devzone.nordicsemi.com/thread/449237?ContentTypeID=1</link><pubDate>Fri, 06 Oct 2023 21:56:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7452a91-5a3d-4e6f-97fb-3c994bd0d88e</guid><dc:creator>rerickson</dc:creator><description>&lt;p&gt;That looks like the issue:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ryan@superfruit ~ % file /usr/local/bin/nrfutil&lt;br /&gt;/usr/local/bin/nrfutil: a /usr/local/opt/python/bin/python3.7 script text executable, ASCII text&lt;br /&gt;ryan@superfruit ~ % cat /usr/local/bin/nrfutil&lt;br /&gt;#!/usr/local/opt/python/bin/python3.7&lt;br /&gt;# -*- coding: utf-8 -*-&lt;br /&gt;import re&lt;br /&gt;import sys&lt;br /&gt;from nordicsemi.__main__ import cli&lt;br /&gt;if __name__ == &amp;#39;__main__&amp;#39;:&lt;br /&gt; sys.argv[0] = re.sub(r&amp;#39;(-script\.pyw|\.exe)?$&amp;#39;, &amp;#39;&amp;#39;, sys.argv[0])&lt;br /&gt; sys.exit(cli())&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil not working on MacOS</title><link>https://devzone.nordicsemi.com/thread/448613?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2023 10:25:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75b0b465-b65f-4dce-a0c6-b566f0a6b87c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;div&gt;Is it possible that you have an old version of nrfutil on your PATH still?&amp;nbsp;Can you run&amp;nbsp;&amp;nbsp;&lt;code&gt;file /usr/local/bin/nrfutil&lt;/code&gt; to see if this is a python script? Older versions of nrfutil were using python. Check if your newest version is installed somewhere else.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil not working on MacOS</title><link>https://devzone.nordicsemi.com/thread/448591?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2023 04:43:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f2fdbea-a0a2-4afd-b14f-5bc17dd93e8d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It should not be a hard dependency on a particular version like that. If it is, then it has to be a mistake. I have asked the Tools teams to comment on the error message. Will update you soon on their findings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil not working on MacOS</title><link>https://devzone.nordicsemi.com/thread/448556?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2023 15:15:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bda08ccb-fc7c-4956-8502-6cd5e0ea4ff9</guid><dc:creator>rerickson</dc:creator><description>&lt;p&gt;No where on your nrfutill page does it detail or describe the python requirements.&lt;/p&gt;
&lt;p&gt;I use pyenv to manage python on my mac and python is working without issues.&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;ryan@superfruit ~ % python --version&lt;br /&gt;Python 3.11.4&lt;br /&gt;ryan@superfruit ~ % which python&lt;br /&gt;/Users/ryan/.pyenv/shims/python&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;Does nrfutil require python 3.7? If so, that is a major issue. Python 3.7 is EOL.&lt;/p&gt;
&lt;p&gt;nrfutil should work regardless of other python environments on the system.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil not working on MacOS</title><link>https://devzone.nordicsemi.com/thread/448478?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2023 09:48:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9e9a8b6-e804-403a-b1c6-784d3b33391a</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;This seems to be an issue with your python installation or the path.&amp;nbsp;&lt;br /&gt;Did you check where your Python is installed and if it is working properly?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>