mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-25 23:55:57 +03:00
[GH-ISSUE #572] If using the virtualenv, the python cannot load the libvirt package. #433
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kensonman on GitHub (Aug 7, 2015).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/572
I'm tried in Ubuntu 14.04 LTS and Debian 7, if using virtualenv, the "manage.py runserver" command cannot load the libvirt package (even I had installed by "apt-get install python-libvirt").
The solution is add it manually:
add2virtualenv /usr/lib/python2.7/dist-packages
After that, everything work smoothly.
@comzyh commented on GitHub (Jan 12, 2016):
you may try
virtualenv venv --system-site-package@absinthetized commented on GitHub (Mar 9, 2016):
Want to say that this suggestion solves the issue, please mark it as solved!
Among the various reasons why you want --system-site-packages is that libvirt-python version MUST match libvirt version on your systems.