Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error Message Pip
#1
Trying to install pip selenium web driver and getting an error
message. Please view jpeg file to view the exact message.


New to Python and I am trying to do automate the boring stuff video tutorials.

[Image: error.jpg]


Thank you in advance
Reply
#2
Driver Links

Download appropriate driver binary from above link. Add the downloaded executable in system path or specify executable_path in the constructor like.

driver = webdriver.Firefox(executable_path='path\to\geckodriver.exe')
Reply
#3
browser = webdriver.Firefox(executable_path'C:\Users\Dirk\Downloads\geckodriver-v0.19.1-win64\geckodriver.exe')

What am I missing?
SyntaxError: invalid syntax
Reply
#4
Compared to @hbknjr's code a '=' sign between executable_path and path string.
Reply
#5
Also raw string r or backlash other way in path /.
This is because of escape character.
browser = webdriver.Firefox(executable_path=r'C:\Users\Dirk\Downloads\geckodriver-v0.19.1-win64\geckodriver.exe')
Reply
#6
Thank you Snippsat. Looks like it opened Firefox but I still
received an error. I have attached the new image.

[Image: new_error.jpg]

Thank you in advance.
Reply
#7
You have Python 32-bit so you need geckodriver-v0.19.1-win32.zip
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  trying to display custom error message on form mp3909 0 1,579 Nov-19-2020, 06:35 PM
Last Post: mp3909

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020