[root@host105 plugins]# tracd --version tracd 1.2 [root@host105 plugins]# easy_install --version setuptools 30.2.0 from /usr/lib/python2.6/site-packages (Python 2.6)
It looks as if it has been installed, but now Trac can't access it. 在 2016年12月6日星期二 UTC+8上午10:58:33,RjOllos写道: > > > > On Monday, December 5, 2016 at 6:47:28 PM UTC-8, Mingxing Tian wrote: >> >> [root@host105 tmp]# pip install -U Trac >> DEPRECATION: Python 2.6 is no longer supported by the Python core team, >> please upgrade your Python. A future version of pip will drop support for >> Python 2.6 >> /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: >> >> SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject >> Name Indication) extension to TLS is not available on this platform. This >> may cause the server to present an incorrect TLS certificate, which can >> cause validation failures. You can upgrade to a newer version of Python to >> solve this. For more information, see >> https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning. >> SNIMissingWarning >> /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: >> >> InsecurePlatformWarning: A true SSLContext object is not available. This >> prevents urllib3 from configuring SSL appropriately and may cause certain >> SSL connections to fail. You can upgrade to a newer version of Python to >> solve this. For more information, see >> https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning >> . >> InsecurePlatformWarning >> Collecting Trac >> Downloading Trac-1.2-py2-none-any.whl (3.8MB) >> 100% |████████████████████████████████| 3.8MB 1.2kB/s >> Collecting setuptools>=0.6 (from Trac) >> Downloading setuptools-30.2.0-py2.py3-none-any.whl (472kB) >> 100% |████████████████████████████████| 481kB 3.5kB/s >> Requirement already up-to-date: Genshi>=0.6 in >> /usr/lib/python2.6/site-packages/Genshi-0.7-py2.6-linux-x86_64.egg (from >> Trac) >> Installing collected packages: setuptools, Trac >> Found existing installation: setuptools 21.2.0 >> Uninstalling setuptools-21.2.0: >> Successfully uninstalled setuptools-21.2.0 >> Found existing installation: Trac 1.0.13 >> Uninstalling Trac-1.0.13: >> Successfully uninstalled Trac-1.0.13 >> Successfully installed Trac-1.2 setuptools-30.2.0 >> Traceback (most recent call last): >> File "/usr/bin/pip", line 11, in <module> >> sys.exit(main()) >> File "/usr/lib/python2.6/site-packages/pip/__init__.py", line 233, in >> main >> return command.main(cmd_args) >> File "/usr/lib/python2.6/site-packages/pip/basecommand.py", line 252, >> in main >> pip_version_check(session) >> File "/usr/lib/python2.6/site-packages/pip/utils/outdated.py", line >> 102, in pip_version_check >> installed_version = get_installed_version("pip") >> File "/usr/lib/python2.6/site-packages/pip/utils/__init__.py", line >> 838, in get_installed_version >> working_set = pkg_resources.WorkingSet() >> File >> "/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", >> line 644, in __init__ >> self.add_entry(entry) >> File >> "/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", >> line 700, in add_entry >> for dist in find_distributions(entry, True): >> File >> "/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", >> line 1949, in find_eggs_in_zip >> if metadata.has_metadata('PKG-INFO'): >> File >> "/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", >> line 1463, in has_metadata >> return self.egg_info and self._has(self._fn(self.egg_info, name)) >> File >> "/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", >> line 1823, in _has >> return zip_path in self.zipinfo or zip_path in self._index() >> File >> "/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", >> line 1703, in zipinfo >> return self._zip_manifests.load(self.loader.archive) >> File >> "/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", >> line 1643, in load >> mtime = os.stat(path).st_mtime >> OSError: [Errno 2] 没有那个文件或目录: >> '/usr/lib/python2.6/site-packages/setuptools-21.2.0-py2.6.egg' >> >> >> >> There was an error in the installation process. May I have completed the >> upgrade? >> > > Do the following report the correct versions?: > > $ tracd --version > $ easy_install --version > > If they report 1.2 and 30.2, respectively, then I think you are probably > okay. > > - Ryan > > -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
