donnemartin / dev-setup

macOS development environment setup: Easy-to-understand instructions with automated setup scripts for developer tools like Vim, Sublime Text, Bash, iTerm, Python data analysis, Spark, Hadoop MapReduce, AWS, Heroku, JavaScript web development, Android development, common data stores, and dev-based OS X defaults.
Other
6.13k stars 1.15k forks source link

PyData.sh Script Permission Error in Mac #73

Closed vishnu-iyer closed 5 years ago

vishnu-iyer commented 7 years ago

While running pydata.sh script the installation fails for virtualenv and virtualenvwrapper. It says Permission Denied.

Is anyone facing this issue.?

donnemartin commented 7 years ago

Hi @vishnu-iyer, can you post the output?

iyervishnu commented 7 years ago

Hi @donnemartin this is the output in the terminal after the installation is done.

/usr/bin/python:

 No module named virtualenvwrapper
virtualenvwrapper.sh: There was a problem running the initialization hooks.

If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is
set properly.

vishnuyr at Vishnus-MacBook-Air in ~
$

Also I have attached the Output of Running ./.dots .pydata and ./.dots bootstrap osxprep brew osx

dots.log pydata.log

donnemartin commented 7 years ago

Hmm, not sure why you're running into this issue. Do these posts help?

vishnu-iyer commented 7 years ago

No none of this steps were helpful.

Regards, Vishnu Iyer +91-9833207793 Please consider your environmental responsibility. Before printing this e-mail message, ask yourself whether you really need a hard copy. IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email by mistake, please notify the sender immediately and do not disclose the contents to anyone or make copies thereof.

On 4 Oct 2017, 5:52 AM +0530, Donne Martin notifications@github.com, wrote:

Hmm, not sure why you're running into this issue. Do these posts help?

• Stack Overflow Post 1 • Stack Overflow Post 2

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

jpwalsh1 commented 7 years ago

I just got errors on this script too setting up a new 2017 macbook pro running 10.12.6.

I needed to update the script in this spot to the following. Also forced the py2 virtualenv to use the homebrew python too just to be safe. This section updating helped it not try to update system files that wanted me to run the file as root/etc.

export PIP_REQUIRE_VIRTUALENV=false
pip install pbr
pip install virtualenv
pip install --no-deps stevedore
pip install --no-deps virtualenvwrapper

It's odd because I've ran this file on another, older macbook, the same OS level and it ran fine.

donnemartin commented 7 years ago

@jpwalsh1 thanks for the follow-up!

@vishnu-iyer does that help address your issue?