ct-Open-Source / ct-Open-Source/tuya-convert

Ubuntu Errno: 1 permission denied

Open
#946 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.1k
Forks
523
PR merge metrics
No merged PRs in 30d

Description

Alright people i have dug into this one as far as i can so looking for some help. attached are my logs and the error i have gotten.

I'm running Ubuntu 20.10 on Intel NUC utilizing a linksys wusb6300. i'm able to connect to vtrust wifi on my phone but as soon as i hit enter i get this error and i can't tell what it thinks it doens't have permission for.

Any support would be appreciated.

Traceback (most recent call last):
File "./smartconfig/main.py", line 26, in
smartconfig( passwd, ssid, region, token, secret )
File "/home/plex/tuya-convert/scripts/smartconfig/smartconfig.py", line 54, in smartconfig
sock.send_multicast(multicast_head)
File "/home/plex/tuya-convert/scripts/smartconfig/smartconfig.py", line 39, in send_multicast
self._socket.sendto( b'\0', (ip, 30012))
PermissionError: [Errno 1] Operation not permitted

[smarthack-mqtt.log](https://github.com/ct-Open-Source/tuya-convert/files/6443972/smarthack-mqtt.log)
[smarthack-psk.log](https://github.com/ct-Open-Source/tuya-convert/files/6443973/smarthack-psk.log)
[smarthack-udp.log](https://github.com/ct-Open-Source/tuya-convert/files/6443974/smarthack-udp.log)
[smarthack-web.log](https://github.com/ct-Open-Source/tuya-convert/files/6443975/smarthack-web.log)
[smarthack-wifi.log](https://github.com/ct-Open-Source/tuya-convert/files/6443976/smarthack-wifi.log)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with scripts/smartconfig/smartconfig.py, especially send_multicast and the socket.sendto call shown in the traceback, then review smartconfig/main.py and the attached smarthack logs. Determine why Ubuntu 20.10 rejects the multicast send for this adapter and document a reproducible cause and resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, ubuntu
Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.