python-ws-discovery icon indicating copy to clipboard operation
python-ws-discovery copied to clipboard

wsdiscover fails when wireguard is running

Open ruzko opened this issue 1 year ago • 0 comments

This seems to be the same problem as in #41. I use python 3.10, and thus need netifaces-plus so I installed wsdiscovery from PR #51. I Hope it doesn't make this issue inappropriate. It works like normal when I turn the VPN off.

pip show:

Name: WSDiscovery
Version: 2.0.2.dev0
Summary: WS-Discovery implementation for python
Home-page: https://github.com/andreikop/python-ws-discovery.git
Author: Andrei Kopats
Author-email: [email protected]
License: 
Location: /var/mnt/data/jacob/git/farm-animal-detection/farm-animal-detection-env/lib/python3.10/site-packages
Requires: click, netifaces-plus
Required-by: 

example in the python shell

Python 3.10.12 (main, Jun  8 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from wsdiscovery.discovery import ThreadedWSDiscovery as WSDiscovery
>>> wsd = WSDiscovery()
>>> wsd.start()
Fatal Python error: Segmentation fault

Thread 0x00007f655f5ac6c0 (most recent call first):
  File "/var/mnt/data/jacob/git/farm-animal-detection/farm-animal-detection-env/lib64/python3.10/site-packages/wsdiscovery/threaded.py", line 233 in _sendPendingMessages
  File "/var/mnt/data/jacob/git/farm-animal-detection/farm-animal-detection-env/lib64/python3.10/site-packages/wsdiscovery/threaded.py", line 154 in run
  File "/usr/lib64/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib64/python3.10/threading.py", line 973 in _bootstrap

Current thread 0x00007f656d742740 (most recent call first):
  File "/var/mnt/data/jacob/git/farm-animal-detection/farm-animal-detection-env/lib64/python3.10/site-packages/wsdiscovery/util.py", line 250 in _getNetworkAddrs
  File "/var/mnt/data/jacob/git/farm-animal-detection/farm-animal-detection-env/lib64/python3.10/site-packages/wsdiscovery/threaded.py", line 57 in _updateAddrs
  File "/var/mnt/data/jacob/git/farm-animal-detection/farm-animal-detection-env/lib64/python3.10/site-packages/wsdiscovery/threaded.py", line 54 in __init__
  File "/var/mnt/data/jacob/git/farm-animal-detection/farm-animal-detection-env/lib64/python3.10/site-packages/wsdiscovery/threaded.py", line 278 in _startThreads
  File "/var/mnt/data/jacob/git/farm-animal-detection/farm-animal-detection-env/lib64/python3.10/site-packages/wsdiscovery/threaded.py", line 296 in start
  File "<stdin>", line 1 in <module>

Extension modules: _netifaces (total: 1)
[1]    76894 segmentation fault (core dumped)  python3.10

ruzko avatar Aug 13 '23 21:08 ruzko