enkidulan / chromedriver Goto Github PK
View Code? Open in Web Editor NEWChromedriver donwloader
Chromedriver donwloader
Hi @enkidulan - I am having issues installing chromedriver using this helper on Windows 10.
I have added the following to my own tool's setup.py
:
install_requires=[
'chromedriver>=2.21.1',
'selenium>=2.53.1',
],
However, when I run pip install
, I get this error:
Processing c:\projects\tools\facebook-online-friend-tracker\dist\facebook-online-friend-tracker-2.1.0.zip
Collecting chromedriver>=2.21.1 (from facebook-online-friend-tracker==2.1.0)
Using cached chromedriver-2.21.1.zip
Collecting selenium>=2.53.1 (from facebook-online-friend-tracker==2.1.0)
Building wheels for collected packages: facebook-online-friend-tracker, chromedriver
Running setup.py bdist_wheel for facebook-online-friend-tracker ... done
Stored in directory: C:\Users\Baraa\AppData\Local\pip\Cache\wheels\f9\d0\cb\d442e1b95431aa11b40ab9dd31c2b5fc46e25988b892c6e6d7
Running setup.py bdist_wheel for chromedriver ... error
Complete output from command c:\projects\tools\facebook-online-friend-tracker\venv\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Baraa\\AppData\\Local\\Temp\\pip-build-19u84773\\chromedriver\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d C:\Users\Baraa\AppData\Local\Temp\tmpg18svg80pip-wheel- --python-tag cp34:
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\lib\chromedriver
copying chromedriver\__init__.py -> build\lib\chromedriver
running egg_info
writing dependency_links to chromedriver.egg-info\dependency_links.txt
writing chromedriver.egg-info\PKG-INFO
writing entry points to chromedriver.egg-info\entry_points.txt
writing top-level names to chromedriver.egg-info\top_level.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'chromedriver.egg-info\SOURCES.txt'
writing manifest file 'chromedriver.egg-info\SOURCES.txt'
installing to build\bdist.win32\wheel
running install
Downloading chromedriver
http://chromedriver.storage.googleapis.com/2.21/chromedriver_win32.zip: downloaded 2621440 of 2598298 bytes (101%)
error: [Errno 13] Permission denied: 'C:\\Users\\Baraa\\AppData\\Local\\Temp\\tmpyvbkujhu'
----------------------------------------
Failed building wheel for chromedriver
Running setup.py clean for chromedriver
Successfully built facebook-online-friend-tracker
Failed to build chromedriver
Installing collected packages: chromedriver, selenium, facebook-online-friend-tracker
Running setup.py install for chromedriver ... error
Complete output from command c:\projects\tools\facebook-online-friend-tracker\venv\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Baraa\\AppData\\Local\\Temp\\pip-build-19u84773\\chromedriver\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Baraa\AppData\Local\Temp\pip-9pq9ji33-record\install-record.txt --single-version-externally-managed --compile --install-headers c:\projects\tools\facebook-online-friend-tracker\venv\include\site\python3.4\chromedriver:
running install
Downloading chromedriver
http://chromedriver.storage.googleapis.com/2.21/chromedriver_win32.zip: downloaded 2621440 of 2598298 bytes (101%)
error: [Errno 13] Permission denied: 'C:\\Users\\Baraa\\AppData\\Local\\Temp\\tmpwg0esx72'
----------------------------------------
Command "c:\projects\tools\facebook-online-friend-tracker\venv\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Baraa\\AppData\\Local\\Temp\\pip-build-19u84773\\chromedriver\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Baraa\AppData\Local\Temp\pip-9pq9ji33-record\install-record.txt --single-version-externally-managed --compile --install-headers c:\projects\tools\facebook-online-friend-tracker\venv\include\site\python3.4\chromedriver" failed with error code 1 in C:\Users\Baraa\AppData\Local\Temp\pip-build-19u84773\chromedriver\
It seems to be a permission issue? Even after I ran Command Prompt as an Administrator, I still saw the same error. Do you know why this is happening?
in a virtualenv, save the chromedriver to the virtualenv's bin
directory. if not in a virtualenv, put it in the current default python scripts directory. then selenium.webdriver.Chrome()
would "just work", with no need to worry about specifying a specific path?
Chromedriver 2.40 is out and It would be great to get a new release that corresponds to that!
See http://chromedriver.chromium.org/downloads, thanks!
Setuptools was updated yesterday to version 30 and now when I try to install chromedriver I get the following error message
chromedriver downloaded and can be reached by following path '/tmp/easy_install-hrhoa51u/chromedriver-2.21.1/chromedriver/bin/chromedriver'. error: Setup script exited with error: Error: setup script specifies an absolute path:
/tmp/easy_install-hrhoa51u/chromedriver-2.21.1/chromedriver/bin/chromedriver
setup() arguments must *always* be /-separated paths relative to the
setup.py directory, *never* absolute paths.
Downgrading setuptools to version 29.0.1 and installing again works.
Also, you can see that I'm trying to install version 2.21.1 of chromedriver and my setup.py file does not specify a version for chromedriver, so in order to try and install the latest version (2.24.1) I tried using
chromedriver==2.24.1
in my setup.py file and for some reason I got this error
No local packages or working download links found for chromedriver==2.24.1
I'm not sure why this didn't work since chromedriver 2.24.1 is on Pypi
https://pypi.python.org/pypi/chromedriver
Just thought I'd let you know.
I'm importing the CHROMEDRV_PATH and has this path:
'/home/myuser/env/local/lib/python2.7/site-packages/CHROMEDRIVER'
But the real path is:
'/home/myuser/env/CHROMEDRIVER'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.