Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting [Errno 98] Address already in use after sevral uses #2

Open
guysoft opened this issue Feb 14, 2017 · 2 comments
Open

Getting [Errno 98] Address already in use after sevral uses #2

guysoft opened this issue Feb 14, 2017 · 2 comments

Comments

@guysoft
Copy link
Contributor

guysoft commented Feb 14, 2017

Hey,
I am using this code to restart a device connected to the socket, after sevral uses I start getting:

[Errno 98] Address already in use

Sources here:
https://github.com/Tikkun-olam/angelzzz/blob/devel/src/orvibo_s20.py#L7

Is there some closing function I should run on the socket or something like that?

Thanks,

@Akalsharan
Copy link

Hello. I know this is an old post but I'm getting a similar error today. I had no problems using s20control.py last time I tried (last week), but today keeps coming up with the same error.

Can control the plug fine from the Wiwo app and using this method (https://www.kaskus.co.id/show_post/54955fbfbccb17b00a8b4574/3/orvibo-s20-tasker-integration) which strangely did not work properly before .

Is there a fix/workaround for this?

Error as follows:

Traceback (most recent call last): File "s20control.py", line 408, in <module> main() File "s20control.py", line 388, in main with OrviboS20() as control: File "s20control.py", line 83, in __init__ self.sock.bind(('', self.port)) File "/data/data/com.termux/files/usr/lib/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) socket.error: [Errno 98] Address already in use

@merlin051
Copy link

I switched to Homeassistant (Hassio) and my problem went away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants