Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError #1

Open
CubedWorldNET opened this issue May 23, 2017 · 5 comments
Open

OSError #1

CubedWorldNET opened this issue May 23, 2017 · 5 comments

Comments

@CubedWorldNET
Copy link

CubedWorldNET commented May 23, 2017

Hey, not sure what I have done wrong but I followed all the steps and receive this error:

[+] creating account for R8AD19NP0RXXV1Q with password PJWHPJ7S89ILY4C
Traceback (most recent call last):
File "creator.py", line 79, in
main()
File "creator.py", line 59, in main
account_created = create_account(username, password)
File "creator.py", line 21, in create_account
browser = webdriver.Firefox(firefox_profile=profile)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 142, in init
self.service.start()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 74, in start
stdout=self.log_file, stderr=self.log_file)
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error

@ahaggard2013
Copy link
Owner

seems like something to do with permissions, I'd try running it as super user if you haven't. Does selenium work at all? Try running this in another file.

from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://google.com')

Will likely find more info in the log file generated too.

@CubedWorldNET
Copy link
Author

CubedWorldNET commented May 23, 2017

Hey,

Appears you are right about Selenium not working at all.

Traceback (most recent call last):
File "test.py", line 2, in
browser = webdriver.Firefox()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 142, in init
self.service.start()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 74, in start
stdout=self.log_file, stderr=self.log_file)
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error

Also the geckodriver.log file is actually empty, thanks for providing help :)

EDIT: I also tried pip3 install selenium and ran the script in python3 but had the same error.

@ahaggard2013
Copy link
Owner

Did you try running it with sudo?

@CubedWorldNET
Copy link
Author

Hey, yes I did

@Mihaitafox11
Copy link

I got the same error and I'm on windows. Help :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants