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_wireguard in a Python 3.8, 3.9, 3.11 virtual environment on macOS.
- Run a Python script that imports
python_wireguard.
- Encounter an
OSError related to py-wireguard.so.
Code Snippet
from python_wireguard import Client, ServerConnection, Key
Error 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.
Describe the bug
When attempting to run a Python script that uses the
python_wireguardlibrary on macOS,I encounter an
OSErrorrelated to thepy-wireguard.soshared 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:
python_wireguardin a Python 3.8, 3.9, 3.11 virtual environment on macOS.python_wireguard.OSErrorrelated topy-wireguard.so.Code Snippet
Error 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_wireguardlibrary to be loaded successfully.Screenshots
N/A
Desktop (please complete the following information):
Additional context
I have confirmed using
fileandotoolthat 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.