You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
24.000 <HTTPRequest object at 3fff3e50> <StreamWriter <socket state=2 timeout=0 incoming=3fffac78 off=23>> "GET /squares"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "example_webapp2.py", line 24, in <module>
File "picoweb/__init__.py", line 240, in run
File "uasyncio/core.py", line 121, in run_forever
File "uasyncio/core.py", line 85, in run_forever
File "picoweb/__init__.py", line 156, in _handle
File "example_webapp2.py", line 18, in squares
File "picoweb/__init__.py", line 194, in render_template
File "picoweb/__init__.py", line 190, in _load_template
File "utemplate/source.py", line 153, in __init__
AttributeError: 'module' object has no attribute '__path__'
Work-around:
Update: app = picoweb.WebApp(__name__)
To: app = picoweb.WebApp(None)
The text was updated successfully, but these errors were encountered:
pfalcon
changed the title
example_webapp2.py /squares HTTP request fails
example_webapp2.py /squares HTTP request fails running on ESP8266
Nov 1, 2017
pfalcon
changed the title
example_webapp2.py /squares HTTP request fails running on ESP8266
Included examples may fail with "'module' object has no attribute '__path__'" on baremetal ports (e.g. ESP8266)
Dec 1, 2017
Environment: NodeMcu clone ESP8266 with picoweb built into custom firmware
Results in:
Work-around:
Update:
app = picoweb.WebApp(__name__)
To:
app = picoweb.WebApp(None)
The text was updated successfully, but these errors were encountered: