<?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>Building sample apps using CLI and SDK v3 fails</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125555/building-sample-apps-using-cli-and-sdk-v3-fails</link><description>Hello everyone, I&amp;#39;m trying to build the blinky sample for nrf9160 DK board using CLI. The build works with SDK and toolchains v2.2.0 and v2.9.0, but fails with v3.0.1 and v3.1.1. The issue is specific to command-line builds, It builds fine via the VS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Nov 2025 14:50:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125555/building-sample-apps-using-cli-and-sdk-v3-fails" /><item><title>RE: Building sample apps using CLI and SDK v3 fails</title><link>https://devzone.nordicsemi.com/thread/554153?ContentTypeID=1</link><pubDate>Wed, 12 Nov 2025 14:50:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87d1d578-761f-4f4f-bafd-9634cb5cff49</guid><dc:creator>I.gin</dc:creator><description>&lt;p&gt;This one solved it. Removed the pyenv directory from PATH and also the python installed by homebrew and was set as default, Now I can build the app using command line.&lt;br /&gt;Thanks! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building sample apps using CLI and SDK v3 fails</title><link>https://devzone.nordicsemi.com/thread/554131?ContentTypeID=1</link><pubDate>Wed, 12 Nov 2025 13:35:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41c3f974-424a-46f6-87a2-1f7186dd88c4</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Could you&amp;nbsp;then try removing all other python installation in your PATH&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/118494/getting-error-importerror-module-use-of-python312-dll-conflicts-with-this-version-of-python-when-flashing---can-build-perfectly-fine?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt; as mentioned in this ticket&lt;/a&gt;. Because then CMake will pickup the default ones within the toolchains, possibly at&amp;nbsp;&lt;span&gt;C:/ncs/toolchains/&amp;lt;toolchain_version&amp;gt;/opt/bin/python.exe&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Priyanka&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building sample apps using CLI and SDK v3 fails</title><link>https://devzone.nordicsemi.com/thread/554125?ContentTypeID=1</link><pubDate>Wed, 12 Nov 2025 13:14:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f006c0ae-9e8c-45ea-a3fe-96dbe55350e3</guid><dc:creator>I.gin</dc:creator><description>&lt;p&gt;All the tests&amp;nbsp;are done by opening a terminal with the corresponding SDK and toolchain version. It also&amp;nbsp;shows at the beginning of the logs that I posted.&lt;br /&gt;&lt;br /&gt;If I don&amp;#39;t do that and use command in a terminal without SDK and Toolchain I get &amp;quot;command not found&amp;quot; error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building sample apps using CLI and SDK v3 fails</title><link>https://devzone.nordicsemi.com/thread/554109?ContentTypeID=1</link><pubDate>Wed, 12 Nov 2025 12:19:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fab73855-7951-47b6-825d-b57a140ae5b0</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you try opening the terminal profile corresponding to the proper NCS version? For eg. , if you are trying with v3.1.1, first select &amp;quot;open termina profile&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1762949883801v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;then select the correct SDK and Toolchain version:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1762949941120v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1762949955825v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This will open up a terminal and try building in that:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1762949989572v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building sample apps using CLI and SDK v3 fails</title><link>https://devzone.nordicsemi.com/thread/554094?ContentTypeID=1</link><pubDate>Wed, 12 Nov 2025 10:23:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:426a0a33-c671-45a4-87da-1d1611c58d27</guid><dc:creator>I.gin</dc:creator><description>&lt;p&gt;Tested this and still getting the same error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building sample apps using CLI and SDK v3 fails</title><link>https://devzone.nordicsemi.com/thread/554084?ContentTypeID=1</link><pubDate>Wed, 12 Nov 2025 09:49:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37dde4ee-f292-41d7-80ba-903bd1998bdd</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The issue is because your&amp;nbsp;CMake is picking up the external pyenv Python version and not the NCS Toolchain&amp;#39;s python. You could make try to point CMake to the NCS Toolchain&amp;#39;s python:&lt;/p&gt;
&lt;p&gt;west build -b nrf9160dk/nrf9160/ns --pristine \&lt;br /&gt; -- -DPython3_EXECUTABLE=/opt/nordic/ncs/toolchains/0b393f9e1b&lt;span&gt;/&lt;/span&gt;opt&lt;span&gt;/&lt;/span&gt;python@3.12/bin/python3.12&lt;/p&gt;
&lt;p&gt;Please do let me know if this works.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>