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

UnboundLocalError: cannot access local variable 'f' where it is not associated with a value #17

Open
Prakash9771 opened this issue Mar 2, 2024 · 0 comments

Comments

@Prakash9771
Copy link

$ python3 wifijammer.py
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scapy/arch/linux.py", line 125, in get_if_list
f = open("/proc/net/dev", "rb")
^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/proc/net/dev'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/data/data/com.termux/files/home/wifijammer/wifijammer.py", line 14, in
from scapy.sendrecv import sniff
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scapy/sendrecv.py", line 35, in
import scapy.route # noqa: F401
^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scapy/route.py", line 203, in
conf.iface = get_working_if()
^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scapy/arch/linux.py", line 144, in get_working_if
for i in get_if_list():
^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scapy/arch/linux.py", line 127, in get_if_list
f.close()
^
UnboundLocalError: cannot access local variable 'f' where it is not associated with a value

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

1 participant