Skip to content

[BUG] #29

@breuslife

Description

@breuslife

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:

  1. Install python_wireguard in a Python 3.8, 3.9, 3.11 virtual environment on macOS.
  2. Run a Python script that imports python_wireguard.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions