ESPythoNOW
ESPythoNOW copied to clipboard
PermissionError: [Errno 1] Operation not permitted
I#M not really familiar with esp-idf but i got sending messages from one esp32 to an other with esp now to work. At the moment i send simple sensor data. I tried the same wth espythonow i got this error:
Traceback (most recent call last):
File "/home/ich/ESPythoNOW-main/ESPythoNOW-main/simple_send_and_receive.py", line 10, in <module>
espnow = ESPythoNow(interface="wlxa047d7802e45", callback=callback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ich/ESPythoNOW-main/ESPythoNOW-main/ESPythoNOW.py", line 36, in __init__
self.l2_socket = scapy.conf.L2socket(iface=self.interface) # L2 socket, for reuse
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ich/ESPythoNOW-main/ESPythoNOW-main/.venv/lib/python3.12/site-packages/scapy/arch/linux/__init__.py", line 218, in __init__
self.ins = socket.socket(
^^^^^^^^^^^^^^
File "/usr/lib/python3.12/socket.py", line 233, in __init__
_socket.socket.__init__(self, family, type, proto, fileno)
PermissionError: [Errno 1] Operation not permitted
I copied the python scripts "simple_send_and_receive.py" and "simple_send_and_receive_ESP32.ino" in the "main folder" (where prep.sh is located) and run it. The error is the result.
I use it on ubuntu 24.04 and the wifi dongle is supporting monitor mode.
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor