[lxc-users] pylxd falling at the first hurdle

Matt Green mephi at mephi.co.uk
Fri Oct 7 21:03:24 UTC 2016


Hi,

I'm trying to play around with pylxd but not getting very far. The
documentation states you can start with:

>>> from pylxd import Client>>> client = Client()


When I try it, I get:
>>> from pylxd import Client
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name Client

I've found that I can do:
>>> from pylxd import client

But I can't assign that to anything:
>>> lxdClient = client()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'module' object is not callable


I've got what I think is a pretty standard Ubuntu server 16.04 install, I
apt-get installed LXD originally and when I started this I've apt-get
installed python-pylxd (although I've also tried a pip install and that
didn't change anything).

Any ideas what's wrong?

Cheers,

Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20161007/a4485571/attachment.html>


More information about the lxc-users mailing list