Reddit-Account-Generator-and-Mass-Upvoter icon indicating copy to clipboard operation
Reddit-Account-Generator-and-Mass-Upvoter copied to clipboard

OSError

Open CubedWorldNET opened this issue 7 years ago • 5 comments

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

CubedWorldNET avatar May 23 '17 18:05 CubedWorldNET

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.

ahaggard2013 avatar May 23 '17 19:05 ahaggard2013

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.

CubedWorldNET avatar May 23 '17 19:05 CubedWorldNET

Did you try running it with sudo?

ahaggard2013 avatar May 23 '17 23:05 ahaggard2013

Hey, yes I did

CubedWorldNET avatar May 24 '17 16:05 CubedWorldNET

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

Mihaitafox11 avatar Jul 18 '17 09:07 Mihaitafox11