Last modified: 2014-03-17 15:24:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57126, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55126 - Version.py output differs if pywikibot is installed
Version.py output differs if pywikibot is installed
Status: RESOLVED WORKSFORME
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:28 UTC by Kunal Mehta (Legoktm)
Modified: 2014-03-17 15:24 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:28:56 UTC
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.
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:28:59 UTC
- **Group**: confirmed --> rewrite
Comment 2 xqt 2014-02-10 16:41:04 UTC
Should has been fixed with https://gerrit.wikimedia.org/r/#/c/86375/

could someone confirm whether this bug still exists?
Comment 3 xqt 2014-03-17 15:24:07 UTC
unconfirmed after the alst changes of version.py

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links