-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When attempting to run a Python script that uses the python_wireguard library on macOS,
I encounter an OSError related to the py-wireguard.so shared object file.
The file appears to be an ELF 64-bit LSB shared object, x86-64, which is typically used on Linux systems.
To Reproduce
Steps to reproduce the behavior:
- Install
python_wireguardin a Python 3.8, 3.9, 3.11 virtual environment on macOS. - Run a Python script that imports
python_wireguard. - Encounter an
OSErrorrelated topy-wireguard.so.
Code Snippet
from python_wireguard import Client, ServerConnection, KeyError Message
OSError: dlopen(/path/to/py-wireguard.so, 0x0006): tried: '/path/to/py-wireguard.so' (not a mach-o file), ...Expected behavior
I expect the script to run without issues and the python_wireguard library to be loaded successfully.
Screenshots
N/A
Desktop (please complete the following information):
- OS: macOS
- Python Version: 3.8, 3.9, 3.11
Additional context
I have confirmed using file and otool that the shared object is an ELF 64-bit LSB shared object, x86-64.
This seems to suggest that the library is incompatible with macOS as it stands.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working