paylogic / pip-accel

pip-accel: Accelerator for pip, the Python package manager
https://pypi.python.org/pypi/pip-accel
MIT License
308 stars 35 forks source link

Running pip-accel remote sudoed as a user without home folder breaks on line 493 #5

Closed hvdklauw closed 11 years ago

hvdklauw commented 11 years ago

File "/srv/sites/trello_burndown/releases/8acf54903e6b-1304290842/.env/bin/pip-accel", line 8, in load_entry_point('pip-accel==0.7.2', 'console_scripts', 'pip-accel')() File "/srv/sites/trello_burndown/releases/8acf54903e6b-1304290842/.env/local/lib/python2.7/site-packages/pip_accel.py", line 89, in main initialize_directories() File "/srv/sites/trello_burndown/releases/8acf54903e6b-1304290842/.env/local/lib/python2.7/site-packages/pip_accel.py", line 493, in initialize_directories os.makedirs(directory) File "/srv/sites/trello_burndown/releases/8acf54903e6b-1304290842/.env/lib/python2.7/os.py", line 150, in makedirs makedirs(head, mode) File "/srv/sites/trello_burndown/releases/8acf54903e6b-1304290842/.env/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/home/harro/.pip'

hvdklauw commented 11 years ago

Could work around it for now by settings the PIP_ACCEL_CACHE and PIP_DOWNLOAD_CACHE

l0kix2 commented 11 years ago

I found it in code too. It is nice to put it in wiki or docs.

xolox commented 11 years ago

Thanks for the feedback @Harro and @l0kix2! I've now documented the environment variables in the readme and I've published version 0.7.3 of pip-accel to PyPi. The new version uses the effective user id instead of os.path.expanduser() (which looks at $HOME). Can you confirm whether the issue is resolved?

l0kix2 commented 11 years ago

Thanks for addition info in docs.

xolox commented 11 years ago

I'm pretty sure this issue is resolved, so I'm going to go ahead and close it. If the issue is not resolved for either of you, feel free to reopen. Thanks for the feedback!