bibene / upushover

Simple library to send pushover notifications from micro python.
1 stars 0 forks source link

AttributeError #1

Open henkdebruijn opened 7 years ago

henkdebruijn commented 7 years ago

I get the following error:

Traceback (most recent call last):
File "", line 1, in
File "main.py", line 19, in
File "upushover.py", line 27, in sendMessage
AttributeError: 'module' object has no attribute 'IPPROTO_SEC'

bibene commented 7 years ago

On what version of micropython are you running it and on what device? If I am not mistaken I tested this on 1.8 micropython on a wipy device(on one of the first to be made - kickstarter reward).

henkdebruijn commented 7 years ago

I use version 1.8.6 (latest) on an esp8266 board (Feather Huzzah)

bibene commented 7 years ago

Could you try following import usocket as socket instead of import socket ?

henkdebruijn commented 7 years ago

I tried, but still same error ;-(

Has it something to do with the type of board I use?

bibene commented 7 years ago

Could be. Here https://forum.micropython.org/viewtopic.php?t=2485 is a very similar issue, maybe you could try committing the last parameter.

bibene commented 7 years ago

Just found the related micropython issue: https://github.com/pycom/pycom-micropython/issues/52

ijustwant commented 5 years ago

I get the same message: AttributeError: 'module' object has no attribute 'IPPROTO_SEC'

I'm using the "loboris/MicroPython_ESP32_psRAM_LoBo" build

Any way to get this working ? :)