Recent update wont run app.py
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
Yeah I'm getting that aswell
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.
I tried all of the solutions you mentioned. I'm still getting the same error.
Was anyone able to resolve?
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
File "app.py", line 121 print exp ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(exp)?
I think this is a python 2.x project