Python Selenium getting started error

I have updated to Selenium 3. I have set gecko in PATH but continue to get the error. Firefox starts up but then no action for a few moments and Firefox closes (i assume a time out).Any incite would be greatly appreciated!

Traceback (most recent call last): File "C:\Users\Paul\Documents\python selenium\", line 4, in driver = webdriver.Firefox() File "C:\Python27\lib\selenium\webdriver\firefox\", line 78, in init self.binary, timeout) File "C:\Python27\lib\selenium\webdriver\firefox\", line 49, in init self.binary.launch_browser(self.profile) File "C:\Python27\lib\selenium\webdriver\firefox\", line 68, in launch_browser self._wait_until_connectable() File "C:\Python27\lib\selenium\webdriver\firefox\", line 106, in _wait_until_connectable % (self.profile.path)) WebDriverException: Message: Can't load the profile. Profile Dir: c:\users\paul\appdata\local\temp\tmphptyx9 If you specified a log_file in the FirefoxBinary constructor, check it for details.


from selenium import webdriver
from selenium.webdriver.common.keys import Keys

driver = webdriver.Firefox()
assert "Python" in driver.title
elem = driver.find_element_by_name("q")
assert "No results found." not in driver.page_source