Category: Operating Systems

Python setuptools and get_python_version is not defined

If you run into the below error when using setuptools (setup.py), then it’s quite possible that you’re using an outdated version of Python’s setuptools. In particular, the python-setuptools package in the CentOS yum repository is too old. Traceback (most recent call last): File “setup.py”, line 19, in ? setup(**metadata) File “/usr/lib64/python2.4/distutils/core.py”, line 149, in setup dist.run_commands() File “/usr/lib64/python2.4/distutils/dist.py”, line 946,...

HyperVM and yum update Transaction Check Errors

If you’re having file conflict problems when running “yum update” on servers with the lxlabsupdate repository for HyperVM (or Kloxo) installed then there’s a simple resolution: cd /var/cache/yum/lxlabsupdate/packages/ rpm -Uvh *.rpm –replacefiles –replacepkgs This should fix errors such as: file /usr/share/man/man1/pcregrep.1.gz from install of pcre-8.02-1.el5_5.1.x86_64 conflicts with file from package pcre-6.6-2.el5_1.7.i386 file /usr/share/man/man1/pcretest.1.gz from install of pcre-8.02-1.el5_5.1.x86_64 conflicts with file...