RansomTime created this task. RansomTime added a subscriber: RansomTime. RansomTime added a project: pywikibot-compat. Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION Downloading compact from http://tools.wmflabs.org/pywikibot/ - the .zip doesn't contain any data in .git/refs/heads- which pybot requires to determine the version.
The following error occurs when I run generate-family-file.py on a newly unzipped zip from tools.wmflabs
``` D:\Pybot>generate_family_file.py WARNING: Running on Windows and transliteration_target is not set. Please see http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Windows Traceback (most recent call last): File "D:\Pybot\generate_family_file.py", line 50, in <module> import wikipedia File "D:\Pybot\wikipedia.py", line 6062, in <module> versionrev=(version.getversiondict()["rev"]) File "D:\Pybot\pywikibot\version.py", line 70, in getversiondict (tag, rev, date, hsh) = getversion_git(_program_dir) File "D:\Pybot\pywikibot\version.py", line 188, in getversion_git hsh = open(os.path.join(_program_dir, '.git/refs/heads/master'), 'r').read() .strip(" \n") IOError: [Errno 2] No such file or directory: 'D:\Pybot\.git/refs/heads/master '
D:\Pybot.git\refs\heads>ls -l total 0 ```
TASK DETAIL https://phabricator.wikimedia.org/T87422
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: RansomTime Cc: pywikipedia-bugs, Aklapper, RansomTime, Anshoe
jayvdb added subscribers: jayvdb, Ladsgroup. jayvdb added a comment.
This is definitely compat only, nightly only, and it only occurs when git (or git.cmd) isnt found. in the version detection algorithm, it git isnt found, it tries to use the master ref.
.git/refs/heads/ is also empty in core nightlies, but core's version.py doesnt try to use the refs this way.
@ladsgroup , is the 'master' ref removed in your tarball size optimisations?
TASK DETAIL https://phabricator.wikimedia.org/T87422
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Ladsgroup, jayvdb, Aklapper, RansomTime, Anshoe, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org