mirror of https://github.com/nicolargo/glances.git
Replace netifaces by netifaces-plus #3053
This commit is contained in:
parent
dbb791fa58
commit
9da81638b9
|
|
@ -112,7 +112,7 @@ Optional dependencies:
|
|||
- ``influxdb-client`` (for the InfluxDB version 2 export module)
|
||||
- ``jinja2`` (for templating, used under the hood by FastAPI)
|
||||
- ``kafka-python`` (for the Kafka export module)
|
||||
- ``netifaces`` (for the IP plugin)
|
||||
- ``netifaces-plus`` (for the IP plugin)
|
||||
- ``nvidia-ml-py`` (for the GPU plugin)
|
||||
- ``pycouchdb`` (for the CouchDB export module)
|
||||
- ``pika`` (for the RabbitMQ/ActiveMQ export module)
|
||||
|
|
|
|||
|
|
@ -8,20 +8,13 @@
|
|||
|
||||
"""Manage the Glances ports list (Ports plugin)."""
|
||||
|
||||
from glances.globals import BSD
|
||||
from glances.logger import logger
|
||||
|
||||
# XXX *BSDs: Segmentation fault (core dumped)
|
||||
# -- https://bitbucket.org/al45tair/netifaces/issues/15
|
||||
# Also used in the glances_ip plugin
|
||||
if not BSD:
|
||||
try:
|
||||
import netifaces
|
||||
try:
|
||||
import netifaces
|
||||
|
||||
netifaces_tag = True
|
||||
except ImportError:
|
||||
netifaces_tag = False
|
||||
else:
|
||||
netifaces_tag = True
|
||||
except ImportError:
|
||||
netifaces_tag = False
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ influxdb>=1.0.0 # For InfluxDB < 1.8
|
|||
influxdb-client # For InfluxDB >= 1.8
|
||||
jinja2
|
||||
kafka-python
|
||||
netifaces
|
||||
netifaces-plus
|
||||
nvidia-ml-py
|
||||
orjson
|
||||
paho-mqtt
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ export = [
|
|||
]
|
||||
gpu = ["nvidia-ml-py"]
|
||||
graph = ["pygal"]
|
||||
ip = ["netifaces"]
|
||||
ip = ["netifaces-plus"]
|
||||
raid = ["pymdstat"]
|
||||
sensors = ["batinfo; platform_system == 'Linux'"]
|
||||
smart = ["pySMART.smartx"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue