Micropython odd exceptions behaviour

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
riklaunim
Posts: 32
Joined: Fri Aug 22, 2014 5:42 pm

Micropython odd exceptions behaviour

Post by riklaunim » Fri Jul 14, 2017 11:03 am

I tried to run the "play wav file" example from http://docs.micropython.org/en/latest/p ... _skin.html - but it didn't worked. Exception was that wave.open did not exist - while the function is in that file. After some debugging I used
from wave import *
To find that "_collections" doesn't exist and "collections" should be used instead. Why import error did not propagate?

Post Reply