-
Notifications
You must be signed in to change notification settings - Fork 942
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
requests gspread library fails to pip install because dependency requests library missing #317
Comments
This is a consequence of the way in which the version string is centralized in gspread's A likely consequence of this is that gspread cannot be imported from @burnash: Do you have a preference as to how this should be handled? |
Never mind. version = ''
with open('requests/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1) |
Thanks a ton for reporting this @mosesmc52! |
Thanks for responding promptly. Anytime, Gspread is a great tool. |
@mosesmc52 many thanks for spotting this. Talking about versions, I believe it's time to bump up the gspread's minor version to 3 and release the lib on the PyPI. |
import sys |
Hi,
I regularly install this library in to a virtual environment using the pip install command. After last Friday, the gspread library fails to install because it didn't pre-install the dependent requests library. Here is the stack trace error I see. This is the command line argument I use to install the gspread library.
pip install https://github.com/burnash/gspread/archive/master.zip
Moses
File "/var/folders/dl/jt5zsvy91gx3g8_pflz9c5680000gp/T/pip-zaKdHf-build/setup.py", line 6, in
File "gspread/init.py", line 21, in
File "gspread/client.py", line 19, in
File "gspread/httpsession.py", line 11, in
ImportError: No module named requests
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /var/folders/dl/jt5zsvy91gx3g8_pflz9c5680000gp/T/pip-zaKdHf-build
Storing debug log for failure in /Users/user/.pip/pip.log
The text was updated successfully, but these errors were encountered: