WebFaction
Community site: login faq

I'm following the Webfaction instructions to install Mercurial, it says CentOS7's default python version is 2.7 so I'm using the command 'easy_install-2.7 Mercurial'

the installation starts but soon fails, similar results with trying python 2.5 and 2.6

any ideas?

Running mercurial-3.7.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-88LgAl/mercurial-3.7.1/egg-dist-tmp-nJBbs_

Traceback (most recent call last): File "/usr/bin/easy_install-2.7", line 9, in <module> load_entry_point('setuptools==2.1', 'console_scripts', 'easy_install-2.7')() File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1909, in main with_ei_usage(lambda: File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1896, in with_ei_usage return f() File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1913, in <lambda> distclass=DistributionWithoutHelpCommands, **kw File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 358, in run self.easy_install(spec, not self.no_deps) File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 593, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 623, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 809, in install_eggs return self.build_and_install(setup_script, setup_base) File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1015, in build_and_install self.run_setup(setup_script, setup_base, args) File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1000, in run_setup run_setup(setup_script, args) File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 50, in run_setup lambda: execfile( File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 100, in run return func() File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 52, in <lambda> {'file':setup_script, 'name':'main'} File "setup.py", line 707, in <module> File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 185, in run cmd = self.call_command('install_lib', warn_dir=0) File "/usr/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 171, in call_command self.run_command(cmdname) File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setup.py", line 450, in run File "/usr/lib64/python2.7/distutils/command/install_lib.py", line 92, in run self.build() File "/usr/lib64/python2.7/distutils/command/install_lib.py", line 109, in build self.run_command('build_py') File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/lib64/python2.7/distutils/command/build_py.py", line 93, in run self.build_packages() File "/usr/lib64/python2.7/distutils/command/build_py.py", line 372, in build_packages self.build_module(module, module_file, package) File "/usr/lib64/python2.7/distutils/command/build_py.py", line 341, in build_module return self.copy_file(module_file, outfile, preserve_mode=0) File "setup.py", line 347, in copy_file TypeError: 'NoneType' object is not iterable

asked 07 Feb '16, 08:27

ehw
2115
accept rate: 100%


ok that was an easy one, I installed PIP and used that to install Mercurial, no problems that way

easy_install-2.7 pip

pip2.7 install --user --upgrade Mercurial

permanent link

answered 07 Feb '16, 08:34

ehw
2115
accept rate: 100%

edited 07 Feb '16, 08:35

Thanks for this, I just moved from a 32-bit server to a 64-bit server, and had this issue when trying to install mercurial from the webfaction docs. I think they might need updating with this nugget

(03 Jun '17, 20:50) stephendwolff
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×337
×14

question asked: 07 Feb '16, 08:27

question was seen: 2,741 times

last updated: 03 Jun '17, 20:50

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM