<?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>Running error of nrfutil 5.2 from source code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46501/running-error-of-nrfutil-5-2-from-source-code</link><description>Hi, 
 
 I try to run nrfutil from source code but it fails. 
 
 I clone the master branch of nrfutil (v5.2) from github, and run it by this command: py -2 .\nordicsemi\__main__.py dfu ble -ic NRF52 -p COM29 -pkg .\dfu_pkg.zip 
 Then it shows an error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Apr 2019 12:57:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46501/running-error-of-nrfutil-5-2-from-source-code" /><item><title>RE: Running error of nrfutil 5.2 from source code</title><link>https://devzone.nordicsemi.com/thread/184085?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 12:57:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1891eb0c-8ec8-4002-9d08-aa66f68ad359</guid><dc:creator>Youqun Sun</dc:creator><description>&lt;p&gt;Found the reason.&lt;/p&gt;
&lt;p&gt;The file __main__.py should be placed at its parent directory, because it imports packages as &amp;#39;from nordicsemi.dfu.xxx import xxx&amp;#39;, it should at the directory level of parent of nordicsemi.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>