<?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[ImportError: no module named &#x27;M5&#x27;]]></title><description><![CDATA[<p dir="auto">I am using the Stick C Plus 2<br />
I used the M5Burner-v3-beta-win-x64 burner<br />
Downloaded UIFlow2.0 StickC Plus2 v 2.0.7<br />
Burnt to Stick with no error<br />
Using UIFlow 2.0.7 at <a href="https://uiflow2.m5stack.com/" target="_blank" rel="noopener noreferrer nofollow ugc">https://uiflow2.m5stack.com/</a><br />
I connected the Stick via USB and the screen shows:<br />
V1.13.4<br />
API key<br />
Cloud</p>
<p dir="auto">I loaded a new project in UIFlow, for the correct device.<br />
Run &gt; Connect<br />
Connected to serial port<br />
Run</p>
<p dir="auto">Traceback (most recent call last):</p>
<pre><code>File "_flow.py", line 41, in &lt;module&gt;
KeyboardInterrupt: 
MicroPython 9d61eff07-dirty on 2024-04-25; M5StickC-Plus2 with ESP32
Type "help()" for more information.
&gt;&gt;&gt; 
MicroPython 9d61eff07-dirty on 2024-04-25; M5StickC-Plus2 with ESP32
Type "help()" for more information.
&gt;&gt;&gt; 
&gt;&gt;&gt; import gc
&gt;&gt;&gt; gc.collect()
&gt;&gt;&gt; 
paste mode; Ctrl-C to cancel, Ctrl-D to finish
=== import os, sys, io
=== import M5
=== from M5 import *
=== def setup():
===   M5.begin()
=== def loop():
===   M5.update()
=== if __name__ == '__main__':
===   try:
===     setup()
===     while True:
===       loop()
===   except (Exception, KeyboardInterrupt) as e:
===     try:
===       from utility import print_error_msg
===       print_error_msg(e)
===     except ImportError:
===       print("please update to latest firmware")
=== 
=== 
=== 
Traceback (most recent call last):
File "&lt;stdin&gt;", line 2, in &lt;module&gt;
ImportError: no module named 'M5'
&gt;&gt;&gt;
</code></pre>
<p dir="auto">How do I resolve this?</p>
<p dir="auto">Thanks<br />
Brendon</p>
]]></description><link>https://community.m5stack.com/topic/6550/importerror-no-module-named-m5</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 07:56:53 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6550.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Jun 2024 11:39:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ImportError: no module named &#x27;M5&#x27; on Wed, 12 Jun 2024 11:51:26 GMT]]></title><description><![CDATA[<p dir="auto">Worked it out.</p>
<p dir="auto">The Stick was showing V1.13.4, which was the firmware version for UIFlow 1.<br />
I had previously flashed that onto the stick.<br />
When I was burning UIFlow 2, it didn't erase or overwrite the V1 firmware.<br />
I forced an erase by going to Burn / Erase.</p>
<p dir="auto">The stick is now showing the V2 firmware and I am able to flash new programs to it.</p>
]]></description><link>https://community.m5stack.com/post/25544</link><guid isPermaLink="true">https://community.m5stack.com/post/25544</guid><dc:creator><![CDATA[brendonhatcher]]></dc:creator><pubDate>Wed, 12 Jun 2024 11:51:26 GMT</pubDate></item></channel></rss>