<?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>nRF9160 SDK  compile error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61712/nrf9160-sdk-compile-error</link><description>Hello guys 
 
 I am trying to compile the latest nrf sdk with version v1.2.0 it fails with the following error 
 but when i compile either v1.0.0 or v1.1.0 it is successfully compiled 
 
 only v1.2.0 gives me this error any help please 
 root@ELB-iSCADA8m</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Jun 2020 15:10:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61712/nrf9160-sdk-compile-error" /><item><title>RE: nRF9160 SDK  compile error</title><link>https://devzone.nordicsemi.com/thread/254084?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2020 15:10:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca172515-bf5a-4c93-9614-228cedbee321</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Oooh. I think I know what&amp;#39;s causing the issue, I was maybe too quick to answer earlier. There is a syntax error in the file&amp;nbsp;ncs\zephyr\scripts\west_commands\runners\nrfjprog.py.&lt;/p&gt;
&lt;p&gt;In nrfjprog.py--&amp;gt;NrfJprogBinaryRunner()--&amp;gt;get_board_snr()--&amp;gt;&lt;span&gt;elif&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;not&lt;/span&gt;&lt;span&gt;&amp;nbsp;sys.stdin.isatty() change it from:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="python"&gt;elif not sys.stdin.isatty():
            raise RuntimeError(
                f&amp;#39;refusing to guess which of {len(snrs)} &amp;#39;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;to:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="python"&gt;elif not sys.stdin.isatty():
            raise RuntimeError(
                &amp;#39;refusing to guess which of {len(snrs)} &amp;#39;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It&amp;#39;s strange that I&amp;#39;m not getting that issue&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f914.svg" title="Thinking"&gt;&amp;#x1f914;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;I am using Python v3.8, try updating to that.&lt;/p&gt;
&lt;p&gt;I would recommend you to use the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_assistant.html#toolchain-manager"&gt;Toolchain Manager&lt;/a&gt;, since everything runs out of the box, and the chances of encountering any errors are minimal.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SDK  compile error</title><link>https://devzone.nordicsemi.com/thread/253494?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 10:26:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8748d29b-49ed-4a8c-a388-03825e0e7582</guid><dc:creator>shammi</dc:creator><description>&lt;p&gt;Hi simon,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am facing the same issue while running the west command. I have tried the above mentioned commands but the error is not resolved. Can you tell me the other solution if possible.&lt;/p&gt;
&lt;p&gt;Thanks and regards,&lt;/p&gt;
&lt;p&gt;Shammi&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;shammi@shammi-Ideapad-Z560:~/work/IoT/Zephyr/zephyrproject/zephyr$ west build -p auto -b reelboard samples/basic/blinky
Traceback (most recent call last):
  File &amp;quot;/home/shammi/.local/bin/west&amp;quot;, line 8, in &amp;lt;module&amp;gt;
    sys.exit(main())
  File &amp;quot;/home/shammi/.local/lib/python3.5/site-packages/west/main.py&amp;quot;, line 583, in main
    args.handler(args, unknown)
  File &amp;quot;/home/shammi/.local/lib/python3.5/site-packages/west/main.py&amp;quot;, line 324, in ext_command_handler
    command = spec.factory()
  File &amp;quot;/home/shammi/.local/lib/python3.5/site-packages/west/commands/__init__.py&amp;quot;, line 365, in __call__
    mod = _commands_module_from_file(self.py_file)
  File &amp;quot;/home/shammi/.local/lib/python3.5/site-packages/west/commands/__init__.py&amp;quot;, line 333, in _commands_module_from_file
    mod = _import_mod_from(mod_name, file)
  File &amp;quot;/home/shammi/.local/lib/python3.5/site-packages/west/commands/__init__.py&amp;quot;, line 330, in _import_mod_from
    spec.loader.exec_module(mod)
  File &amp;quot;&amp;lt;frozen importlib._bootstrap_external&amp;gt;&amp;quot;, line 665, in exec_module
  File &amp;quot;&amp;lt;frozen importlib._bootstrap&amp;gt;&amp;quot;, line 222, in _call_with_frames_removed
  File &amp;quot;/home/shammi/work/IoT/Zephyr/zephyrproject/zephyr/scripts/west_commands/build.py&amp;quot;, line 16, in &amp;lt;module&amp;gt;
    from zephyr_ext_common import Forceable
  File &amp;quot;/home/shammi/work/IoT/Zephyr/zephyrproject/zephyr/scripts/west_commands/zephyr_ext_common.py&amp;quot;, line 17, in &amp;lt;module&amp;gt;
    from runners.core import RunnerConfig
  File &amp;quot;/home/shammi/work/IoT/Zephyr/zephyrproject/zephyr/scripts/west_commands/runners/__init__.py&amp;quot;, line 25, in &amp;lt;module&amp;gt;
    from runners import nrfjprog
  File &amp;quot;/home/shammi/work/IoT/Zephyr/zephyrproject/zephyr/scripts/west_commands/runners/nrfjprog.py&amp;quot;, line 86
    f&amp;#39;refusing to guess which of {len(snrs)} &amp;#39;
                                             ^
SyntaxError: invalid syntax
shammi@shammi-Ideapad-Z560:~/work/IoT/Zephyr/zephyrproject/zephyr$ west build -p auto -b reelboard samples/basic/blinky
Traceback (most recent call last):
  File &amp;quot;/home/shammi/.local/bin/west&amp;quot;, line 8, in &amp;lt;module&amp;gt;
    sys.exit(main())
  File &amp;quot;/home/shammi/.local/lib/python3.5/site-packages/west/main.py&amp;quot;, line 583, in main
    args.handler(args, unknown)
  File &amp;quot;/home/shammi/.local/lib/python3.5/site-packages/west/main.py&amp;quot;, line 324, in ext_command_handler
    command = spec.factory()
  File &amp;quot;/home/shammi/.local/lib/python3.5/site-packages/west/commands/__init__.py&amp;quot;, line 365, in __call__
    mod = _commands_module_from_file(self.py_file)
  File &amp;quot;/home/shammi/.local/lib/python3.5/site-packages/west/commands/__init__.py&amp;quot;, line 333, in _commands_module_from_file
    mod = _import_mod_from(mod_name, file)
  File &amp;quot;/home/shammi/.local/lib/python3.5/site-packages/west/commands/__init__.py&amp;quot;, line 330, in _import_mod_from
    spec.loader.exec_module(mod)
  File &amp;quot;&amp;lt;frozen importlib._bootstrap_external&amp;gt;&amp;quot;, line 665, in exec_module
  File &amp;quot;&amp;lt;frozen importlib._bootstrap&amp;gt;&amp;quot;, line 222, in _call_with_frames_removed
  File &amp;quot;/home/shammi/work/IoT/Zephyr/zephyrproject/zephyr/scripts/west_commands/build.py&amp;quot;, line 16, in &amp;lt;module&amp;gt;
    from zephyr_ext_common import Forceable
  File &amp;quot;/home/shammi/work/IoT/Zephyr/zephyrproject/zephyr/scripts/west_commands/zephyr_ext_common.py&amp;quot;, line 17, in &amp;lt;module&amp;gt;
    from runners.core import RunnerConfig
  File &amp;quot;/home/shammi/work/IoT/Zephyr/zephyrproject/zephyr/scripts/west_commands/runners/__init__.py&amp;quot;, line 25, in &amp;lt;module&amp;gt;
    from runners import nrfjprog
  File &amp;quot;/home/shammi/work/IoT/Zephyr/zephyrproject/zephyr/scripts/west_commands/runners/nrfjprog.py&amp;quot;, line 86
    f&amp;#39;refusing to guess which of {len(snrs)} &amp;#39;
                                             ^
SyntaxError: invalid syntax
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SDK  compile error</title><link>https://devzone.nordicsemi.com/thread/251540?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 14:56:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60e746d4-22aa-46d0-80f7-6fabbccdf4c7</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Have you remembered to run &lt;em&gt;west update&lt;/em&gt; after checking out tag v1.2.0? Open a terminal in &lt;span&gt;Desktop/v1.2/nrf and r&lt;/span&gt;un the following commands:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;git checkout v1.2.0
west update&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>