Running Phantomjs On Linux Using Python
I followed this link and now when I type phan and then tab (\t) it does autocomplete to phantomJS. Yet if I run phantomJS -v or phantomJS --version I get: bash: /usr/local/bin/phan
Solution 1:
It very much sounds like a 64 vs 32 bits issue.
To find out whats the version of your ubuntu, you can run
$ uname -i
x86_64
Then make sure to download the correct version of phantom
- 32 bits version: https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-i686.tar.bz2
- 64 bits version: https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
Also make sure your lib are corresponding to the version of your OS.
Solution 2:
You can check out this link.
driver = webdriver.PhantomJS(executable_path='Complete path/to/phantomjs.exe')
It worked well for me.
Post a Comment for "Running Phantomjs On Linux Using Python"