[bugs:#1654] Non-fatal error starting interwiki.py in Windows
Status: open
Created: Mon Aug 19, 2013 11:05 AM UTC by André Malafaya Baptista
Last Updated: Mon Aug 19, 2013 11:05 AM UTC
Owner: nobody
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
Sent from sourceforge.net because Pywikipedia-bugs@lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.