Questions tagged [python-netifaces]
30 questions
11
votes
4 answers
Why is 'pip3 install netifaces' failing on Debian 10 Buster?
I setup a new Debian 10 (Buster) instance on AWS EC2, and was able to install a pip3 package that depended on netifaces, but when I came back to it the next day the package is breaking reporting an error in netifaces. If I try to run pip3 install…

kodi
- 2,195
- 1
- 14
- 20
5
votes
6 answers
How to get data from list with dictionary
Hello I have a python variable with List plus dictionary
>>> print (b[0])
{'peer': '127.0.0.1', 'netmask': '255.0.0.0', 'addr': '127.0.0.1'}
-----------------------------------------------------------------------
>>> print (b)
[{'peer':…

Raja G
- 5,973
- 14
- 49
- 82
3
votes
0 answers
Passing and retrieving objects using pythonnet
How do , In general pass and return objects using pythonnet. For example, this works fine if I'm to return a number:
dynamic par = Python.Runtime.Py.Import("mypackage.pythonfile");
var t = par.GetPPMError(100, 100.001);
where I import a package…

im281
- 455
- 1
- 5
- 14
2
votes
0 answers
Is there a way to select the correct network interface using netifaces or socket?
Before using a scraper, I have a piece of code that checks whether a VPN is connected, and prompts to connect if it isn't. I was using the socket module to check for this, but this never returns the IP addresses associated with the VPN. I'm now…

MKJ
- 120
- 8
2
votes
1 answer
Python netifaces module says plat-name must be one of "win32," "win-amd64," "win-arm32," or "win-arm64" but says option plat-name not recognized
So I can't explain it enough in the title, but I could extend the title here. I don't think anyone else has this issue. I found a python script that uses the netifaces module, but I can't get python to install it. This is the log when…

soshimee_
- 35
- 1
- 5
2
votes
1 answer
scapy - srp doesnt send my packet to the correct network interface
I work on windows 10 machine and I am using scapy for some project I am doing.
When I use the sniff function to sniff packets form my ethernet interface it is working as expected but when I use srp1 to send packet from the same interface it send my…

roy cabouly
- 487
- 4
- 12
1
vote
0 answers
How to use netifaces package and package management using pipenv, pip
I have installed certain python packages along with the netifaces package, using the pipenv and then exported it to requirements.pip. The workflow is as follows.
export PIPENV_VENV_IN_PROJECT=1 …

AnilJ
- 1,951
- 2
- 33
- 60
1
vote
1 answer
pip install netifaces gives me an error (windows 10)
I try to install netifaces package but I recieve an error as below:
I searched the internet including this site, and founded some solutions that didn't work for me, like this one, this and this.
As the sites recommended I double checked the path is…

Eitan
- 83
- 2
- 7
1
vote
2 answers
Python error ValueError: Unknown network interface None
import scapy.all as scapy
import requests
import json
This code work with API for getting information about venders
def vender_finding(mac_adr):
mac_url = 'http://macvendors.co/api/%s'
vender = (requests.get(mac_url % mac_adr))
…

ADKD
- 43
- 8
1
vote
0 answers
Haven't been able to install netifaces
I've been trying to install netifaces in Windows 10, unsuccessfully. This was my input in the cmd:
C:\Users\usuario\Downloads\SonOTA-master\SonOTA-master>pip install netifaces
This was the response by the cmd:
Collecting netifaces
Using cached…

Santiago
- 11
- 3
1
vote
1 answer
Python netifaces giving unusual output
I've been using netifaces in the past with no problems but recently something changed. I am not sure whether it is windows 10 fault or pythons or maybe the netifaces itself. Anyways here is what happens.
According to docs the code:
import…

Devligue
- 413
- 5
- 16
1
vote
1 answer
Elegant way to access netifaces dictionaries
This might sound stupid but honestly I have no idea how to get it right. I am messing around in Python for some time now. I would like to get an access to a dictionary made by netifaces (Mac address of specific network card), import an entry and…

Mickey V
- 13
- 4
1
vote
1 answer
Extracting Subnet Mask from my computer python
Dears I was planning to extract my Subnet mask, I had used the below code but the subnetmask is always 255.255.255.255 which is wrong
import socket # Import socket module
import netifaces
def get_ip_address():
s =…

Sherif Hussien
- 61
- 1
- 6
1
vote
1 answer
How to fix netifaces module installation for python2.7?
Environment : Kali Linux 2
I started reading this book "Python network programming cookbook" and the writers listed few modules I am gonna need during the book i was able to install all of them except #netifaces, I tried both the "pip install…

Hilo21
- 11
- 1
- 3
1
vote
1 answer
netifaces import error on android in kivy buildozer
I Have import netifaces in buildozer requirments. But After buillding the app. At the runtime of app, I'm having a problem importing netifaces on android in kivy app. Output is below. Whats this error trying to say. Its gives some error like:
…

Nikesh Nayak
- 302
- 2
- 9