ZhangHuangbin wrote:With package "python-setuptools" installed, you should have command "easy_install" available.
Oh, wow. Clearly I know nothing of the Python eco system.
I was confused that "iRedMail Easy" and "easy_install" were the same.
I ran this:
# easy_install web.py
Searching for web.py
Best match: web.py 0.37
Adding web.py 0.37 to easy-install.pth file
Using /usr/lib/python2.7/site-packages
Processing dependencies for web.py
Finished processing dependencies for web.py
and restarted iredadmin (I'm using the Apache mod_proxy_uwsgi)
systemctl restart iredadmin
But refreshing the iredadmin page and clicking the link in the "Admin" column still shows
Given your update to the post, I tried the specifying the version.
# easy_install web.py==0.40
Searching for web.py==0.40
Reading https://pypi.python.org/simple/web.py/
Best match: web.py 0.40
Processing web.py-0.40-py2.7.egg
Adding web.py 0.40 to easy-install.pth file
Using /usr/lib/python2.7/site-packages/web.py-0.40-py2.7.egg
Processing dependencies for web.py==0.40
Searching for cheroot
Reading https://pypi.python.org/simple/cheroot/
Best match: cheroot 7.0.0
Downloading https://files.pythonhosted.org/packages/8a/07/18c73c3064e6a429084b93ed05acd51d557235ef32b72e1545ec09f30f5b/cheroot-7.0.0.tar.gz#sha256=6168371ab9aaf574ac5f75675f244bbfebf990202bf75048065e9d675b9ae719
Processing cheroot-7.0.0.tar.gz
Writing /tmp/easy_install-bAgHPo/cheroot-7.0.0/setup.cfg
Running cheroot-7.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-bAgHPo/cheroot-7.0.0/egg-dist-tmp-wU0sb6
Traceback (most recent call last):
File "/usr/bin/easy_install", line 9, in <module>
load_entry_point('setuptools==0.9.8', 'console_scripts', 'easy_install')()
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1992, in main
with_ei_usage(lambda:
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1979, in with_ei_usage
return f()
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1996, 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 380, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 623, 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 658, in install_item
self.process_distribution(spec, dists[0], deps, "Using")
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 706, in process_distribution
[requirement], self.local_index, self.easy_install
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 618, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 862, in best_match
return self.obtain(req, installer) # try and download/install
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 874, in obtain
return installer(requirement)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 623, 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 653, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 849, 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 1130, 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 1115, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 69, in run_setup
lambda: execfile(
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 120, in run
return func()
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 71, in <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 123, in <module>
File "setup.py", line 74, in read_configuration
File "setup.py", line 50, in cfg_val_to_list
TypeError: descriptor 'strip' requires a 'str' object but received a 'unicode'
# systemctl restart iredadmin
But now iredadmin does not work at all.
I found I could roll back like this.... and now the web page works, but still exhibiting the original system/logs issue.
# easy_install web.py==0.37
Searching for web.py==0.37
Best match: web.py 0.37
Removing web.py 0.40 from easy-install.pth file
Adding web.py 0.37 to easy-install.pth file
Using /usr/lib/python2.7/site-packages
Processing dependencies for web.py==0.37
Finished processing dependencies for web.py==0.37
# systemctl restart iredadmin
I'm not quite sure what the issue was with easy_install.
Thanks, Rob