| Summary: | www-apps/trac-1.0.1 fails to install tracd and trac-admin executables | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Alexander Danilov <a.a.danilov> |
| Component: | Current packages | Assignee: | Gentoo Web Application Packages Maintainers <web-apps> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | floppym, mgorny |
| Priority: | Normal | Keywords: | PMASKED |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Deadline: | 2020-09-21 | ||
| Attachments: |
Build log from the working system
Build log from the reference system Output of "qlist dev-python/setuptools" on reference machine Build log from reference machine after wiping obsolete python-2.7 files |
||
|
Description
Alexander Danilov
2014-04-22 14:32:14 UTC
Created attachment 375484 [details]
Build log from the reference system
What version of dev-python/setuptools is installed on both machines? On both machines: dev-python/setuptools-0.8-r1 with PYTHON_TARGETS="python2_7 python3_3 -pypy2_0 -python2_6 -python3_2" The problem is clearly in this part: python2.7 setup.py build -b build-2.7 /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'entry_points' warnings.warn(msg) /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'extras_require' warnings.warn(msg) /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires' warnings.warn(msg) /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe' warnings.warn(msg) /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite' warnings.warn(msg) This indicates that your python install isn't picking up on setuptools correctly. Perhaps you should try running python-updater. Already tried python-updater: dodo ~ # python-updater -v * Starting Python Updater... * Main active version of Python: 2.7 * Active version of Python 2: 2.7 * Active version of Python 3: 3.3 * Globally supported Python ABIs in installed repositories: * gentoo: 2.4 2.5 2.6 2.7 3.1 3.2 3.3 2.5-jython 2.7-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0 * local: 2.4 2.5 2.6 2.7 3.1 3.2 3.3 2.5-jython 2.7-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0 * Check "manual" enabled. * Check "need_rebuild" enabled. * Check "pylibdir" enabled. * Check "PYTHON_ABIS" enabled. * Check "shared_linking" enabled. * Check "static_linking" enabled. * No packages need to be reinstalled. What does "qlist dev-python/setuptools" show? Attach the output please. Created attachment 375490 [details]
Output of "qlist dev-python/setuptools" on reference machine
Well, looking at trac's setup.py, it has plain: from setuptools import setup, find_packages so it shouldn't ever fallback to plain distutils. @Alexander: did you do anything uncommon to this system lately? Have you ever used 'pip' or 'easy_install' as root? Do you have PYTHONPATH set? PYTHONPATH is not set. I believe I have used easy_install about a year ago, specificaly for one of trac plugins. Trac was fully functional until I tried to reinstall it today. Ok, it looks I kind of resolved my problem. Following your hint about manual easy_install, I managed to locate several outdated files in /usr/lib64/python2.7/site-packages: -rw-r--r-- 1 root root 370 Feb 14 2013 easy-install.pth -rw-r--r-- 1 root root 144 Feb 14 2013 setuptools-0.6c11-py2.7.egg-info -rw-r--r-- 1 root root 30 Feb 14 2013 setuptools.pth None of the installed packages claimed these files. I moved them away from /usr/lib64/python2.7/site-packages, and tried "emerge -1 www-apps/trac". It finished nicely with no warning lines in build log. At least trac-admin and tracd binaries are in place, though the reinstalled package now lacks localization files, which were in package from different machine: /usr/lib64/python2.7/site-packages/trac/htdocs/js/messages/* /usr/lib64/python2.7/site-packages/trac/locale/* I am not sure if this behavior is machine specific, or my python environment is still broken in some way. At the moment www-apps/trac looks operational at the reference machine. Created attachment 375528 [details]
Build log from reference machine after wiping obsolete python-2.7 files
package removed. |