<?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>Nanopb build error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93166/nanopb-build-error</link><description>I was working and testing protobuf using the zephyr example (nanopb) on 1.9.1 SDK. but in build step fails with this error: ModuleNotFoundError: No module named &amp;#39;google&amp;#39;: 
 
 and I check the same python that used in this build to see if the Module are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Nov 2022 09:48:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93166/nanopb-build-error" /><item><title>RE: Nanopb build error</title><link>https://devzone.nordicsemi.com/thread/393403?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 09:48:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:801b42e9-d6ab-4c3c-9b05-990277592acd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you tried to just apply the changes manually? Looking at the NcsConfig.cmake I don&amp;#39;t see much difference between v1.9.x and v2.1.x.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.9.2/share/ncs-package/cmake/NcsConfig.cmake"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.9.2/share/ncs-package/cmake/NcsConfig.cmake&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nanopb build error</title><link>https://devzone.nordicsemi.com/thread/393206?ContentTypeID=1</link><pubDate>Mon, 31 Oct 2022 11:31:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4ac43e8-43f3-4a64-a1f0-c75374d9a5ec</guid><dc:creator>kalbani</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/torsten"&gt;Torsten Rasmussen&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;all things work fine with me now. However, this steps work only in sdk v2.0.0 and above and my project are in sdk v1.9.1. Is there solution for sdk v1.9.1 ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;kalbani&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nanopb build error</title><link>https://devzone.nordicsemi.com/thread/392565?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2022 10:14:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c34df4e5-c880-4dd4-9941-dac9011d7906</guid><dc:creator>Torsten Rasmussen</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/kalbani"&gt;kalbani&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for raising this.&lt;/p&gt;
&lt;p&gt;A fix has been prepared here: &lt;a id="" href="https://github.com/nrfconnect/sdk-nrf/pull/9100"&gt;https://github.com/nrfconnect/sdk-nrf/pull/9100&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;but it awaits a new Toolchain build which updates the included nanopb to 0.4.6 and included the pip package `protobuf`.&lt;/p&gt;
&lt;p&gt;If you do not have time to wait for a new toolchain build, then you may manually update your existing NCS Toolchain.&lt;/p&gt;
&lt;p&gt;Steps to follow:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Download `nanopb-0.4.6` from here: &lt;a id="" href="https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.6-windows-x86.zip"&gt;https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.6-windows-x86.zip&lt;/a&gt; (windows version)&lt;/li&gt;
&lt;li&gt;Extract into the toolchain folder, `&amp;lt;path-ncs-toolchain&amp;gt;/toolchains/v2.x.x/nanopb`
&lt;ul&gt;
&lt;li&gt;You may backup / rename the existing folder as `nanopb-0.4.4`&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Install the pip package protobuf for the python in NCS Toolchain:&lt;br /&gt; `&amp;lt;path-ncs-toolchain&amp;gt;/toolchains/v2.x.x/opt/bin/python -mpip install protobuf`&lt;/li&gt;
&lt;li&gt;Fetch the commits in &lt;a id="" href="https://github.com/nrfconnect/sdk-nrf/pull/9100"&gt;https://github.com/nrfconnect/sdk-nrf/pull/9100&lt;/a&gt; and apply in your `sdk-nrf` repository.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Replace the `x.x` with the exact NCS Toolchain you have installed in your system.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Torsten&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nanopb build error</title><link>https://devzone.nordicsemi.com/thread/392177?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 13:23:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecfe0473-d8f1-49d6-a270-288e5b418bcf</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I was able to reproduce the same error here. The problem appears to be that the build script is using your python installation instead of the one included in the nRF connect SDK toolchain. This has been reported as a bug internally.&lt;/p&gt;
&lt;p&gt;As a workaround for now, please try to install the python module dependencies using this python executable: &lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666617699773v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Installing Python SDK dependencies:&lt;/strong&gt;&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.2/nrf/gs_installing.html#install-additional-python-dependencies"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.2/nrf/gs_installing.html#install-additional-python-dependencies&lt;/a&gt;&amp;nbsp;&lt;strong&gt; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>