<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[M5Burner on Linux throws some Python errors]]></title><description><![CDATA[<p dir="auto">I downloaded 2.1.6 M5Burner onto Fedora Core 32 Linux workstation.<br />
UI starts up fine. I can download firmware images.<br />
I see my M5Stack Basic on /dev/ttyUSB0, I have access.</p>
<p dir="auto">However, whenever I click the "Burn" button, for ANY of the images I download, I get this:</p>
<pre><code>
=================
Start Burn
=================
--chip esp32 --port /dev/ttyUSB0 --baud 1500000 --before default_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 /home/timotej/m5/M5Burner/packages/fw/core/Core2FactoryTest-v1.2.bin
=================
Traceback (most recent call last):
  File "/home/timotej/m5/M5Burner/packages/tools/esptool.py", line 21, in &lt;module&gt;
    import argparse
  File "/usr/lib64/python3.8/argparse.py", line 88, in &lt;module&gt;
    import re as _re
  File "/usr/lib64/python3.8/re.py", line 145, in &lt;module&gt;
    class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
=================
 Burn Failed 
=================
</code></pre>
<p dir="auto">Help, please?</p>
]]></description><link>https://community.m5stack.com/topic/2352/m5burner-on-linux-throws-some-python-errors</link><generator>RSS for Node</generator><lastBuildDate>Wed, 06 May 2026 01:28:37 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2352.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Oct 2020 19:37:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Burner on Linux throws some Python errors on Thu, 22 Oct 2020 20:30:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/platycore" aria-label="Profile: platycore">@<bdi>platycore</bdi></a>  I came here to find a solution myself, same error running on my Linux setup.<br />
After Googling it, all the responses where "pip uninstall -y enum34", but that was not the case.<br />
I found something interesting here: <a href="https://stackoverflow.com/questions/47878060/why-is-the-re-module-trying-to-import-enum-intflag" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/47878060/why-is-the-re-module-trying-to-import-enum-intflag</a><br />
I looked at the app location <strong>M5Burner_Linux/packages/tools/enum</strong> and that was it... the app has the wrong version of enum.</p>
<ul>
<li>Remove the one with the underscores: <em><strong>"_ <em>init</em> _.py"</strong></em></li>
<li>Copy the version of <em><strong><a href="http://enum.py" target="_blank" rel="noopener noreferrer nofollow ugc">enum.py</a></strong></em> located in your <strong>/usr/lib/python3.8</strong> path</li>
</ul>
<p dir="auto">That worked for me.</p>
]]></description><link>https://community.m5stack.com/post/10432</link><guid isPermaLink="true">https://community.m5stack.com/post/10432</guid><dc:creator><![CDATA[therafman]]></dc:creator><pubDate>Thu, 22 Oct 2020 20:30:46 GMT</pubDate></item></channel></rss>