Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8131155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:59:55+00:00 2026-06-06T08:59:55+00:00

I am trying to install python-selenium bindings by seeing here When i am trying

  • 0

I am trying to install python-selenium bindings by seeing here

When i am trying to import the following command, it is showing an error below

from selenium.firefox.webdriver import WebDriver

Result:

from selenium.firefox.webdriver import WebDriver
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named firefox.webdriver

I searched a lot to solve this, but i didn’t get the right example to do this, can anyone please provide me a way and an example on how to install python selenium bindings and why the above error is returned.

Thanks in advance……….

Edited :
I editing my code according to below answer,and tried the following , i got the below

>>> from selenium import webdriver
>>> driver = webdriver.Firefox()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/selenium-2.21.3-py2.7.egg/selenium/webdriver/firefox/webdriver.py", line 51, in __init__
    self.binary, timeout),
  File "/usr/lib/python2.7/site-packages/selenium-2.21.3-py2.7.egg/selenium/webdriver/firefox/extension_connection.py", line 47, in __init__
    self.binary.launch_browser(self.profile)
  File "/usr/lib/python2.7/site-packages/selenium-2.21.3-py2.7.egg/selenium/webdriver/firefox/firefox_binary.py", line 44, in launch_browser
    self._wait_until_connectable()
  File "/usr/lib/python2.7/site-packages/selenium-2.21.3-py2.7.egg/selenium/webdriver/firefox/firefox_binary.py", line 81, in _wait_until_connectable
    self._get_firefox_output())
selenium.common.exceptions.WebDriverException: Message: 'The browser appears to have exited before we could connect. The output was: *** LOG addons.xpi: startup\n*** LOG addons.xpi: checkForChanges\n*** LOG addons.xpi: Opening database\n*** LOG addons.xpi: No changes found\nFailed to dlopen /usr/lib/libX11.so.6\ndlerror says: /usr/lib/libX11.so.6: wrong ELF class: ELFCLASS32\n' 

And also saying that there is some crash in firefox 1.0....

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T08:59:56+00:00Added an answer on June 6, 2026 at 8:59 am

    As stated on that page they have re-organized the package. Use the second code listing I have posted here.

    One advantage of using trunk as of writing, is the reorganization of the package. Previously, to initialize a browser you had to perform,

    from selenium.firefox.webdriver import WebDriver
    driver = WebDriver()
    

    This has been changed, so now all that is required is:

    from selenium import webdriver
    driver = webdriver.Firefox()
    

    EDIT (for new error):

    Are you running this from a linux server with no X display? Firefox requires a display to render itself. Take a look at PyVirtualDisplay for running “headless” (without X).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to install mysql-python. Got following error. Got mysql and pythond already installed. Any
Here tis the error I get while trying to install MySQL-python-1.2.3. any idea's? Traceback
I'm trying to install Python from source on my Mac. (OS X 10.6.2, Python-2.6.5.tar.bz2)
trying to install gdata python library client,receiving following errors: running install running build running
I am trying to install Python 2.7.2 from source files in my Linux machine.
I am trying to install python bindings for the enchant library (pyenchant), according to
I'm trying install pycrypto on osx with easy_install and I'm getting the following error:
I was trying to install the following python wrapper for Amazons product api: http://pypi.python.org/pypi/python-amazon-product-api/0.2.5a1
I'm trying to install MySQLdb with Python 2.7. The error I'm getting looks like
I am trying to install the basic ldap python module under cygwin. The following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.