[GH-ISSUE #125] Problem with installation on VzLinux #82

Closed
opened 2026-02-27 15:57:16 +03:00 by kerem · 12 comments
Owner

Originally created by @Amet13 on GitHub (Aug 2, 2016).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/125

# cat /etc/redhat-release 
Virtuozzo Linux release 7.2
# ls /etc/yum.repos.d/
epel.repo  epel-testing.repo  factory.repo  openvz.repo  redhat.repo  vzlinux.repo

Clean VzLinux (distro based on RHEL 7) with added EPEL 7.7 repo.

After step I get an error:

# venv/bin/pip install -r conf/requirements.txt
...
Installing collected packages: Django, numpy, websockify, gunicorn, libvirt-python, libxml2-python
  Running setup.py install for websockify ... done
  Running setup.py install for libvirt-python ... error
    Complete output from command /srv/webvirtcloud/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tUB7Li/libvirt-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8E3lRv-record/install-record.txt --single-version-externally-managed --compile --install-headers /srv/webvirtcloud/venv/include/site/python2.7/libvirt-python:
    running install
    running build
    /usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
    /srv/webvirtcloud/venv/bin/python generator.py libvirt /usr/share/libvirt/api/libvirt-api.xml
    Found 409 functions in /usr/share/libvirt/api/libvirt-api.xml
    Found 0 functions in libvirt-override-api.xml
    Generated 339 wrapper functions
    Missing type converters:
    virTypedParameterPtr:1
    virTypedParameterPtr *:1
    ERROR: failed virDomainGetPerfEvents
    ERROR: failed virDomainSetPerfEvents
    error: command '/srv/webvirtcloud/venv/bin/python' failed with exit status 1

    ----------------------------------------
Command "/srv/webvirtcloud/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tUB7Li/libvirt-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8E3lRv-record/install-record.txt --single-version-externally-managed --compile --install-headers /srv/webvirtcloud/venv/include/site/python2.7/libvirt-python" failed with error code 1 in /tmp/pip-build-tUB7Li/libvirt-python/
Originally created by @Amet13 on GitHub (Aug 2, 2016). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/125 ``` # cat /etc/redhat-release Virtuozzo Linux release 7.2 # ls /etc/yum.repos.d/ epel.repo epel-testing.repo factory.repo openvz.repo redhat.repo vzlinux.repo ``` Clean VzLinux (distro based on RHEL 7) with added EPEL 7.7 repo. After step I get an error: ``` # venv/bin/pip install -r conf/requirements.txt ... Installing collected packages: Django, numpy, websockify, gunicorn, libvirt-python, libxml2-python Running setup.py install for websockify ... done Running setup.py install for libvirt-python ... error Complete output from command /srv/webvirtcloud/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tUB7Li/libvirt-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8E3lRv-record/install-record.txt --single-version-externally-managed --compile --install-headers /srv/webvirtcloud/venv/include/site/python2.7/libvirt-python: running install running build /usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt /srv/webvirtcloud/venv/bin/python generator.py libvirt /usr/share/libvirt/api/libvirt-api.xml Found 409 functions in /usr/share/libvirt/api/libvirt-api.xml Found 0 functions in libvirt-override-api.xml Generated 339 wrapper functions Missing type converters: virTypedParameterPtr:1 virTypedParameterPtr *:1 ERROR: failed virDomainGetPerfEvents ERROR: failed virDomainSetPerfEvents error: command '/srv/webvirtcloud/venv/bin/python' failed with exit status 1 ---------------------------------------- Command "/srv/webvirtcloud/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tUB7Li/libvirt-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8E3lRv-record/install-record.txt --single-version-externally-managed --compile --install-headers /srv/webvirtcloud/venv/include/site/python2.7/libvirt-python" failed with error code 1 in /tmp/pip-build-tUB7Li/libvirt-python/ ```
kerem closed this issue 2026-02-27 15:57:16 +03:00
Author
Owner

@savichev commented on GitHub (Aug 14, 2016):

yum info libvirt-python
<!-- gh-comment-id:239680565 --> @savichev commented on GitHub (Aug 14, 2016): ``` yum info libvirt-python ```
Author
Owner

@Amet13 commented on GitHub (Aug 14, 2016):

[root@vz2 ~]# yum info libvirt-python
Loaded plugins: fastestmirror, langpacks, openvz, priorities, refresh-packagekit
Loading mirror speeds from cached hostfile
 * epel: ftp.colocall.net
 * openvz-os: mirror.mirohost.net
 * openvz-updates: mirror.mirohost.net
103 packages excluded due to repository priority protections
Installed Packages
Name        : libvirt-python
Arch        : x86_64
Version     : 1.3.5
Release     : 1.vz7.1
Size        : 1.3 M
Repo        : installed
From repo   : anaconda
Summary     : The libvirt virtualization API python2 binding
URL         : http://libvirt.org
License     : LGPLv2+
Description : The libvirt-python package contains a module that permits applications
            : written in the Python programming language to use the interface
            : supplied by the libvirt library to use the virtualization capabilities
            : of recent versions of Linux (and other OSes).
<!-- gh-comment-id:239680886 --> @Amet13 commented on GitHub (Aug 14, 2016): ``` [root@vz2 ~]# yum info libvirt-python Loaded plugins: fastestmirror, langpacks, openvz, priorities, refresh-packagekit Loading mirror speeds from cached hostfile * epel: ftp.colocall.net * openvz-os: mirror.mirohost.net * openvz-updates: mirror.mirohost.net 103 packages excluded due to repository priority protections Installed Packages Name : libvirt-python Arch : x86_64 Version : 1.3.5 Release : 1.vz7.1 Size : 1.3 M Repo : installed From repo : anaconda Summary : The libvirt virtualization API python2 binding URL : http://libvirt.org License : LGPLv2+ Description : The libvirt-python package contains a module that permits applications : written in the Python programming language to use the interface : supplied by the libvirt library to use the virtualization capabilities : of recent versions of Linux (and other OSes). ```
Author
Owner

@Amet13 commented on GitHub (Aug 14, 2016):

When I running output command I get an error.

(venv)[root@vz2 webvirtcloud]#  /srv/webvirtcloud/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-BZdgAT/libvirt-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-KuxAYq-record/install-record.txt --single-version-externally-managed --compile --install-headers /srv/webvirtcloud/venv/include/site/python2.7/libvirt-python
Traceback (most recent call last):
  File "<string>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '/tmp/pip-build-BZdgAT/libvirt-python/setup.py'
<!-- gh-comment-id:239682283 --> @Amet13 commented on GitHub (Aug 14, 2016): When I running output command I get an error. ``` (venv)[root@vz2 webvirtcloud]# /srv/webvirtcloud/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-BZdgAT/libvirt-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-KuxAYq-record/install-record.txt --single-version-externally-managed --compile --install-headers /srv/webvirtcloud/venv/include/site/python2.7/libvirt-python Traceback (most recent call last): File "<string>", line 1, in <module> IOError: [Errno 2] No such file or directory: '/tmp/pip-build-BZdgAT/libvirt-python/setup.py' ```
Author
Owner

@savichev commented on GitHub (Aug 15, 2016):

I think you can help

sudo pip install --upgrade pip
<!-- gh-comment-id:239738788 --> @savichev commented on GitHub (Aug 15, 2016): I think you can help ``` sudo pip install --upgrade pip ```
Author
Owner

@Amet13 commented on GitHub (Aug 15, 2016):

I tried this way. No changes.

<!-- gh-comment-id:239760138 --> @Amet13 commented on GitHub (Aug 15, 2016): I tried this way. No changes.
Author
Owner

@savichev commented on GitHub (Aug 15, 2016):

venv/bin/pip install libvirt-python==1.3.2

or

venv/bin/pip install https://pypi.python.org/packages/source/l/libvirt-python/libvirt-python-1.3.2.tar.gz
<!-- gh-comment-id:239768056 --> @savichev commented on GitHub (Aug 15, 2016): ``` venv/bin/pip install libvirt-python==1.3.2 ``` or ``` venv/bin/pip install https://pypi.python.org/packages/source/l/libvirt-python/libvirt-python-1.3.2.tar.gz ```
Author
Owner

@Amet13 commented on GitHub (Aug 15, 2016):

There is a logfile after running command.

(venv)[root@vz2 webvirtcloud]# cat /root/.pip/pip.log
------------------------------------------------------------
venv/bin/pip run on Mon Aug 15 14:51:59 2016
Downloading/unpacking https://pypi.python.org/packages/source/l/libvirt-python/libvirt-python-1.3.2.tar.gz

  Downloading from URL https://pypi.python.org/packages/source/l/libvirt-python/libvirt-python-1.3.2.tar.gz
  Running setup.py egg_info for package from https://pypi.python.org/packages/source/l/libvirt-python/libvirt-python-1.3.2.tar.gz

    running egg_info
    creating pip-egg-info/libvirt_python.egg-info
    writing pip-egg-info/libvirt_python.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/libvirt_python.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/libvirt_python.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/libvirt_python.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found


    file build/libvirt.py (for module libvirt) not found

    file build/libvirt_qemu.py (for module libvirt_qemu) not found

    file build/libvirt_lxc.py (for module libvirt_lxc) not found

    reading manifest file 'pip-egg-info/libvirt_python.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/libvirt_python.egg-info/SOURCES.txt'
  Source in /tmp/pip-qJ1mCY-build has version 1.3.2, which satisfies requirement libvirt-python==1.3.2 from https://pypi.python.org/packages/source/l/libvirt-python/libvirt-python-1.3.2.tar.gz
Installing collected packages: libvirt-python

  Running setup.py install for libvirt-python

    Running command /srv/webvirtcloud/venv/bin/python -c "import setuptools;__file__='/tmp/pip-qJ1mCY-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-grdSeP-record/install-record.txt --single-version-externally-managed --install-headers /srv/webvirtcloud/venv/include/site/python2.7
    running install
    running build
    /usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt

    /srv/webvirtcloud/venv/bin/python generator.py libvirt /usr/share/libvirt/api/libvirt-api.xml

    Found 409 functions in /usr/share/libvirt/api/libvirt-api.xml

    Found 0 functions in libvirt-override-api.xml

    Generated 339 wrapper functions

    Missing type converters:

    virTypedParameterPtr:1

    virTypedParameterPtr *:1

    ERROR: failed virDomainGetPerfEvents

    ERROR: failed virDomainSetPerfEvents

    error: command '/srv/webvirtcloud/venv/bin/python' failed with exit status 1

    Complete output from command /srv/webvirtcloud/venv/bin/python -c "import setuptools;__file__='/tmp/pip-qJ1mCY-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-grdSeP-record/install-record.txt --single-version-externally-managed --install-headers /srv/webvirtcloud/venv/include/site/python2.7:

    running install

running build

/usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt

/srv/webvirtcloud/venv/bin/python generator.py libvirt /usr/share/libvirt/api/libvirt-api.xml

Found 409 functions in /usr/share/libvirt/api/libvirt-api.xml

Found 0 functions in libvirt-override-api.xml

Generated 339 wrapper functions

Missing type converters:

virTypedParameterPtr:1

virTypedParameterPtr *:1

ERROR: failed virDomainGetPerfEvents

ERROR: failed virDomainSetPerfEvents

error: command '/srv/webvirtcloud/venv/bin/python' failed with exit status 1

----------------------------------------

Cleaning up...

Command /srv/webvirtcloud/venv/bin/python -c "import setuptools;__file__='/tmp/pip-qJ1mCY-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-grdSeP-record/install-record.txt --single-version-externally-managed --install-headers /srv/webvirtcloud/venv/include/site/python2.7 failed with error code 1 in /tmp/pip-qJ1mCY-build

Exception information:
Traceback (most recent call last):
  File "/srv/webvirtcloud/venv/lib/python2.7/site-packages/pip/basecommand.py", line 134, in main
    status = self.run(options, args)
  File "/srv/webvirtcloud/venv/lib/python2.7/site-packages/pip/commands/install.py", line 241, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/srv/webvirtcloud/venv/lib/python2.7/site-packages/pip/req.py", line 1298, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/srv/webvirtcloud/venv/lib/python2.7/site-packages/pip/req.py", line 625, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/srv/webvirtcloud/venv/lib/python2.7/site-packages/pip/util.py", line 670, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command /srv/webvirtcloud/venv/bin/python -c "import setuptools;__file__='/tmp/pip-qJ1mCY-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-grdSeP-record/install-record.txt --single-version-externally-managed --install-headers /srv/webvirtcloud/venv/include/site/python2.7 failed with error code 1 in /tmp/pip-qJ1mCY-build
<!-- gh-comment-id:239785296 --> @Amet13 commented on GitHub (Aug 15, 2016): There is a logfile after running command. ``` (venv)[root@vz2 webvirtcloud]# cat /root/.pip/pip.log ------------------------------------------------------------ venv/bin/pip run on Mon Aug 15 14:51:59 2016 Downloading/unpacking https://pypi.python.org/packages/source/l/libvirt-python/libvirt-python-1.3.2.tar.gz Downloading from URL https://pypi.python.org/packages/source/l/libvirt-python/libvirt-python-1.3.2.tar.gz Running setup.py egg_info for package from https://pypi.python.org/packages/source/l/libvirt-python/libvirt-python-1.3.2.tar.gz running egg_info creating pip-egg-info/libvirt_python.egg-info writing pip-egg-info/libvirt_python.egg-info/PKG-INFO writing top-level names to pip-egg-info/libvirt_python.egg-info/top_level.txt writing dependency_links to pip-egg-info/libvirt_python.egg-info/dependency_links.txt writing manifest file 'pip-egg-info/libvirt_python.egg-info/SOURCES.txt' warning: manifest_maker: standard file '-c' not found file build/libvirt.py (for module libvirt) not found file build/libvirt_qemu.py (for module libvirt_qemu) not found file build/libvirt_lxc.py (for module libvirt_lxc) not found reading manifest file 'pip-egg-info/libvirt_python.egg-info/SOURCES.txt' writing manifest file 'pip-egg-info/libvirt_python.egg-info/SOURCES.txt' Source in /tmp/pip-qJ1mCY-build has version 1.3.2, which satisfies requirement libvirt-python==1.3.2 from https://pypi.python.org/packages/source/l/libvirt-python/libvirt-python-1.3.2.tar.gz Installing collected packages: libvirt-python Running setup.py install for libvirt-python Running command /srv/webvirtcloud/venv/bin/python -c "import setuptools;__file__='/tmp/pip-qJ1mCY-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-grdSeP-record/install-record.txt --single-version-externally-managed --install-headers /srv/webvirtcloud/venv/include/site/python2.7 running install running build /usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt /srv/webvirtcloud/venv/bin/python generator.py libvirt /usr/share/libvirt/api/libvirt-api.xml Found 409 functions in /usr/share/libvirt/api/libvirt-api.xml Found 0 functions in libvirt-override-api.xml Generated 339 wrapper functions Missing type converters: virTypedParameterPtr:1 virTypedParameterPtr *:1 ERROR: failed virDomainGetPerfEvents ERROR: failed virDomainSetPerfEvents error: command '/srv/webvirtcloud/venv/bin/python' failed with exit status 1 Complete output from command /srv/webvirtcloud/venv/bin/python -c "import setuptools;__file__='/tmp/pip-qJ1mCY-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-grdSeP-record/install-record.txt --single-version-externally-managed --install-headers /srv/webvirtcloud/venv/include/site/python2.7: running install running build /usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt /srv/webvirtcloud/venv/bin/python generator.py libvirt /usr/share/libvirt/api/libvirt-api.xml Found 409 functions in /usr/share/libvirt/api/libvirt-api.xml Found 0 functions in libvirt-override-api.xml Generated 339 wrapper functions Missing type converters: virTypedParameterPtr:1 virTypedParameterPtr *:1 ERROR: failed virDomainGetPerfEvents ERROR: failed virDomainSetPerfEvents error: command '/srv/webvirtcloud/venv/bin/python' failed with exit status 1 ---------------------------------------- Cleaning up... Command /srv/webvirtcloud/venv/bin/python -c "import setuptools;__file__='/tmp/pip-qJ1mCY-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-grdSeP-record/install-record.txt --single-version-externally-managed --install-headers /srv/webvirtcloud/venv/include/site/python2.7 failed with error code 1 in /tmp/pip-qJ1mCY-build Exception information: Traceback (most recent call last): File "/srv/webvirtcloud/venv/lib/python2.7/site-packages/pip/basecommand.py", line 134, in main status = self.run(options, args) File "/srv/webvirtcloud/venv/lib/python2.7/site-packages/pip/commands/install.py", line 241, in run requirement_set.install(install_options, global_options, root=options.root_path) File "/srv/webvirtcloud/venv/lib/python2.7/site-packages/pip/req.py", line 1298, in install requirement.install(install_options, global_options, *args, **kwargs) File "/srv/webvirtcloud/venv/lib/python2.7/site-packages/pip/req.py", line 625, in install cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False) File "/srv/webvirtcloud/venv/lib/python2.7/site-packages/pip/util.py", line 670, in call_subprocess % (command_desc, proc.returncode, cwd)) InstallationError: Command /srv/webvirtcloud/venv/bin/python -c "import setuptools;__file__='/tmp/pip-qJ1mCY-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-grdSeP-record/install-record.txt --single-version-externally-managed --install-headers /srv/webvirtcloud/venv/include/site/python2.7 failed with error code 1 in /tmp/pip-qJ1mCY-build ```
Author
Owner

@savichev commented on GitHub (Aug 15, 2016):

yum info libvirt-devel
<!-- gh-comment-id:239788075 --> @savichev commented on GitHub (Aug 15, 2016): ``` yum info libvirt-devel ```
Author
Owner

@Amet13 commented on GitHub (Aug 15, 2016):

Maybe this is a trouble with libvirt from OpenVZ repo?

[root@vz2 ~]# yum info libvirt-devel
Loaded plugins: fastestmirror, langpacks, openvz, priorities, refresh-packagekit
Loading mirror speeds from cached hostfile
 * epel: ftp.colocall.net
 * openvz-os: mirror.mirohost.net
 * openvz-updates: mirror.mirohost.net
103 packages excluded due to repository priority protections
Installed Packages
Name        : libvirt-devel
Arch        : x86_64
Version     : 1.3.3.1
Release     : 1.vz7.17
Size        : 6.8 M
Repo        : installed
From repo   : openvz-os
Summary     : Libraries, includes, etc. to compile with the libvirt library
URL         : http://libvirt.org/
License     : LGPLv2+
Description : Include header files & development libraries for the libvirt C library.
<!-- gh-comment-id:239789360 --> @Amet13 commented on GitHub (Aug 15, 2016): Maybe this is a trouble with libvirt from OpenVZ repo? ``` [root@vz2 ~]# yum info libvirt-devel Loaded plugins: fastestmirror, langpacks, openvz, priorities, refresh-packagekit Loading mirror speeds from cached hostfile * epel: ftp.colocall.net * openvz-os: mirror.mirohost.net * openvz-updates: mirror.mirohost.net 103 packages excluded due to repository priority protections Installed Packages Name : libvirt-devel Arch : x86_64 Version : 1.3.3.1 Release : 1.vz7.17 Size : 6.8 M Repo : installed From repo : openvz-os Summary : Libraries, includes, etc. to compile with the libvirt library URL : http://libvirt.org/ License : LGPLv2+ Description : Include header files & development libraries for the libvirt C library. ```
Author
Owner

@savichev commented on GitHub (Aug 15, 2016):

I have gone options to solve the problem

I think the problem in libvirt-python pakages

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=822384

<!-- gh-comment-id:239790565 --> @savichev commented on GitHub (Aug 15, 2016): I have gone options to solve the problem I think the problem in libvirt-python pakages https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=822384
Author
Owner

@savichev commented on GitHub (Aug 15, 2016):

venv/bin/pip install libvirt-python==1.3.3
<!-- gh-comment-id:239792458 --> @savichev commented on GitHub (Aug 15, 2016): ``` venv/bin/pip install libvirt-python==1.3.3 ```
Author
Owner

@Amet13 commented on GitHub (Aug 15, 2016):

I tried to run next steps, too many errors on OpenVZ host. It will not install, I think.

<!-- gh-comment-id:239887774 --> @Amet13 commented on GitHub (Aug 15, 2016): I tried to run next steps, too many errors on OpenVZ host. It will not install, I think.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#82
No description provided.