belyalov / tinyweb

Simple and lightweight HTTP async server for micropython
MIT License
247 stars 40 forks source link

tinyweb.mpy not working #41

Closed lutecky closed 3 years ago

lutecky commented 3 years ago

Device and/or platform: ESP8266, Micropython v1.13

Description of problem: I can't run the module from the .py file because I'm already out of memory. After mpy-cross compilation there is an error during import:

>>> import tinyweb
Trackback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: invalid syntax for number

Other modules after compilation working fine.

lutecky commented 3 years ago

The cause of the problem is logging module. After comment all "log" the module has started to work!

#import logging
#log = logging.getLogger('WEB')

#log.(...)