Search found 210 matches

by cefn
Sun Feb 17, 2019 10:35 pm
Forum: General Discussion and Questions
Topic: RuntimeError from PEP479 violation - need help
Replies: 3
Views: 109

Re: RuntimeError from PEP479 violation - need help

Sorry not to be clear. I would love to provide a minimal example, but the problem is I can't trace the exception to the line it originates from, so I can't recreate a simple example from the problematic code. Any ideas?
by cefn
Sun Feb 17, 2019 12:14 pm
Forum: General Discussion and Questions
Topic: RuntimeError from PEP479 violation - need help
Replies: 3
Views: 109

RuntimeError from PEP479 violation - need help

Hi all, The medea low-memory JSON parser I developed in Micropython for ESP8266 has stopped working since v1.10. I'm struggling to know how to modify the library to satisfy the requirements of PEP479 which was brought in by 1.10. This means all cases where I use nested generators now terminate in a ...
by cefn
Sat Dec 15, 2018 1:34 pm
Forum: Programs, Libraries and Tools
Topic: MQTT connection stopes main.py
Replies: 2
Views: 265

Re: MQTT connection stopes main.py

Have you tried running each of these commands or code blocks through the REPL? This means you can interactively see any errors or blocking statements (which don't return to the REPL prompt) and figure out what is behind the error. Another thing I do within the boards I use is connect over serial, th...
by cefn
Sat Dec 15, 2018 12:20 pm
Forum: ESP8266 boards
Topic: Webserver send() + POST data reception
Replies: 1
Views: 392

Re: Webserver send() + POST data reception

Hi, trap16

Without seeing all the reference code you are running I think it'll be hard for anyone to help.
by cefn
Sat Dec 15, 2018 12:12 pm
Forum: Programs, Libraries and Tools
Topic: install micropython on ubuntu 18.10
Replies: 4
Views: 380

Re: install micropython on ubuntu 18.10

If you can create a script which completes the install (Virtualbox or Docker are useful for being able to re-run things from a clean start) then you can possibly create a Debian/Ubuntu package using checkinstall... https://debian-administration.org/article/147/Installing_packages_from_source_code_wi...
by cefn
Fri Jul 20, 2018 11:27 pm
Forum: ESP8266 boards
Topic: Repl not Responding
Replies: 5
Views: 624

Re: Repl not Responding

Hi, Chromecat

What board are you using with vanguard? Can you copy paste from the terminal session so we can see more precisely what is being typed and the result. The command you shared has 'micropython' mistyped, for example. I may have a matching board I can test against.
by cefn
Mon Jul 09, 2018 10:12 pm
Forum: Programs, Libraries and Tools
Topic: pythoncoder's uasyncio fork
Replies: 8
Views: 615

Re: uasyncio

"in 43 (gulp) years of developing firmware most of the nontrivial applications used cooperative multi-tasking" It's great to have someone with your kind of experience wanting to give back to the community - a level of commitment which deserves real recognition, and passes on insights from so many ye...
by cefn
Mon Jul 09, 2018 9:54 pm
Forum: General Discussion and Questions
Topic: Where can I find the sources for ESP8266 machine module?
Replies: 2
Views: 383

Re: Where can I find the sources for ESP8266 machine module?

And take a look at https://youtu.be/-MrqCmq3Z5k?t=18m4s for a walkthrough in answer to your question "understanding how the C source get converted in to Python libraries. Where can I look to get a better understanding of this?" which starts by looking at the modmachine.c source
by cefn
Mon Jun 25, 2018 7:14 pm
Forum: Programs, Libraries and Tools
Topic: Pylint settings for micropython
Replies: 2
Views: 446

Re: Pylint settings for micropython

What kind of editor are you trying to use, for which pylint is a plugin? There are editors like Thonny and Mu, and a plugin for PyCharm which are all cross-platform, free to download and install, which I would expect should recognise Micropython libraries, as they target Micropython specifically. I ...
by cefn
Mon Jun 25, 2018 7:10 pm
Forum: General Discussion and Questions
Topic: ring / fifo buffer
Replies: 5
Views: 539

Re: ring / fifo buffer

According to https://forum.micropython.org/viewtopic.php?f=6&t=4410&p=25630&hilit=deque#p25630 there is a deque implementation which may be useful for managing a queue where you are putting values in one end and removing on the other. However it is not obvious since there's no documentation at https...