NameError: name '' is not defined when upload the "Lopy to Lopy" example
I can run the "Lopy to Lopy" example code from Atom on my FiPy, but when I do the upload from Atom I get the "NameError: name '' is not defined" error on line 4. Line 4 is a blank line in the example. Looking for some help please.
Uploading project (main folder)...
Not safe booting, disabled in settings
Reading file status
[1/3] Writing file boot.py
[2/3] Writing file main.py
[3/3] Writing file mymain.py
Upload done, resetting board...
OKets Jun 8 2016 00:22:57
rst:0x7 (TG0WDT_SYS_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
mode:DIO, clock div:1
Traceback (most recent call last):
File "main.py", line 4, in <module>
NameError: name '' is not defined
Pycom MicroPython 1.18.1.r1 [v1.8.6-849-b0520f1] on 2018-08-29; FiPy with ESP32
dan last edited by
Thank you for reporting that, I've reported it to GitBook. The current workaround is to use the "copy" button it the top right corner of the code section.
I think I found the problem. For some reason there were extra unprinted characters added to the blank lines when doing the copy-paste from the example documentation.