Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with installation on VzLinux #125

Closed
Amet13 opened this issue Aug 2, 2016 · 12 comments
Closed

Problem with installation on VzLinux #125

Amet13 opened this issue Aug 2, 2016 · 12 comments

Comments

@Amet13
Copy link

Amet13 commented Aug 2, 2016

# 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/
@savichev
Copy link
Contributor

yum info libvirt-python

@Amet13
Copy link
Author

Amet13 commented 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).

@Amet13
Copy link
Author

Amet13 commented 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'

@savichev
Copy link
Contributor

I think you can help

sudo pip install --upgrade pip

@Amet13
Copy link
Author

Amet13 commented Aug 15, 2016

I tried this way. No changes.

@savichev
Copy link
Contributor

savichev commented 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

@Amet13
Copy link
Author

Amet13 commented 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

@savichev
Copy link
Contributor

yum info libvirt-devel

@Amet13
Copy link
Author

Amet13 commented 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.

@savichev
Copy link
Contributor

savichev commented 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

@savichev
Copy link
Contributor

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

@Amet13
Copy link
Author

Amet13 commented Aug 15, 2016

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

@Amet13 Amet13 closed this as completed Aug 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants