-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
ChromeDriver could not be found #164
Comments
This is expected because I removed the The reason I do this is because we will have many heads in the future, now we have two: phantomjs and chromedriver, later maybe we need android SDK/Emulator, etc. So I think to let the user install the exact dependence instead of we install everything is a better choice. Also, there's another problem when you in China: you can use CDN from Taobao for npm, but chromedriver is hosted at another google server, so you have to set another proxy for installing chromedriver. It's will block some user to install Wechaty. Finally, if you think we should include the chromedriver in Wechaty, we can discuss it as well. Because I'm not very sure if we should include it or not. Thanks. |
I think this needs to be documented then, as currently it will (sometimes?) leave an incomplete install. One way would be an installer/setup script, but that would need to also maybe support windows which would be a pain. Is there a way to use PhantomJS in development, or is that just for testing? I tried:
|
I have same problem. Today, i need find some solution with WeChat bot. 1 npm install --save wechaty Then, i have same problem with wechaty could not find chromedriver. |
Hi @eastmoon , TL;DRI suggest you install chromedriver globally by run DetailYour issue is because After you ran As a result, Wechaty will also not be able to find it. |
This issue came up in another chatroom today too. It seems a frequent issue. |
@dcsan Yes, I agree with you. I'm planning to put the |
@zixia Good decided. |
Hi, I am having the same issue like eastmoon I can run chromedriver command just fine, and also added chromedriver PATH from global scope. My box is Window 7 64-bit, updated with latest node 7.5, npm 4.1.2 |
Same as @brianwfl88 I can run chromedriver in cmd, it's already in PATH. But it still fail at ChromeDriver. My box is Windows 10 64-bit, with node ~~~v6.9.1~~~ v6.9.5, npm ~~~v3.10.8~~~ v3.10.10 |
Hi @brianwfl88 @ax4 , It seems you guys are both using windows. Could you please provide the follow information for diagnosing?
|
I just copy from README in my
And I start it as The whole error message pop-out in cmd is
And with pop-out with
|
Had you tried to install an NPM version of chromedriver? like run this: npm install chromedriver |
Hi @zixia, I have noticed my console is trying to load chrome-driver. However you suggest to install chromedriver. Will that be an issue? Since "chrome-driver" and "chromedriver" are different things and "chrome-driver" could not be found in npm repository. |
It should be Did |
Hi @zixia, my chromedriver was installed by Although I tried Plus: my wechaty is also installed from npm, and it's on version 0.7.17 (described by the package itself) |
@ax4 Sorry for that not work for you. It seems you had run into an unknown state for me. There's a win32 CI setting file of appveyor at here: It runs under Windows without any problem; you might be able to make chromedriver work for you by inspecting this file. Good luck! |
I have added "E:\wamp\www\GitHub\wechaty\node_modules\chromedriver\bin" into both System Path and User Path. Some related issue with chrome driver on binary path: https://github.com/angular/protractor/issues/950
|
@brianwfl88 According to the error message: This time it seems that you need to install chrome browser. |
@zixia Anyway, thank you so much for your help! I really appreciate it! Your docker solution is awesome! I'll keep going on bot development with docker solution, as well as figure out how it works on win32 (hopefully someday😅). BTW, I was so much impressed by your Wechaty 101 Video. Honestly, I have so much essentials to learn - from Docker thru CI, and Testing thru Building. Thanks to Wechaty project! It inspires me a lot! |
@ax4 Thanks for loving Wechaty, appreciate it. :) |
hi @zixia , The program is running fine now on another windows machine, the chromedriver path must use .exe in the 'lib' folder. After that, the demo script works fine. Thank you for your help. |
@brianwfl88 Great to hear that, Cheers! |
This is just an information since others have the same problem... or if you know the reason.
I setup wechaty on two new machines (showing it to a friend) and both times hit this error on trying to run the demo. However I don't always hit this problem - other machines have been OK.
To fix this i reinstalled just
and everything was OK.
Now I noticed the URL points to a google domain.
But since it came from (c)npm i was able to install OK.
The text was updated successfully, but these errors were encountered: