Skip to content

Fix Virtualenv compatibility #100

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

Closed
migurski opened this issue Jan 25, 2014 · 2 comments
Closed

Fix Virtualenv compatibility #100

migurski opened this issue Jan 25, 2014 · 2 comments
Labels

Comments

@migurski
Copy link
Contributor

pip install gspread fails inside virtualenv with a space in parent directory name. I’m running Python 2.7.5 on Mac OS 10.9, and when I attempt to install using pip, gspread tries to install itself in /Library/Python/2.7/site-packages where it encounters a permission failure. I can still correctly install gspread from the Git repo, using python setup.py install.

Steps to reproduce:

  1. mkdir "/tmp/foo bar" (note space in the name)
  2. cd "/tmp/foo bar"
  3. virtualenv venv-foo
  4. source venv-foo/bin/activate.csh (I use tcsh)
  5. pip install gspread

Here's a log of the error.

When the parent directory has no space in its name, pip installs as expected:

  1. mkdir /tmp/foo-bar
  2. cd /tmp/foo-bar
  3. virtualenv venv-foo
  4. source venv-foo/bin/activate.csh
  5. pip install gspread now works.
@migurski
Copy link
Contributor Author

Once installed, works beautifully. Thank you.

@msuozzo msuozzo added the Bug label Oct 7, 2015
@burnash
Copy link
Owner

burnash commented Jul 18, 2016

@migurski Thanks for reporting the issue and sorry for the two years delay in reply.

I don't think the problem is related to gspread, though. In the linked install log, the pip version is /usr/local/bin/pip which looks like a system-wide installation. I'm not sure about the exact reason behind this particular failure, but similar permission-related errors have been reported on StackOverflow.

A space in a directory name is another known issue. It is also unrelated to gspread.

@burnash burnash closed this as completed Jul 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants