Read docs before using 512K modules, was: Problem with install?

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
Nrone
Posts: 1
Joined: Thu Jun 08, 2017 1:43 pm

Read docs before using 512K modules, was: Problem with install?

Post by Nrone » Thu Jun 08, 2017 2:29 pm

Hi,

New to micropython and esp8266! I have installed according to the tutorial here on micropython.org. Everything seems to go well, I get the REPL prompt but when I try to follow the tutorial code examples it fails! As an example when I write to a file :
>>>
>>> f = open('data.txt', 'w')
>>> f.write('some data')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'write'

Another examples is webrepl_setup nothing happens I only get the REPL prompt back!

I should mention that i flashed the esp8266 with 512k firmware, is that related? I have used esp8266-512k-20170608-v1.9-35-ge1cda003.bin and esp8266-512k-20170607-v1.9-32-g4d2778c9.bin

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Problem with install?

Post by pythoncoder » Fri Jun 09, 2017 2:38 pm

I rather think the 512K version lacks a filesystem. You could find out if I'm right by issuing

Code: Select all

import os
os.listdir('/')
If it throws an exception there is no filesystem.
Peter Hinch
Index to my micropython libraries.

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: Problem with install?

Post by pfalcon » Sat Jun 10, 2017 4:09 pm

Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

Post Reply