I have installed python 2.7 on CentOS 5.5 x86_64 machine.
$ file /opt/python2.7.1/bin/python
/opt/python2.7.1/bin/python: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
Then I tied to run a basic login script using selenium web driver & it fails with the following error.
selenium.common.exceptions.WebDriverException: Message: 'The browser appears to have exited before we could connect. The output was: Failed to dlopen /usr/lib/libX11.so.6\ndlerror says: /usr/lib/libX11.so.6: wrong ELF class: ELFCLASS32\n'
Why it’s using 32 bit X11 library instead of using 64 bit X11 library? How can I make python use 64 bit libraries?
I have the same error on Scientific Linux 6, and tried changing the libraries as described here:
http://code.google.com/p/selenium/issues/detail?id=2852
Changing the link didn’t work for me, but I did not try patching selenium. Hopefully this will be fixed in the next release.