lxc / python3-lxc

Python 3.x binding for liblxc
https://linuxcontainers.org/lxc
GNU Lesser General Public License v2.1
57 stars 38 forks source link

Build fails as lxc-dev package is missing on macOS #31

Closed sourabhtk37 closed 3 years ago

sourabhtk37 commented 3 years ago

Hi,

I'm trying to build using python setup.py build on macOS. I am greeted with the following error:

lxc.c:27:10: fatal error: 'lxc/lxccontainer.h' file not found
#include <lxc/lxccontainer.h>
         ^~~~~~~~~~~~~~~~~~~~

This is probably because missing lxc-dev which is not supplied by brew. Could you please help me on how I could resolve this issue?

stgraber commented 3 years ago

This can't be built on MacOS, python3-lxc is a binding for liblxc which is a binding for the Linux Containers library, this can't work on non-Linux systems.

(In case that's the confusion, python3-lxc isn't related to LXD, if you're trying to talk to a remote LXD server from python on macOS, look at pylxd instead).