softScheck / tplink-smartplug

TP-Link WiFi SmartPlug Client and Wireshark Dissector
Apache License 2.0
1.14k stars 296 forks source link

Run tplink-smartplug on Windows win_inet_pton #34

Closed jhalbrecht closed 4 years ago

jhalbrecht commented 6 years ago

I had occasion to try tplink-smartplug.pyon ms windows. I received this error.

> python --version
> Python 2.7.14
[...]
socket.inet_pton(socket.AF_INET, ip)
AttributeError: 'module' object has no attribute 'inet_pton'

I fixed it after reading on StackOverflow Socket has no inet_pton method in Python 2.7 on Windows

pip install win-inet-pton
// and in the .py
import win_inet_pton

Suggestion; Is there a FAQ or some documentation where someone with write privilege could add this?

softScheck commented 4 years ago

No windows support...