Skip to content
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

'Uninstalling a distutils installed project' error when installing blockstack #504

Closed
sdtsui opened this Issue Jul 25, 2017 · 50 comments

Comments

Projects
None yet
@sdtsui
Copy link

sdtsui commented Jul 25, 2017

I am on macOS Sierra: 10.12.5, running Python 2.7.
Had some issues installing in OSX, and ended up finding this was the issue (when running sudo pip install blockstack --upgrade):

    DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
    Uninstalling six-1.4.1:
Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 778, in install
    requirement.uninstall(auto_confirm=True)
  File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 754, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/Library/Python/2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove
    renames(path, new_path)
  File "/Library/Python/2.7/site-packages/pip/utils/__init__.py", line 267, in renames
    shutil.move(old, new)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
    copy2(src, real_dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
    copystat(src, dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
    os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/tmp/pip-W_MEda-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

After attempting to narrow the cause and doing a bit of searching, I was able to get blockstack working in the CLI.

I used
pip install --ignore-installed six
or more generally
pip install --ignore-installed ${PACKAGE_NAME}

source

Even though this is not directly related to blockstack (it's a common error when uninstalling packages on newer versions of OSX), I am making this issue so it's easier for others in the community to find. Closing now. Thanks!

@sdtsui sdtsui closed this Jul 25, 2017

@ghost

This comment has been minimized.

Copy link

ghost commented Nov 23, 2017

Thanks!

2 similar comments
@ShangxuanWu

This comment has been minimized.

Copy link

ShangxuanWu commented Feb 11, 2018

Thanks!

@suSquirrel

This comment has been minimized.

Copy link

suSquirrel commented Feb 19, 2018

Thanks!

@hrbaer

This comment has been minimized.

Copy link

hrbaer commented Mar 4, 2018

Solved the problem.

@RemyAlves

This comment has been minimized.

Copy link

RemyAlves commented Apr 27, 2018

Thanks a lot!

@javadyaali

This comment has been minimized.

Copy link

javadyaali commented May 4, 2018

Thank you

@jin-90

This comment has been minimized.

Copy link

jin-90 commented May 10, 2018

Thank you so much!

@zbww

This comment has been minimized.

Copy link

zbww commented May 10, 2018

SO MANY THANKS!!!

@ishanshah90

This comment has been minimized.

Copy link

ishanshah90 commented May 15, 2018

Thank you so much !!!

@SaladDon

This comment has been minimized.

Copy link

SaladDon commented May 24, 2018

Thank you so much!

@heartlock

This comment has been minimized.

Copy link

heartlock commented May 26, 2018

Thanks!!!

@dhruv-aggarwal

This comment has been minimized.

Copy link

dhruv-aggarwal commented Jun 8, 2018

Thanks!!!

@priyacshah

This comment has been minimized.

Copy link

priyacshah commented Jun 22, 2018

It's working ! Thanks !

@zfxxfeng

This comment has been minimized.

Copy link

zfxxfeng commented Jun 27, 2018

Thanks!

@wangyaoheng

This comment has been minimized.

Copy link

wangyaoheng commented Jul 5, 2018

Thanks!

@aruna09

This comment has been minimized.

Copy link

aruna09 commented Jul 9, 2018

Thanks. Worked!

@matthewpoer

This comment has been minimized.

Copy link

matthewpoer commented Jul 9, 2018

July 2018 -- still a problem, and --ignore-installed six is still a working solution.

@pollord

This comment has been minimized.

Copy link

pollord commented Jul 15, 2018

thanks

@ktsiakas

This comment has been minimized.

Copy link

ktsiakas commented Jul 20, 2018

you legend

@Takerman

This comment has been minimized.

Copy link

Takerman commented Jul 22, 2018

Thanks!

@samfeder

This comment has been minimized.

Copy link

samfeder commented Jul 25, 2018

You're the man.

@vinitX

This comment has been minimized.

Copy link

vinitX commented Jul 28, 2018

Thanks!

@yosunpeng

This comment has been minimized.

Copy link

yosunpeng commented Aug 4, 2018

Thinks!

@msyinmei

This comment has been minimized.

Copy link

msyinmei commented Aug 4, 2018

Thank you!

@Yenthe666

This comment has been minimized.

Copy link

Yenthe666 commented Aug 7, 2018

Saved me too, thank you 👍

@WasabiWarehouse

This comment has been minimized.

Copy link

WasabiWarehouse commented Aug 15, 2018

Legend

@tigerneil

This comment has been minimized.

Copy link

tigerneil commented Aug 22, 2018

cool

@yuehernkang

This comment has been minimized.

Copy link

yuehernkang commented Aug 28, 2018

thanks!

@jedgarpark

This comment has been minimized.

Copy link

jedgarpark commented Sep 7, 2018

Thanks!!

@ThiagoSousa

This comment has been minimized.

Copy link

ThiagoSousa commented Sep 10, 2018

Thanks!

@gitrohini

This comment has been minimized.

Copy link

gitrohini commented Sep 10, 2018

Thanks ...

@MrPeker

This comment has been minimized.

Copy link

MrPeker commented Sep 12, 2018

Thanks

@kehaus

This comment has been minimized.

Copy link

kehaus commented Sep 21, 2018

Thanks!

@coolcloud520

This comment has been minimized.

Copy link

coolcloud520 commented Oct 18, 2018

Thanks!~

@cwhiteford

This comment has been minimized.

Copy link

cwhiteford commented Oct 22, 2018

Worked! Thanks!

@floweedacious

This comment has been minimized.

Copy link

floweedacious commented Nov 6, 2018

Solved my problem! Thanks!

@tanajikamble13

This comment has been minimized.

Copy link

tanajikamble13 commented Nov 29, 2018

Solved my problem thanks

@Diandekock

This comment has been minimized.

Copy link

Diandekock commented Dec 6, 2018

Thanks!

@girigk

This comment has been minimized.

Copy link

girigk commented Dec 20, 2018

Thanks a lot. You saved my day!

@Tan-nn

This comment has been minimized.

Copy link

Tan-nn commented Dec 21, 2018

Thanks a lot. You saved my life too!

@JeffreyYun

This comment has been minimized.

Copy link

JeffreyYun commented Dec 22, 2018

Thanks!

3 similar comments
@barteksmuga

This comment has been minimized.

Copy link

barteksmuga commented Dec 29, 2018

Thanks!

@ycWang9725

This comment has been minimized.

Copy link

ycWang9725 commented Jan 3, 2019

Thanks!

@harryhorn

This comment has been minimized.

Copy link

harryhorn commented Jan 4, 2019

Thanks!

@Cicloqe

This comment has been minimized.

Copy link

Cicloqe commented Jan 15, 2019

Thank you so much!

@rajas1998

This comment has been minimized.

Copy link

rajas1998 commented Jan 29, 2019

Thanks a lot!

@luvpreet26

This comment has been minimized.

Copy link

luvpreet26 commented Feb 4, 2019

Thank you so much...it worked for me..

@emptyshells

This comment has been minimized.

Copy link

emptyshells commented Feb 5, 2019

Also, the following command appends an upgrade to six which completely gets rid of the need to keep using this ignore statement over and over again:

pip install --ignore-install six --upgrade six

I ran into the same problem when installing mock.

@DongXiaoChong

This comment has been minimized.

Copy link

DongXiaoChong commented Mar 5, 2019

tks

@nandakf

This comment has been minimized.

Copy link

nandakf commented Mar 21, 2019

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.