Ask Your Question
0

Error: No available formula with the name "openstacksdk"

asked 2017-08-31 07:15:17 -0500

liaodalin19903 gravatar image

From the openstacksdk install doc, I use :

 sudo pip install openstacksdk

I will get the Operation not permitted error:

...
Found existing installation: six 1.4.1
    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-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 778, in install
    requirement.uninstall(auto_confirm=True)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 754, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py", line 115, in remove
    renames(path, new_path)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/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-Z66XCg-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

And I refer to this post:

I use brew to install it, get this error:

...
==> Deleted Formulae
go-gui                                     kafka@0.80                                 phantomjs@1.92                             phantomjs@1.98

Error: No available formula with the name "openstacksdk" 
==> Searching for a previously deleted formula...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.

Which friend can help with that?

My operation system is : macOS Sierra 10.12.6

edit retag flag offensive close merge delete

Comments

In my experience, setting up macOs to do OpenStack development is more trouble than it is worth. Getting yourself a virtual machine running Ubuntu 16.04 will probably be much easier, either using something like virtualbox on your mac locally or in some cloud.

j-harbott gravatar imagej-harbott ( 2017-08-31 07:47:07 -0500 )edit

@j-harbott I just want to develop a new dashbord.

liaodalin19903 gravatar imageliaodalin19903 ( 2017-08-31 22:21:59 -0500 )edit

1 answer

Sort by ┬╗ oldest newest most voted
0

answered 2017-08-31 09:57:13 -0500

amotoki gravatar image

This is not a problem specific to openstacksdk. This is caused due to MacOSX file permission. The easiest solution would be to use virtualenv. If you really want to install it to your MacOSX environment globally, it is better to search information around 'six' and MacOSX.

edit flag offensive delete link more

Comments

https://stackoverflow.com/questions/3... might help you, but I would suggest to check what happens carefully when doing it (especially if use pip install --ignore-installed six).

amotoki gravatar imageamotoki ( 2017-08-31 09:58:58 -0500 )edit

formula is a terminology used in brew. Did you really run "pip install openstacksdk"? It looks better to check your command line again.

amotoki gravatar imageamotoki ( 2017-08-31 10:01:44 -0500 )edit

@amotoki I have saw this post. it do not work for me. I will try to use the virtualenv.

liaodalin19903 gravatar imageliaodalin19903 ( 2017-08-31 22:23:18 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-08-31 07:15:17 -0500

Seen: 1,097 times

Last updated: Aug 31 '17