Coder Social home page Coder Social logo

Comments (7)

stgraber avatar stgraber commented on May 25, 2024

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.

stgraber avatar stgraber commented on May 25, 2024

That's running against current Ubuntu liblxc1 at version 2.0.0.beta2

from python2-lxc.

fghaas avatar fghaas commented on May 25, 2024

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.

evgeni avatar evgeni commented on May 25, 2024

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.

evgeni avatar evgeni commented on May 25, 2024

@fghaas this has been fixed in xenial, can you re-test?

from python2-lxc.

fghaas avatar fghaas commented on May 25, 2024

@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.

fghaas avatar fghaas commented on May 25, 2024

Yes, this does indeed look fixed on Xenial.

from python2-lxc.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.