<?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[mpy file upload errors]]></title><description><![CDATA[<p dir="auto">Hey.<br />
I am trying to upload a mpy file to the M5Dial, but every time i try it gives me an error. Or when it does work and i look at the file it is 0 bytes and everything has been removed (time wise it seems it is uploading). Have anyone had similar experience where file uploading acted wiredly?</p>
<p dir="auto">I have tried to find a pattern over the last couple of days and at first i thought it was if all the variable didn't have types, but even when specifying types the error still persists.</p>
<p dir="auto">I am using UiFlow2 v2.0.4, M5Dial software: 2.0.4-hotfix</p>
]]></description><link>https://community.m5stack.com/topic/6353/mpy-file-upload-errors</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 04:13:23 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6353.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 19 Apr 2024 07:31:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to mpy file upload errors on Fri, 19 Apr 2024 12:17:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/madsrassmussen" aria-label="Profile: madsrassmussen">@<bdi>madsrassmussen</bdi></a> Yes, I noticed this odd behavior starting in 2.0.3 and it seems to be a different odd in 2.0.4, but neither work as expected.</p>
<p dir="auto">When letting the web terminal do the upload, the named file under 'apps' is zero bytes and the file contents end up in '<a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a>'</p>
<p dir="auto">In 2.0.3 I could download <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a> to my PC, rename it, and use web terminal file manager to upload it into the apps folder, and all was well.</p>
<p dir="auto">In 2.0.4 however, it almost seems like the device 'My Apps' menu/list is unaware of this file, even though it is listed. When selected the device runs the .py file listed after the one I selected instead.</p>
<p dir="auto">I've also had the variable undefined errors but I think that is a different issue.  Maybe not?<br />
One example is copy/pasting the mpy code to a windows computer into say notepad.<br />
The device requires unix style line endings, not windows line endings.  It also requires no blank lines to exist.<br />
(This is why I would copy the existing '<a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a>', as it was already formatted correctly.)</p>
<p dir="auto">Otherwise, most times the upload just doesn't work at all.  I too have not found a pattern or submitted a bug report due to this lack of info.  I wasn't even sure it wasn't just me :)<br />
Hopefully someone more knowledgeable can chime in</p>
]]></description><link>https://community.m5stack.com/post/24866</link><guid isPermaLink="true">https://community.m5stack.com/post/24866</guid><dc:creator><![CDATA[dissy]]></dc:creator><pubDate>Fri, 19 Apr 2024 12:17:30 GMT</pubDate></item></channel></rss>