<?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[Error while uploading files to GPy]]></title><description><![CDATA[<p dir="auto">While I'm trying to upload files to GPy, I find the following error</p>
<pre><code class="language-Traceback">  File &quot;main.py&quot;, line 6, in &lt;module&gt;
  File &quot;sensors.py&quot;, line 1
SyntaxError: invalid syntax
MicroPython v1.8.6-849-83e2f7f on 2018-03-19; GPy with ESP32
Type &quot;help()&quot; for more information.
</code></pre>
<p dir="auto">Here is the first line of <a href="http://sensors.py" target="_blank" rel="noopener noreferrer nofollow">sensors.py</a> file<br />
<code>from machine import Pin, I2C, Timer, UART, ADC</code><br />
It was working all fine till yesterday and today I implemented a new function and facing this issue. Also, on running <a href="http://sensors.py" target="_blank" rel="noopener noreferrer nofollow">sensors.py</a> separately using console, it isn't showing any syntax errors and running fine.<br />
What could have gone wrong here?</p>
]]></description><link>https://forum.pycom.io/topic/3187/error-while-uploading-files-to-gpy</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 05:00:55 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/3187.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 May 2018 14:48:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error while uploading files to GPy on Fri, 04 May 2018 14:48:51 GMT]]></title><description><![CDATA[<p dir="auto">While I'm trying to upload files to GPy, I find the following error</p>
<pre><code class="language-Traceback">  File &quot;main.py&quot;, line 6, in &lt;module&gt;
  File &quot;sensors.py&quot;, line 1
SyntaxError: invalid syntax
MicroPython v1.8.6-849-83e2f7f on 2018-03-19; GPy with ESP32
Type &quot;help()&quot; for more information.
</code></pre>
<p dir="auto">Here is the first line of <a href="http://sensors.py" target="_blank" rel="noopener noreferrer nofollow">sensors.py</a> file<br />
<code>from machine import Pin, I2C, Timer, UART, ADC</code><br />
It was working all fine till yesterday and today I implemented a new function and facing this issue. Also, on running <a href="http://sensors.py" target="_blank" rel="noopener noreferrer nofollow">sensors.py</a> separately using console, it isn't showing any syntax errors and running fine.<br />
What could have gone wrong here?</p>
]]></description><link>https://forum.pycom.io/post/19296</link><guid isPermaLink="true">https://forum.pycom.io/post/19296</guid><dc:creator><![CDATA[sprasad]]></dc:creator><pubDate>Fri, 04 May 2018 14:48:51 GMT</pubDate></item><item><title><![CDATA[Reply to Error while uploading files to GPy on Fri, 04 May 2018 20:22:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2511">@sprasad</a> Micropython is sometimes 1 of in line number errors. So the actual error could be in line 2. When you say &quot;run from console&quot;, do the start that bye:<br />
<code>import sensors</code><br />
of by pasting the content? The latter case could hide a tab/space mix in the file.</p>
]]></description><link>https://forum.pycom.io/post/19307</link><guid isPermaLink="true">https://forum.pycom.io/post/19307</guid><dc:creator><![CDATA[robert-hh]]></dc:creator><pubDate>Fri, 04 May 2018 20:22:56 GMT</pubDate></item><item><title><![CDATA[Reply to Error while uploading files to GPy on Fri, 04 May 2018 22:16:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2511">@sprasad</a></p>
<p dir="auto">How are you uploading the files to the GPy, using Pymakr plugin for Atom/VS Code?</p>
<p dir="auto">There was a bug in Pymakr causing corruption the first byte of the file in some specific cases (number of characters on the file - if your code has between 6912 and 7167 characters you’d have tripped on this problem)</p>
<p dir="auto">This should have been fixed in the latest release. If you're using Pymakr please update it.</p>
]]></description><link>https://forum.pycom.io/post/19308</link><guid isPermaLink="true">https://forum.pycom.io/post/19308</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Fri, 04 May 2018 22:16:48 GMT</pubDate></item><item><title><![CDATA[Reply to Error while uploading files to GPy on Sat, 05 May 2018 21:51:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/212">@jmarcelino</a> <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/98">@robert-hh</a> Thank you for the inputs guys!<br />
This is what solved the issue for me,<br />
I thoroughly debugged the functions written in <a href="http://sensors.py" target="_blank" rel="noopener noreferrer nofollow">sensors.py</a> file. There were some errors in the newly implemented functions which I corrected and then things started working fine!</p>
]]></description><link>https://forum.pycom.io/post/19317</link><guid isPermaLink="true">https://forum.pycom.io/post/19317</guid><dc:creator><![CDATA[sprasad]]></dc:creator><pubDate>Sat, 05 May 2018 21:51:46 GMT</pubDate></item></channel></rss>