<?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>Can&amp;#39;t build Guiconfig in nRF Connect on Mac</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112812/can-t-build-guiconfig-in-nrf-connect-on-mac</link><description>I have nRF Connect SDK v2.6.1 installed on a Mac, the latest toolchain installed via nRF Connect for Desktop, and VSCode with all the nRF extensions. Everything works pretty well except that I cannot build and run the guiconfig tool. The Python terminal</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Nov 2024 11:24:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112812/can-t-build-guiconfig-in-nrf-connect-on-mac" /><item><title>RE: Can't build Guiconfig in nRF Connect on Mac</title><link>https://devzone.nordicsemi.com/thread/510267?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 11:24:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0ba225e-98b4-47c9-8cec-ac3fa4fa430c</guid><dc:creator>jacobmossberg</dc:creator><description>&lt;p&gt;I am also using Mac and I got this error message:&lt;/p&gt;
&lt;div style="background-color:#ffffff;color:#000000;font-family:Menlo, Monaco, &amp;#39;Courier New&amp;#39;, monospace;font-size:12px;font-weight:normal;line-height:18px;white-space:pre;"&gt;
&lt;pre&gt;&lt;code&gt;&lt;span style="color:#000000;"&gt;_tkinter.TclError: Can&amp;#39;t find a usable init.tcl in the following directories: &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color:#000000;"&gt; /opt/homebrew/Cellar/tcl-tk/8.6.11_1/lib/tcl8.6 /opt/nordic/ncs/toolchains/f8037e9b83/Cellar/python@3.9/3.9.6/lib/tcl8.6 /opt/nordic/ncs/toolchains/f8037e9b83/Cellar/python@3.9/lib/tcl8.6 /opt/nordic/ncs/toolchains/f8037e9b83/Cellar/python@3.9/3.9.6/library /opt/nordic/ncs/toolchains/f8037e9b83/Cellar/python@3.9/library /opt/nordic/ncs/toolchains/f8037e9b83/Cellar/python@3.9/tcl8.6.11/library /opt/nordic/ncs/toolchains/f8037e9b83/Cellar/tcl8.6.11/library&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;I did this ugly workaround inspired by the other replies.&lt;/p&gt;
&lt;div style="background-color:#ffffff;color:#000000;font-family:Menlo, Monaco, &amp;#39;Courier New&amp;#39;, monospace;font-size:12px;font-weight:normal;line-height:18px;white-space:pre;"&gt;
&lt;div&gt;&lt;code&gt;&lt;span style="color:#000000;"&gt;mkdir -p /opt/homebrew/Cellar/tcl-tk/8.6.11_1/lib/&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style="background-color:#ffffff;color:#000000;font-family:Menlo, Monaco, &amp;#39;Courier New&amp;#39;, monospace;font-size:12px;font-weight:normal;line-height:18px;white-space:pre;"&gt;
&lt;div&gt;&lt;code&gt;&lt;span style="color:#000000;"&gt;ln -s /opt/nordic/ncs/toolchains/f8037e9b83/Cellar/tcl-tk/8.6.11_1/lib/tcl8.6 \&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&lt;span style="color:#000000;"&gt;/opt/homebrew/Cellar/tcl-tk/8.6.11_1/lib/tcl8.6&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&lt;span style="color:#000000;"&gt;ln -s /opt/nordic/ncs/toolchains/f8037e9b83/Cellar/tcl-tk/8.6.11_1/lib/tk8.6 \&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&lt;span style="color:#000000;"&gt;/opt/homebrew/Cellar/tcl-tk/8.6.11_1/lib/tcl8.6/tk8.6&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't build Guiconfig in nRF Connect on Mac</title><link>https://devzone.nordicsemi.com/thread/507225?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2024 23:33:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb8e7ea3-5329-4e24-b7f0-3534262d51b3</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Thank you. That worked for me--like you said, it is ugly!&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't build Guiconfig in nRF Connect on Mac</title><link>https://devzone.nordicsemi.com/thread/507223?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2024 23:15:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03ab33c1-9e9d-4059-9b73-19468e544a51</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;I wish they would fix it. These issues are really confusing for we users that have done things in the past successfully and all of a sudden, years later, things no longer work. Please ask the development team to keep on top of things like this. Thanks!&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't build Guiconfig in nRF Connect on Mac</title><link>https://devzone.nordicsemi.com/thread/493233?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 17:15:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24bb8f80-4b99-4b47-9f28-b2c80f8b47ee</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Thanks for the feedback. I have forward it to the team.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't build Guiconfig in nRF Connect on Mac</title><link>https://devzone.nordicsemi.com/thread/493019?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 15:52:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87ded0c0-b117-49a4-a427-e959433c238d</guid><dc:creator>Saxman58</dc:creator><description>&lt;p&gt;That post was helpful, but it made it clear that this has been a problem for Mac users for a few years and Nordic still hasn&amp;#39;t fixed the toolchain.&amp;nbsp; One of the users said that he solved the problem by adding a simlink, so I tried a similar fix and it worked, but is a fragile patch that will break and have to be redone whenever I update to a newer toolchain.&amp;nbsp; Here&amp;#39;s the problem and fix:&lt;br /&gt;&lt;br /&gt;The SDK toolchain keeps looking for Tcl 8.6.11_1 in my /usr/local/Cellar/tcl-tk directory, outside of the toolchain directories.&amp;nbsp; I have a newer version of tcl-tk there (8.6.14).&amp;nbsp; The Tcl the toolchain should be using is the one in the toolchain directories, not my setup.&amp;nbsp; So I created a simlink to redirect the toolchain back to its own Tcl setup that it should have been using to begin with.&amp;nbsp; In this case, for the 2.6.1 toolchain (580e4ef81c) this fixed the problem:&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;ln -s /opt/nordic/ncs/toolchains/580e4ef81c/Cellar/tcl-tk/8.6.11_1 /usr/local/Cellar/tcl-tk/8.6.11_1&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;But as you can see, the simlink will need to be changed if I change the toolchain.&amp;nbsp; This is not ideal.&lt;br /&gt;&lt;br /&gt;I agree with the commentor from the post you linked that your Mac developers probably don&amp;#39;t see the same problem as us users because they have the required 8.6.11_1 in their own /usr/local/Cellar/tcl-tk directory, so that masks the problem that the toolchain is pointing to a directory outside of the toolchain folders and thus not guaranteed to exist on user&amp;#39;s Macs.&amp;nbsp; It should instead look within the toolchain where it knows the required Tcl files will exist.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't build Guiconfig in nRF Connect on Mac</title><link>https://devzone.nordicsemi.com/thread/493009?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 14:58:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a62b018b-b829-40fc-8890-c8af6929ddb4</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="Saxman58"]Does anyone at Nordic have a MacOS setup so they can check if the Guiconfig (which runs Python code that uses Tk) works or not?[/quote]
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;The developers are not able to reproduce your issue. See&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/83069/nrf-connect-for-vs-code-kconfig-gui-config-failing-with-sdk-v1-8-0-macos/357000"&gt; this post &lt;/a&gt;might help.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't build Guiconfig in nRF Connect on Mac</title><link>https://devzone.nordicsemi.com/thread/492880?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 07:24:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac088db7-f5ec-4afd-998b-bec16c4f28a0</guid><dc:creator>Saxman58</dc:creator><description>&lt;p&gt;It would appear that your toolchain uses its own versions of python and tcl, so my paths shouldn&amp;#39;t really matter.&amp;nbsp; And unlike the other case you referenced, I don&amp;#39;t have any TCL... environment variables that might conflict.&amp;nbsp; It really seems like there is something wrong with the SDK toolchain for the Mac.&amp;nbsp; I installed the new v2.7.0 toolchain and it has the same problem as v2.6.1.&lt;br /&gt;&lt;br /&gt;Does anyone at Nordic have a MacOS setup so they can check if the Guiconfig (which runs Python code that uses Tk) works or not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't build Guiconfig in nRF Connect on Mac</title><link>https://devzone.nordicsemi.com/thread/492742?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 13:45:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d72eb31-6cb4-4b3a-8341-ff2a41183e61</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It might be&amp;nbsp;&lt;span&gt;an issue with your paths as&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93746/guiconfig-fails-due-to-missing-tcl-library/395137"&gt; this case&lt;/a&gt; indicated. If you still cannot fix the problem,&amp;nbsp;&lt;span dir="ltr"&gt;I would suggest to use nRF Kconfig GUI or menuconfig.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>