Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1661/
Reported by: mineoo
Created on: 2013-08-29 10:06:12.502000
Subject: Version.py output differs if pywikibot is installed
Original description:
(bot-venv)mineo@rika:~/pywikipediabot$ pip uninstall Pywikipediabot Uninstalling Pywikipediabot: /home/mineo/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg Proceed (y/n)? y Successfully uninstalled Pywikipediabot (bot-venv)mineo@rika:~/pywikipediabot$ PYTHONPATH=. python scripts/version.py Pywikibot: [https] git/pywikibot/core (r1995, fa7a248, 2013/08/28, 22:33:44, ok) Release version: 2.0b1 Python: 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) [GCC 4.4.3] unicode test: ok (bot-venv)mineo@rika:~/pywikipediabot$ python setup.py install [ snip ] (bot-venv)mineo@rika:~/pywikipediabot$ PYTHONPATH=. python scripts/version.py Pywikibot: pywikibot/__init__.py (r-1 (unknown), 414550d, 2013/08/29, 10:00:14, OUTDATED) Release version: 2.0b1 Python: 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) [GCC 4.4.3] unicode test: ok (bot-venv)mineo@rika:~/pywikipediabot$ cd scripts/ (bot-venv)mineo@rika:~/pywikipediabot/scripts$ python version.py Pywikibot: pywikibot/__init__.py (r-1 (unknown), 414550d, 2013/08/29, 10:00:14, OUTDATED) Release version: 2.0b1 Python: 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) [GCC 4.4.3] unicode test: ok (bot-venv)mineo@rika:~/pywikipediabot/scripts$ cd ~/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg/scripts/ (bot-venv)mineo@rika:~/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg/scripts$ python version.py Pywikibot: pywikibot/__init__.py (r-1 (unknown), 414550d, 2013/08/29, 10:00:14, OUTDATED) Release version: 2.0b1 Python: 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) [GCC 4.4.3] unicode test: ok (bot-venv)mineo@rika:~/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg/scripts$ cd .. (bot-venv)mineo@rika:~/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg$ PYTHONPATH=. python scripts/version.py Pywikibot: pywikibot/__init__.py (r-1 (unknown), 414550d, 2013/08/29, 10:00:14, OUTDATED) Release version: 2.0b1 Python: 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) [GCC 4.4.3] unicode test: ok
It seems like you either get a commit identifier (fa7a248) or the hash of a git object (414550d) as the version number.
Version: core-(2.0)
Severity: normal
See Also:
https://sourceforge.net/p/pywikipediabot/bugs/1661