aws / git-remote-codecommit

An implementation of Git Remote Helper that makes it easier to interact with AWS CodeCommit
Apache License 2.0
271 stars 38 forks source link

Failed to install git-remote-codecommit 1.0 in virtual env #5

Closed samuelkarp closed 4 years ago

samuelkarp commented 4 years ago

Hello!

I've tried to install git-remote-codecommit using pipx so that it has its own separate virtual env. However, I get this error when I try to install:

$ pipx install git-remote-codecommit
    ERROR: Command errored out with exit status 1:
     command: /home/admin/.local/pipx/venvs/git-remote-codecommit/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-cxeu1jzn/git-remote-codecommit/setup.py'"'"'; __file__='"'"'/tmp/pip-install-cxeu1jzn/git-remote-codecommit/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-cxeu1jzn/git-remote-codecommit/pip-egg-info
         cwd: /tmp/pip-install-cxeu1jzn/git-remote-codecommit/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-cxeu1jzn/git-remote-codecommit/setup.py", line 9, in <module>
        import six
    ModuleNotFoundError: No module named 'six'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

It looks like the dependency on six was introduced in this commit, but that dependency is not reflected in the requirements.txt. I'm not a Python developer, so maybe I'm missing something, but I'd expect that dependency to be reflected there.

I was able to get around this by installing the 0.5 version of git-remote-codecommit.

Thanks! Sam

dytoto commented 4 years ago

We removed six from our dependency list. This should work now.

samuelkarp commented 4 years ago

This seems to work now, thanks!