Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Failing to push to gerrit

From: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
Date: Thu, 11 Sep 2014 18:31:57 +0100
On 11 September 2014 18:11, Martin Mathieson <martin.r.mathieson@xxxxxxxxxxxxxx> wrote:
Hi Graham,

I am running git inside a Cygwin shell.  I didn't notice any issues wth line-endings.

So are you using Cygwin git or Windows git? 

I cannot run git-review even to print the version.  I did manually delete the entries for git-review in the scripts and lib folders and reinstalled, but still see the following error:

$ git-review --version
Traceback (most recent call last):
  File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\Python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Python27\Scripts\git-review.exe\__main__.py", line 9, in <module>
  File "C:\Python27\lib\site-packages\git_review\cmd.py", line 1132, in main
    (os.path.split(sys.argv[0])[-1], get_version()))
  File "C:\Python27\lib\site-packages\git_review\cmd.py", line 180, in get_version
    provider = pkg_resources.get_provider(requirement)
  File "C:\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resources.py", line 197, in get_provider
  File "C:\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resources.py", line 666, in require
  File "C:\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resources.py", line 565, in resolve
pkg_resources.DistributionNotFound: git-review

mmathie2@mmathie2-WS /cygdrive/c/wireshark-git

I don't understand egg files.  At git_review\gmd.py:180 it is doing:
    provider = pkg_resources.get_provider(requirement)
The .egg file does exist, I don't know what goes wrong inside it.



Could the issue be running Windows Python and Windows git-review in the Cygwin shell (possibly with Cygwin git)?

I use Windows git for all my git\Gerrit work along with Windows Python in a PowerShell, er, shell.

Can you try running `C:\Python27\Scripts\git-review --version` in a Windows Command Prompt or PowerShell?

An egg is a Python application distribution unit, similar to a java .jar file.  See http://peak.telecommunity.com/DevCenter/PythonEggs



--
Graham Bloice