install_rally.sh: ERROR: Failed to install the latest version of Python 'setuptools'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The environment is ubuntu 16.04 and installing rally with -v switch into a virtualenv. We have this setup running nigthly without any issue, but it started to fail on Dec 4th (don't know if it's a coincidence but the python setuptools released a new version that date https:/
Below you can see the output of the installer script with the error (I tried to pin to older rally versions without success)
15:40:15 + ./install_rally.sh -v -y --branch 0.4.0
15:40:16 Installing Rally virtualenv in directory '/home/
15:40:16 --2016-12-05 14:40:15-- https:/
15:40:16 Resolving raw.github.com (raw.github.com)... 151.101.100.133
15:40:16 Connecting to raw.github.com (raw.github.
15:40:16 HTTP request sent, awaiting response... 301 Moved Permanently
15:40:16 Location: https:/
15:40:16 --2016-12-05 14:40:16-- https:/
15:40:17 Resolving raw.githubuserc
15:40:17 Connecting to raw.githubuserc
15:40:17 HTTP request sent, awaiting response... 200 OK
15:40:17 Length: 115013 (112K) [text/plain]
15:40:17 Saving to: ‘/home/
15:40:17
15:40:17 0K .......... .......... .......... .......... .......... 44% 938K 0s
15:40:17 50K .......... .......... .......... .......... .......... 89% 1.84M 0s
15:40:17 100K .......... .. 100% 32.3M=0.08s
15:40:17
15:40:17 2016-12-05 14:40:17 (1.37 MB/s) - ‘/home/
15:40:17
15:40:17 Already using interpreter /usr/bin/python
15:40:17 Creating /home/jenkins/
15:40:17 Symlinking Python bootstrap modules
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Ignoring built-in bootstrap module: posix
15:40:17 Symlinking /home/jenkins/
15:40:17 Cannot import bootstrap module: nt
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Ignoring built-in bootstrap module: zlib
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Creating /home/jenkins/
15:40:17 Writing /home/jenkins/
15:40:17 Writing /home/jenkins/
15:40:17 Writing /home/jenkins/
15:40:17 Creating parent directories for /home/jenkins/
15:40:17 Symlinking /home/jenkins/
15:40:17 Creating /home/jenkins/
15:40:17 New python executable in /home/jenkins/
15:40:17 Changed mode of /home/jenkins/
15:40:17 Testing executable with /home/jenkins/
15:40:17 Got sys.prefix result: u'/home/
15:40:17 Creating /home/jenkins/
15:40:17 Writing /home/jenkins/
15:40:17 Writing /home/jenkins/
15:40:17 No setuptools egg found; downloading
15:40:17 Installing setuptools...
15:40:22 Downloading http://
15:40:22 Searching for setuptools
15:40:22 Downloading https:/
15:40:22 Running setuptools-
15:40:22 /usr/lib/
15:40:22 warnings.warn(msg)
15:40:22 Traceback (most recent call last):
15:40:22 File "<string>", line 278, in <module>
15:40:22 File "<string>", line 213, in main
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/usr/lib/
15:40:22 dist.run_commands()
15:40:22 File "/usr/lib/
15:40:22 self.run_
15:40:22 File "/usr/lib/
15:40:22 cmd_obj.run()
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "setup.py", line 181, in <module>
15:40:22 File "/usr/lib/
15:40:22 _setup_distribution = dist = klass(attrs)
15:40:22 File "/jenkins/
15:40:22 File "/usr/lib/
15:40:22 self.finalize_
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 ImportError: <module 'setuptools.dist' from '/jenkins/
15:40:22 Complete output from command /home/jenkins/
15:40:22 \"\"\"Bootstra.
15:40:22
15:40:22
15:40:22
15:40:22
15:40:22
15:40:22
15:40:22 " --always-copy -U setuptools:
15:40:22 Downloading http://
15:40:22 Searching for setuptools
15:40:22 Reading http://
15:40:22 Best match: setuptools 30.2.0
15:40:22 Downloading https:/
15:40:22 Processing setuptools-
15:40:22 Running setuptools-
15:40:22 /usr/lib/
15:40:22 warnings.warn(msg)
15:40:22 Traceback (most recent call last):
15:40:22 File "<string>", line 278, in <module>
15:40:22 File "<string>", line 213, in main
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/usr/lib/
15:40:22 dist.run_commands()
15:40:22 File "/usr/lib/
15:40:22 self.run_
15:40:22 File "/usr/lib/
15:40:22 cmd_obj.run()
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 File "setup.py", line 181, in <module>
15:40:22 File "/usr/lib/
15:40:22 _setup_distribution = dist = klass(attrs)
15:40:22 File "/jenkins/
15:40:22 File "/usr/lib/
15:40:22 self.finalize_
15:40:22 File "/jenkins/
15:40:22 File "/jenkins/
15:40:22 ImportError: <module 'setuptools.dist' from '/jenkins/
15:40:22 -------
15:40:22 ...Installing setuptools...done.
15:40:22 Traceback (most recent call last):
15:40:22 File "/home/
15:40:22 main()
15:40:22 File "/home/
15:40:22 no_pip=
15:40:22 File "/home/
15:40:22 search_
15:40:22 File "/home/
15:40:22 search_
15:40:22 File "/home/
15:40:22 cwd=cwd)
15:40:22 File "/home/
15:40:22 % (cmd_desc, proc.returncode))
15:40:22 OSError: Command /home/jenkins/
15:40:22 \"\"\"Bootstra.
15:40:22
15:40:22
15:40:22
15:40:22
15:40:22
15:40:22
15:40:22 " --always-copy -U setuptools failed with error code 1
15:40:22 ./install_rally.sh: line 425: bin/activate: No such file or directory
15:40:22 --2016-12-05 14:40:22-- https:/
15:40:22 Resolving bootstrap.pypa.io (bootstrap.
15:40:22 Connecting to bootstrap.pypa.io (bootstrap.
15:40:22 HTTP request sent, awaiting response... 200 OK
15:40:22 Length: 12746 (12K) [text/x-python]
15:40:22 Saving to: ‘STDOUT’
15:40:22
15:40:22 0K .......... .. 100% 1.30M=0.009s
15:40:22
15:40:22 2016-12-05 14:40:22 (1.30 MB/s) - written to stdout [12746/12746]
15:40:22
15:40:23 Downloading https:/
15:40:24 Extracting in /tmp/tmpZ5Sd_K
15:40:24 Now working in /tmp/tmpZ5Sd_
15:40:24 Installing Setuptools
15:40:26 running install
15:40:26 error: can't create or remove files in install directory
15:40:26
15:40:26 The following error occurred while trying to add or remove files in the
15:40:26 installation directory:
15:40:26
15:40:26 [Errno 13] Permission denied: '/usr/local/
15:40:26
15:40:26 The installation directory you specified (via --install-dir, --prefix, or
15:40:26 the distutils default setting) was:
15:40:26
15:40:26 /usr/local/
15:40:26
15:40:26 Perhaps your account does not have write access to this directory? If the
15:40:26 installation directory is a system-owned directory, you may need to sign in
15:40:26 as the administrator or "root" account. If you do not have administrative
15:40:26 access to this machine, you may wish to choose a different installation
15:40:26 directory, preferably one that is listed in your PYTHONPATH environment
15:40:26 variable.
15:40:26
15:40:26 For information on other options, you may wish to consult the
15:40:26 documentation at:
15:40:26
15:40:26 https:/
15:40:26
15:40:26 Please make the appropriate changes for your system and try again.
15:40:26
15:40:26 Something went wrong during the installation.
15:40:26 See the error message above.
15:40:26 =======
15:40:26 install_rally.sh: ERROR: Failed to install the latest version of Python 'setuptools'
15:40:26 =======
15:40:26
15:40:26
15:40:26 The required Python package setuptools could not be installed.
15:40:26
15:40:26
15:40:26 If the above does not help you resolve the issue, please contact the
15:40:26 Rally team by sending an email to the OpenStack mailing list
15:40:26 <email address hidden>. Include the full output of this
15:40:26 script to help us identifying the problem.
15:40:26
Changed in rally: | |
status: | New → Fix Released |
You see others complaining about setuptools 30.2.0. /github. com/pypa/ pip/issues/ 4104
https:/
The workaround there is to simply use 30.1.0