Comments (7)
Works fine here.
stgraber@castiana:~/Desktop$ git clone https://github.com/lxc/python2-lxc/
Cloning into 'python2-lxc'...
remote: Counting objects: 28, done.
remote: Total 28 (delta 0), reused 0 (delta 0), pack-reused 28
Unpacking objects: 100% (28/28), done.
Checking connectivity... done.
stgraber@castiana:~/Desktop$ cd python2-lxc/
stgraber@castiana:~/Desktop/python2-lxc (master)$ python setup.py build
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/lxc
copying lxc/__init__.py -> build/lib.linux-x86_64-2.7/lxc
running build_ext
building '_lxc' extension
creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c lxc.c -o build/temp.linux-x86_64-2.7/lxc.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/lxc.o -llxc -o build/lib.linux-x86_64-2.7/_lxc.so
stgraber@castiana:~/Desktop/python2-lxc (master)$ cd build
stgraber@castiana:~/Desktop/python2-lxc/build (master)$ cd lib.linux-x86_64-2.7/
stgraber@castiana:~/Desktop/python2-lxc/build/lib.linux-x86_64-2.7 (master)$ python
Python 2.7.11 (default, Jan 11 2016, 21:04:40)
[GCC 5.3.1 20160112] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lxc
>>> a = lxc.Container("trusty-gui")
>>> a.state
u'STOPPED'
>>> a.start()
True
>>> a.state
u'RUNNING'
>>> a.get_ips()
(u'10.0.3.220',)
>>>
from python2-lxc.
That's running against current Ubuntu liblxc1 at version 2.0.0.beta2
from python2-lxc.
Weird. That works for me as well; what doesn't is trying to do this with the python-lxc package from vivid (http://packages.ubuntu.com/vivid/python-lxc) against 2.0.0.beta2 from the stable PPA.
from python2-lxc.
That's https://bugs.launchpad.net/ubuntu/+source/python-lxc/+bug/1550912
recompilation of python-lxc in Ubuntu is enough. seems that liblxc had a short ABI break somewhere and the version in vivid is compiled against that.
from python2-lxc.
@fghaas this has been fixed in xenial, can you re-test?
from python2-lxc.
@evgeni I have my Xenial update planned for this weekend, can report back after (if I get around to it; I also have some travel scheduled).
from python2-lxc.
Yes, this does indeed look fixed on Xenial.
from python2-lxc.
Related Issues (15)
- set_config_item() always returns False (unicode issue) HOT 3
- Issue running with unprivilege containers HOT 2
- Document the dependencies HOT 3
- python3 support HOT 2
- Include license file HOT 1
- Segfault with custom config-path on debian stretch HOT 1
- python2-lxc cannot be installed on MacOS HOT 1
- Is this project up to date? HOT 1
- Could you please branch the project? HOT 2
- set_config_item always appends HOT 1
- Upload to pypi HOT 6
- LXC 1.1.3 HOT 2
- Dependencies ? HOT 3
- Ansible Extras support for LXC 2? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python2-lxc.