uRequests error

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
sconaway
Posts: 1
Joined: Wed Dec 26, 2018 11:56 pm

uRequests error

Post by sconaway » Thu Dec 27, 2018 12:03 am

Any idea what causes this error? I copied urequests from https://files.pythonhosted.org/packages ... 1.2.tar.gz to /lib/urequests/urequests.py.

>>> import urequests
>>> r = urequests.get("http://api.xively.com/")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'get'

tylersuard
Posts: 9
Joined: Mon Jan 21, 2019 4:09 pm

Re: uRequests error

Post by tylersuard » Mon Jan 21, 2019 4:36 pm

Did you also try importing Usocket? uRequests uses that.

Post Reply