theriley106 / SneakerBotTutorials

Open Source SneakerBot created as a supplement to my "Creating a Sneaker Bot in Python" Youtube Series
https://www.youtube.com/playlist?list=PL3fpqcQTK0f9sACDQstvjxbHzD1L_gr__
MIT License
621 stars 137 forks source link

Recent update wont run app.py #9

Open jeromesteve202 opened 7 years ago

jeromesteve202 commented 7 years ago

After the most recent update, when i try to run app.py I am getting an error. I have pasted the terminal output in this message.

Traceback (most recent call last):
  File "app.py", line 15, in <module>
    bot = main.bot({})
  File "/Users/stevesahayadarlin/Desktop/YeezyBot/SneakerBotTutorials-master/main.py", line 43, in __init__
    self.driver = webdriver.PhantomJS(service_args=['--proxy={}'.format(proxy), '--proxy-type=http'])
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/phantomjs/webdriver.py", line 52, in __init__
    self.service.start()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/common/service.py", line 71, in start
    os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'phantomjs' executable needs to be in PATH. 

Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.phantomjs.service.Service object at 0x10364b6d0>> ignored
Grumpyfish44 commented 7 years ago

Yeah I'm getting that aswell

jace1717 commented 6 years ago

You need to find your phantomjs executable (wherever it installed to, or go downloaded selenium again) and either copy the executable into the directory you're working out of, or you can pass the path to the executable by passing it to the class on initialization like so: driver = webdriver.PhantomJS(executable_path="your path here");

You can also add the path to your PATH environment variable, but I wouldn't recommend it.

jeromesteve202 commented 6 years ago

I tried all of the solutions you mentioned. I'm still getting the same error.

Vanchat commented 6 years ago

Was anyone able to resolve?

jeromesteve202 commented 6 years ago

Yes, I was able to get past that error. If you pull or download the most updated project, there were some changes made in the main.py and I am able to run app.py

tdarlak-mwb commented 4 years ago

File "app.py", line 121 print exp ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(exp)?

dragonfiber commented 2 years ago

I think this is a python 2.x project