Last modified: 2014-02-23 19:50:16 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 T63816, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61816 - No git doesn't mean it is Windows
No git doesn't mean it is Windows
Status: RESOLVED DUPLICATE of bug 61231
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: 2014-02-23 03:29 UTC by Sorawee Porncharoenwase
Modified: 2014-02-23 19:50 UTC (History)
2 users (show)

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


Attachments

Description Sorawee Porncharoenwase 2014-02-23 03:29:41 UTC
I tried to run pywikibot in tools web server and got an error:

  File "/shared/pywikipedia/core/pywikibot/version.py", line 134, in getversion_git
    except WindowsError:
NameError: global name 'WindowsError' is not defined

The problem comes from:

   cmd = 'git'
    try:
        subprocess.Popen([cmd], stdout=subprocess.PIPE).communicate()
    except WindowsError:

The framework tries to call git, but /usr/bin is not in $PATH in tools web server; consequently, the calling fails. The error falls to except block, and obviously, tools server is not Windows; WindowsError is not defined, making NameError.
Comment 1 Mpaa 2014-02-23 19:50:16 UTC

*** This bug has been marked as a duplicate of bug 61231 ***

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


Navigation
Links