Search found 1126 matches

by pfalcon
Tue Feb 19, 2019 3:06 pm
Forum: Programs, Libraries and Tools
Topic: micropython-lib - "distributed" uPython standard library
Replies: 30
Views: 17228

Re: Problem with uaiohttpclient run witl pycopy

eltomek wrote:
Tue Feb 12, 2019 9:38 pm

Code: Select all

  File "/home/tomek/.micropython/lib/datetime.py", line 1836, in _create
AttributeError: type object 'tzinfo' has no attribute '__new__'
That's why https://github.com/micropython/micropython/pull/3391 exists.
by pfalcon
Wed Feb 06, 2019 8:06 pm
Forum: Programs, Libraries and Tools
Topic: micropython-lib - "distributed" uPython standard library
Replies: 30
Views: 17228

Re: micropython-lib - "distributed" uPython standard library

"argparse" module as was written by Damien was captured as "uargparse", before possibly adding more bloat to make "argparse" more compatible with CPython.
by pfalcon
Mon Feb 04, 2019 8:19 pm
Forum: Programs, Libraries and Tools
Topic: ANN: ufarc - state machine lib for uasyncio
Replies: 4
Views: 191

Re: ANN: ufarc - state machine lib for uasyncio

I don't have much familiarity yet with micropython, but I am very familiar with embedded software and fitting Python into small spaces. So, that's why I tried to underline some of the points of MicroPython API above, with reasoning behind them. Nothing of that should come as a surprise to an embedd...
by pfalcon
Sun Feb 03, 2019 7:56 am
Forum: Programs, Libraries and Tools
Topic: ANN: ufarc - state machine lib for uasyncio
Replies: 4
Views: 191

Re: ANN: ufarc - state machine lib for uasyncio

And in all fairness, I don't understand why you use asyncio/uasyncio there at all, given that you perform your own scheduling. It would seam they provide convenient abstraction for time accounting, but it's actually rather different in asyncio vs uasyncio. # Desktop debug: if not hasattr(_event_loop...
by pfalcon
Sun Feb 03, 2019 7:13 am
Forum: Programs, Libraries and Tools
Topic: namedtuple difference with CPython
Replies: 5
Views: 172

Re: namedtuple difference with CPython

Oh, and welcome to MicroPython! Wouldn't ever think that a question like that would come from the PyMite author ;-). To add or not to add? Of course not! We've got exceptions, that's where it stops (almost) ;-).
by pfalcon
Sun Feb 03, 2019 7:07 am
Forum: Programs, Libraries and Tools
Topic: ANN: ufarc - state machine lib for uasyncio
Replies: 4
Views: 191

Re: ANN: ufarc - state machine lib for uasyncio

Known Issue: Some examples fail due to File "/Users/dwhall/.micropython/lib/ufarc/__init__.py", line 513, in run_forever File "/Users/dwhall/.micropython/lib/ufarc/__init__.py", line 532, in stop File "uasyncio/core.py", line 183, in stop File "uasyncio/core.py", line 48, in call_soon IndexError: f...
by pfalcon
Sun Feb 03, 2019 6:52 am
Forum: ESP8266 boards
Topic: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given
Replies: 15
Views: 413

Re: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given

Thanks @pfalcon! I did the update and it works ok now. I can see you have pushed quite a lot of commits today, thanks! My fork is rebased on top of mainline regularly (i.e. contains all that mainline contains), and that's how rebases look - a lot of metadata seems to be updated, but the content is ...
by pfalcon
Sun Feb 03, 2019 6:51 am
Forum: Programs, Libraries and Tools
Topic: picoweb - Web micro (well, pico) framework (with webserver, etc.)
Replies: 22
Views: 13465

Re: picoweb - Web micro (well, pico) framework (with webserver, etc.)

Recently, more full-fledged version of "logging" module was contributed to micropython-lib. The original small version was captured as "ulogging". As picoweb is intended to run on the smallest systems, it by default use ulogging now. Please update your dependencies. Turned out, this release of pico...
by pfalcon
Sat Feb 02, 2019 10:26 pm
Forum: ESP8266 boards
Topic: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given
Replies: 15
Views: 413

Re: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given

File "uasyncio/__init__.py", line 60, in remove_writer TypeError: function takes 2 positional arguments but 3 were given MicroPython v1.10-188-gf1644bca9 on 2019-02-02; ESP module with ESP8266 Yes, that looks like a bug. Thanks for the report and detailed info, please run "git pull --rebase" and tr...