<?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>nRF Connect Toolchain fails</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88579/nrf-connect-toolchain-fails</link><description>I followed your step by step guide available on your site for installing the SDK and Toolchain. My system are Fedora 36 with VS Code IDE, but the system detects the errors that I report attached in this screenshot: 
 
 
 
 and in the VS Code IDE output</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Jul 2022 12:47:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88579/nrf-connect-toolchain-fails" /><item><title>RE: nRF Connect Toolchain fails</title><link>https://devzone.nordicsemi.com/thread/376790?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 12:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69f47e29-c0a1-469f-a5a9-0618e2adcec2</guid><dc:creator>Anthony Corriveau</dc:creator><description>&lt;p&gt;That worked! Thanks for that. I had tried fixing it as well, but gave up. As you said, it only affected Kconfig, but it was annoying.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Toolchain fails</title><link>https://devzone.nordicsemi.com/thread/376752?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 10:50:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07668060-2255-468f-a94c-af5dcc162a3e</guid><dc:creator>Vampunzel</dc:creator><description>&lt;p&gt;This is my first post here. I hope a 1 month old question is not too old to answer to. Since Anthony Corriveau seemed to have a similar problem i figured this might still be relevant for some people.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I had the same problem on Ubuntu 22.04. I downloaded version 2.0.0 of the sdk and toolchain using NRF Connect for Desktop (Toolchain Manager). It seems the toolchain comes with a full install of python3.8.&lt;/p&gt;
&lt;p&gt;The nRF extensions for VS Code use the environment variables defined in &amp;lt;toolchain_dir&amp;gt;/environment.json. This includes the variables PYTHONHOME and PYTHONPATH which allow the use of the toolchain-specific python instead of the one installed on my system per default. At least that is how I understand it (i am by no means a python expert). &lt;/p&gt;
&lt;p&gt;However the Kconfig extension used the python executable on my path (/usr/bin/python3) which is python version 3.10 along with the python home and modules for 3.8. This seems to be the cause of the error. The same problem is indicated by your error message:&lt;/p&gt;
&lt;p&gt;PYTHONHOME = &amp;#39;/home/denis/ncs/toolchains/v2.0.0/usr/local&amp;#39; (installation of toolchain python 3.8)&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;program name = &amp;#39;/usr/bin/python3&amp;#39; (system python - probably a different version)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;: In the nRF Kconfig extension settings change the &amp;quot;Kconfig: Python&amp;quot; value. This needed to point to the python executable which came with my toolchain (for me: /home/&amp;lt;user&amp;gt;/ncs/toolchains/v2.0.0/usr/local/bin/python3). After changing this and restarting VS Code everything worked for me.&lt;/p&gt;
&lt;p&gt;I hope this solution works for you as well.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note: I also tried installing the SDK and toolchain manually. In this case the &amp;quot;normal&amp;quot; python is used which fixes the problem as well. However on my system i needed to completely remove the nRF extensions and their data and reinstall them as they were still using the old PYTHONHOME and PYTHONPATH variables.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Toolchain fails</title><link>https://devzone.nordicsemi.com/thread/376280?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2022 21:32:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fd07e04-3d90-4287-9612-acc09c7ce9dd</guid><dc:creator>Anthony Corriveau</dc:creator><description>&lt;p&gt;I&amp;#39;m getting the exact same&amp;nbsp;errors on a fresh install under Ubuntu 22.04&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Toolchain fails</title><link>https://devzone.nordicsemi.com/thread/371072?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 08:58:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b7895ca-2df5-47a3-acaa-cb9229bcc141</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;As I said in my previous reply, your error seems to be caused by your Python environment, and is probably caused by something you set up before you started installing NCS.&lt;/p&gt;
&lt;p&gt;See for example this thread for a similar issue:&amp;nbsp;&lt;a href="https://stackoverflow.com/questions/38132755/importerror-no-module-named-encodings"&gt;https://stackoverflow.com/questions/38132755/importerror-no-module-named-encodings&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you were working in a virtual environment earlier, this seems likely to be the root of your issue.&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Toolchain fails</title><link>https://devzone.nordicsemi.com/thread/370935?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 15:49:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffef7e49-2159-4d64-9f30-f8a91309289e</guid><dc:creator>Denis D.</dc:creator><description>&lt;p&gt;Yes, I installed the dependencies, this is the report about &amp;#39;pip3 list&amp;#39;:&lt;/p&gt;
&lt;p&gt;Package Version&lt;br /&gt;------------------------------ ------------&lt;br /&gt;alabaster 0.7.12&lt;br /&gt;anytree 2.8.0&lt;br /&gt;appdirs 1.4.4&lt;br /&gt;apsw 3.36.0.post1&lt;br /&gt;argcomplete 2.0.0&lt;br /&gt;arrow 1.2.1&lt;br /&gt;astroid 2.11.5&lt;br /&gt;attrs 21.4.0&lt;br /&gt;azure-core 1.24.1&lt;br /&gt;azure-storage-blob 12.12.0&lt;br /&gt;Babel 2.9.1&lt;br /&gt;Beaker 1.10.0&lt;br /&gt;beautifulsoup4 4.11.0&lt;br /&gt;blivet 3.4.4&lt;br /&gt;blivet-gui 2.3.0&lt;br /&gt;breathe 4.32.0&lt;br /&gt;Brlapi 0.8.3&lt;br /&gt;Brotli 1.0.9&lt;br /&gt;canopen 2.0.0&lt;br /&gt;capstone 4.0.2&lt;br /&gt;cbor 1.0.0&lt;br /&gt;cbor2 5.4.3&lt;br /&gt;cchardet 2.1.7&lt;br /&gt;certifi 2022.5.18.1&lt;br /&gt;cffi 1.15.0&lt;br /&gt;chardet 4.0.0&lt;br /&gt;charset-normalizer 2.0.11&lt;br /&gt;chrome-gnome-shell 0.0.0&lt;br /&gt;click 8.0.3&lt;br /&gt;cmake 3.22.4&lt;br /&gt;cmsis-pack-manager 0.4.0&lt;br /&gt;colorama 0.4.4&lt;br /&gt;commonmark 0.9.1&lt;br /&gt;coverage 6.4.1&lt;br /&gt;cryptography 36.0.0&lt;br /&gt;css-parser 1.0.7&lt;br /&gt;cssselect 0.9.2&lt;br /&gt;cupshelpers 1.0&lt;br /&gt;cycler 0.11.0&lt;br /&gt;dasbus 1.6&lt;br /&gt;dbus-python 1.2.18&lt;br /&gt;decorator 5.1.1&lt;br /&gt;defusedxml 0.7.1&lt;br /&gt;Deprecated 1.2.13&lt;br /&gt;dill 0.3.5.1&lt;br /&gt;distro 1.6.0&lt;br /&gt;dnspython 2.2.0&lt;br /&gt;docopt 0.6.2&lt;br /&gt;docutils 0.17.1&lt;br /&gt;ecdsa 0.17.0&lt;br /&gt;fedora-third-party 0.10&lt;br /&gt;feedparser 6.0.8&lt;br /&gt;fonttools 4.29.1&lt;br /&gt;fros 1.1&lt;br /&gt;fs 2.4.11&lt;br /&gt;future 0.18.2&lt;br /&gt;gcovr 5.1&lt;br /&gt;gitlint 0.17.0&lt;br /&gt;gitlint-core 0.17.0&lt;br /&gt;gpg 1.15.1&lt;br /&gt;gssapi 1.7.2&lt;br /&gt;html2text 2020.1.16&lt;br /&gt;html5-parser 0.4.10&lt;br /&gt;html5lib 1.1&lt;br /&gt;humanize 3.13.1&lt;br /&gt;idna 3.3&lt;br /&gt;ifaddr 0.1.7&lt;br /&gt;imagesize 1.3.0&lt;br /&gt;imgtool 1.9.0&lt;br /&gt;iniconfig 1.1.1&lt;br /&gt;intelhex 2.3.0&lt;br /&gt;intervaltree 3.1.0&lt;br /&gt;isodate 0.6.1&lt;br /&gt;isort 5.10.1&lt;br /&gt;jeepney 0.7.1&lt;br /&gt;Jinja2 3.1.2&lt;br /&gt;junit2html 30.1.3&lt;br /&gt;junitparser 1.6.3&lt;br /&gt;kiwisolver 1.4.1&lt;br /&gt;koji 1.29.0&lt;br /&gt;langtable 0.0.58&lt;br /&gt;lazy-object-proxy 1.7.1&lt;br /&gt;libcomps 0.1.18&lt;br /&gt;libusb-package 1.0.26.0&lt;br /&gt;lpc-checksum 2.2.0&lt;br /&gt;lxml 4.7.1&lt;br /&gt;m2r2 0.3.2&lt;br /&gt;Mako 1.1.4&lt;br /&gt;Markdown 3.3.4&lt;br /&gt;MarkupSafe 2.0.0&lt;br /&gt;matplotlib 3.5.2&lt;br /&gt;mccabe 0.7.0&lt;br /&gt;mechanize 0.4.7&lt;br /&gt;milksnake 0.1.5&lt;br /&gt;mistune 0.8.4&lt;br /&gt;mock 4.0.3&lt;br /&gt;msgpack 1.0.3&lt;br /&gt;msrest 0.6.21&lt;br /&gt;munkres 1.1.2&lt;br /&gt;mypy 0.960&lt;br /&gt;mypy-extensions 0.4.3&lt;br /&gt;natsort 8.1.0&lt;br /&gt;netifaces 0.11.0&lt;br /&gt;nftables 0.1&lt;br /&gt;numpy 1.22.0&lt;br /&gt;oauthlib 3.2.0&lt;br /&gt;odfpy 1.4.1&lt;br /&gt;olefile 0.46&lt;br /&gt;packaging 21.3&lt;br /&gt;Paste 3.5.0&lt;br /&gt;pexpect 4.8.0&lt;br /&gt;pid 2.2.3&lt;br /&gt;Pillow 9.1.0&lt;br /&gt;pip 21.3.1&lt;br /&gt;platformdirs 2.5.2&lt;br /&gt;pluggy 1.0.0&lt;br /&gt;ply 3.11&lt;br /&gt;prettytable 3.3.0&lt;br /&gt;productmd 1.33&lt;br /&gt;progress 1.6&lt;br /&gt;progressbar2 3.53.2&lt;br /&gt;protobuf 4.21.1&lt;br /&gt;psutil 5.8.0&lt;br /&gt;ptyprocess 0.6.0&lt;br /&gt;pwquality 1.4.4&lt;br /&gt;py 1.11.0&lt;br /&gt;pycairo 1.21.0&lt;br /&gt;pychm 0.8.6&lt;br /&gt;pycollada 0.7.2&lt;br /&gt;pycparser 2.20&lt;br /&gt;pycrypto 2.6.1&lt;br /&gt;pycups 2.0.1&lt;br /&gt;pycurl 7.45.1&lt;br /&gt;pyelftools 0.28&lt;br /&gt;pyenchant 3.2.2&lt;br /&gt;pygit2 1.7.1&lt;br /&gt;PyGithub 1.55&lt;br /&gt;Pygments 2.11.2&lt;br /&gt;PyGObject 3.42.1&lt;br /&gt;PyJWT 2.4.0&lt;br /&gt;pykickstart 3.36&lt;br /&gt;pykwalify 1.8.0&lt;br /&gt;pylink-square 0.13.0&lt;br /&gt;pylint 2.14.0&lt;br /&gt;PyNaCl 1.5.0&lt;br /&gt;pyocd 0.34.0&lt;br /&gt;pyOpenSSL 21.0.0&lt;br /&gt;pyparsing 2.4.7&lt;br /&gt;pyparted 3.12.0&lt;br /&gt;PyQt5 5.15.6&lt;br /&gt;PyQt5-sip 12.9.0&lt;br /&gt;PyQtWebEngine 5.15.4&lt;br /&gt;pyserial 3.5&lt;br /&gt;PySide2 5.15.2.1&lt;br /&gt;PySocks 1.7.1&lt;br /&gt;pytest 7.1.2&lt;br /&gt;python-augeas 1.1.0&lt;br /&gt;python-can 4.0.0&lt;br /&gt;python-dateutil 2.8.1&lt;br /&gt;python-gettext 4.0&lt;br /&gt;python-magic 0.4.26&lt;br /&gt;python-manatools 0.0.4&lt;br /&gt;python-meh 0.50&lt;br /&gt;python-utils 2.5.6&lt;br /&gt;pytz 2022.1&lt;br /&gt;pyudev 0.22.0&lt;br /&gt;pyusb 1.2.1&lt;br /&gt;pyxdg 0.27&lt;br /&gt;PyYAML 5.4.1&lt;br /&gt;recommonmark 0.6.0&lt;br /&gt;regex 2022.4.24&lt;br /&gt;requests 2.27.1&lt;br /&gt;requests-file 1.5.1&lt;br /&gt;requests-ftp 0.3.1&lt;br /&gt;requests-gssapi 1.2.3&lt;br /&gt;requests-oauthlib 1.3.1&lt;br /&gt;rpm 4.17.0&lt;br /&gt;rpmautospec 0.2.6&lt;br /&gt;ruamel.yaml 0.17.21&lt;br /&gt;ruamel.yaml.clib 0.2.6&lt;br /&gt;scipy 1.8.0&lt;br /&gt;scour 0.38.1&lt;br /&gt;selinux 3.3&lt;br /&gt;sepolicy 3.3&lt;br /&gt;setools 4.4.0&lt;br /&gt;setuptools 59.6.0&lt;br /&gt;sgmllib3k 1.0.0&lt;br /&gt;sh 1.14.2&lt;br /&gt;shiboken2 5.15.2.1&lt;br /&gt;simpleaudio 1.0.4&lt;br /&gt;simpleline 1.9.0&lt;br /&gt;six 1.16.0&lt;br /&gt;snowballstemmer 2.2.0&lt;br /&gt;sortedcontainers 2.4.0&lt;br /&gt;sos 4.3&lt;br /&gt;soupsieve 2.3.1&lt;br /&gt;Sphinx 4.5.0&lt;br /&gt;sphinx-copybutton 0.5.0&lt;br /&gt;sphinx-markdown-tables 0.0.15&lt;br /&gt;sphinx-ncs-theme 1.0.5&lt;br /&gt;sphinx-notfound-page 0.8&lt;br /&gt;sphinx-rtd-theme 1.0.0&lt;br /&gt;sphinx-tabs 3.3.1&lt;br /&gt;sphinxcontrib-applehelp 1.0.2&lt;br /&gt;sphinxcontrib-devhelp 1.0.2&lt;br /&gt;sphinxcontrib-htmlhelp 2.0.0&lt;br /&gt;sphinxcontrib-jsmath 1.0.1&lt;br /&gt;sphinxcontrib-mscgen 0.6&lt;br /&gt;sphinxcontrib-plantuml 0.23&lt;br /&gt;sphinxcontrib-qthelp 1.0.3&lt;br /&gt;sphinxcontrib-serializinghtml 1.1.5&lt;br /&gt;sphinxcontrib-svg2pdfconverter 1.2.0&lt;br /&gt;systemd-python 234&lt;br /&gt;tabulate 0.8.9&lt;br /&gt;Tempita 0.5.2&lt;br /&gt;tomli 2.0.1&lt;br /&gt;tomlkit 0.11.0&lt;br /&gt;typing_extensions 4.2.0&lt;br /&gt;urllib3 1.26.8&lt;br /&gt;wcwidth 0.2.5&lt;br /&gt;webencodings 0.5.1&lt;br /&gt;west 0.13.1&lt;br /&gt;wrapt 1.14.1&lt;br /&gt;zcbor 0.4.0&lt;br /&gt;zeroconf 0.38.4&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Toolchain fails</title><link>https://devzone.nordicsemi.com/thread/370883?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 12:39:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b044a6c-9ad5-4853-8ff1-b05c7bf9eb27</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;You&amp;#39;re still getting the same Python errors as in the original post?&lt;/p&gt;
&lt;p&gt;In that case you should look into this error message:&lt;/p&gt;
[quote user=""]ModuleNotFoundError: No module named &amp;#39;encodings&amp;#39;[/quote]
&lt;p&gt;This seems to be related to your own Python environment and not the nRF Connect SDK.&lt;/p&gt;
&lt;p&gt;Have you installed the Python dependencies as described&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html#install-additional-python-dependencies"&gt;here&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Toolchain fails</title><link>https://devzone.nordicsemi.com/thread/370870?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 12:00:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91883e43-5a8a-4cd8-89aa-e1892e5feb2d</guid><dc:creator>Denis D.</dc:creator><description>&lt;p&gt;No, all this errors are referred to VS Code IDE output window that are attached in the first message of this ticket.&lt;/p&gt;
&lt;p&gt;All refer to Python errors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Toolchain fails</title><link>https://devzone.nordicsemi.com/thread/370846?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 10:57:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e8465b0-c02f-47a0-9c49-44f5ee2ba47a</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;gn is only needed if you&amp;#39;re going to develop applications using&amp;nbsp;&lt;a href="https://csa-iot.org/all-solutions/matter/"&gt;Matter&lt;/a&gt;, otherwise you can ignore this warning.&lt;/p&gt;
&lt;p&gt;Do you have any more details on your shell initialization error?&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Toolchain fails</title><link>https://devzone.nordicsemi.com/thread/370838?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 10:14:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e2a6227-3a03-4cd3-96fb-952433427d02</guid><dc:creator>Denis D.</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;I will update you.&lt;/p&gt;
&lt;p&gt;Now I have installed VS Code without virtual environment.&lt;/p&gt;
&lt;p&gt;I see only this two message. How can I solve those issue?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2080x4320/__key/communityserver-discussions-components-files/4/Schermata-del-2022_2D00_06_2D00_03-12_2D00_10_2D00_50.png" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks for all.&lt;/p&gt;
&lt;p&gt;Denis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Toolchain fails</title><link>https://devzone.nordicsemi.com/thread/370834?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 09:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3acb72c-5e39-4194-ac84-944e758a5ee7</guid><dc:creator>Denis D.</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;thanks for your quickly support.&lt;/p&gt;
&lt;p&gt;I running the IDE on a phisical environment not virtual.&lt;/p&gt;
&lt;p&gt;The version of nrfjprog are this one:&lt;br /&gt;nrfjprog version: 10.15.4 external&lt;br /&gt;JLinkARM.dll version: 7.66b&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Toolchain fails</title><link>https://devzone.nordicsemi.com/thread/370831?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 09:36:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69856eae-6e48-4a89-84af-06032de8aa70</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;For the VS Code output window error:&lt;/p&gt;
&lt;p&gt;Are you running this in a virtual environment or something? Looks like this error is related to your PATH in this environment in that case.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For the &amp;#39;invalid toolchain&amp;#39; error:&lt;/p&gt;
&lt;p&gt;What&amp;#39;s the output if you enter &amp;#39;nrfjprog --version&amp;#39; in your terminal?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>