Find the answer to your Linux question:
Results 1 to 4 of 4
Hello, I'm new to the forums and would like to request some help. So, I've been trying to setup an IRC server recently and after a while that's finally been ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2012
    Posts
    12

    CentOS: Installing Python 2.6 and lxml, module not found


    Hello,
    I'm new to the forums and would like to request some help.

    So, I've been trying to setup an IRC server recently and after a while that's finally been done. But now I have another problem.

    I want to install the skybot for IRC channels, and it requires Python 2.6/2.7 and the lxml module. I'm running CentOS and spotted that it only has Python 2.4.

    After a while I was able to setup and install Python 2.6 which allowed me to start the bot.py script of skybot. Now the problem lies with it's modules as they all require the lxml module.

    I was able to install lxml using the easy_install method but Python can not detect that it exists, rendering it useless.

    What can I do to get Python to recognise that lxml is present?
    Note: I have not rebooted the server since installing lxml or Python 2.6.

    Thanks in advance,
    Kris

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    11,168
    I assume you are running CentOS 5.x since RHEL/CentOS/SL 6.x are running python 2.6.6 and lxml 2.2.3. Is there any particular reason why you cannot upgrade to CentOS 6.x?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jun 2012
    Posts
    12
    Well, the server is in a delicate position and I lack the time to do the upgrade and make sure its all working. Either way I was hoping to install lxml and have it working.

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    11,168
    The problem with installing python 2.6 and a newer version of lxml on your system is that it will probably break a lot of your regular stuff. That said, you can install them from source into /usr/local instead of /usr, and then run those versions when necessary by changing your PATH, LD_LIBRARY_PATH, and possibly other environment variables. That may work, but no guarantees...

    FWIW, the move to 6.x from 5.x is well worth the effort, in my opinion. I did that when Scientific Linux came out - I upgraded from CentOS 5.5 and never looked back. Yes, there were some issues with some tools (are still), but it runs faster, seems to less resource intensive, and a lot of newer tools work that I could never get running on 5.x, such as Cinelerra, etc.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •