Last modified: 2014-09-09 08:41:43 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 T57128, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55128 - Non-fatal error starting interwiki.py in Windows
Non-fatal error starting interwiki.py in Windows
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
compat-(1.0)
All All
: Lowest minor
: ---
Assigned To: John Mark Vandenberg
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:29 UTC by Kunal Mehta (Legoktm)
Modified: 2014-09-09 08:41 UTC (History)
4 users (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:29:19 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1654/
Reported by: malafaya
Created on: 2013-08-19 11:05:10.022000
Subject: Non-fatal error starting interwiki.py in Windows
Original description:
It seems that some changes were made to version.py because of git. Under Windows at least, now git.exe seems to be required to be in the PATH.
But, even with git.exe in the PATH, I always get the following error on startup:

'%an' is not recognized as an internal or external command,
operable program or batch file.

It seems to be related to line 122 of version.py, which doesn't seem to work under Windows:

    info = subprocess.Popen("git log --pretty=format:'%ad|%an|%h|%H|%d' --abbrev-commit --date=iso -1 | cat -",
                            shell=True,
                            stdout=subprocess.PIPE).stdout.read()

Another problem is that everytime I launch a script, a git.exe process runs and gets stuck. After some few instances, the interwiki.py scripts block and I have to start killing git's.
And, BTW, I don't always have access to the git repository when running scripts (due to some block rules here)


D:\Work\pywikipedia>version.py
'%an' is not recognized as an internal or external command,
operable program or batch file.
Pywikipedia wikipedia.py (r-1 (unknown), 976a310, 2013/08/19, 11:40:07, OUTDATED
)
Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:29:21 UTC
first problem has been solved with https://gerrit.wikimedia.org/r/82086
Comment 2 Amir Ladsgroup 2013-10-27 17:20:21 UTC
are you still facing this problem?
Comment 3 Malafaya 2013-10-27 21:23:05 UTC
The serious part of it is solved.
The only thing still occuring is that git.exe is still launched (or at least tried to be launched) for version check on every startup with any bot script.
My specific problem is that I don't always have access to the git repo when I run bot scripts, causing a significant delay on startup (or an error if I decide to remove git.exe from PATH).
Comment 4 Malafaya 2013-10-27 21:24:21 UTC
But in what concerns me I find it acceptable to close this issue at this time if you also find so.
Comment 5 Amir Ladsgroup 2013-10-27 21:30:01 UTC
Thank you for your response. I changed priority to lowest but I didn't close it because in my view it's still bug even a little harmless bug

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


Navigation
Links