Skip to content

Error while installing GitPython #58043

Closed
@ronak2303

Description

@ronak2303

Description of Issue

i am trying to install GitPython for to handle my git repository. i also have tried installing python3 and pip3 but still same error.
error i am getting as below.

      ID: GitPython
Function: pip.installed
    Name: GitPython < 2.0.9
  Result: False
 Comment: An exception occurred in this state: Traceback (most recent call last):
            File "/usr/lib/python2.7/site-packages/salt/state.py", line 1933, in call
              **cdata['kwargs'])
            File "/usr/lib/python2.7/site-packages/salt/loader.py", line 1951, in wrapper
              return f(*args, **kwargs)
            File "/usr/lib/python2.7/site-packages/salt/states/pip_state.py", line 812, in installed
              **kwargs)
            File "/usr/lib/python2.7/site-packages/salt/states/pip_state.py", line 314, in _check_if_installed
              for version in reversed(available_versions):
          TypeError: argument to reversed() must be a sequence
 Started: 14:36:48.336599
Duration: 368473.146 ms
 Changes:

Setup

i have top.sls with below code.
base:
'wh-*':
- gitsetup

i have my gitsetup.sls as below.
git:
pkg.installed

GitPython:
pip.installed:
- name: GitPython < 2.0.9
- proxy: http://<>
- upgrade: True

Steps to Reproduce Issue

above is the code i have and its keep failing.

Versions Report

(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)

Salt Version:
Salt: 2019.2.4

Dependency Versions:
cffi: 1.14.1
cherrypy: unknown
dateutil: 1.5
docker-py: Not Installed
gitdb: 4.0.5
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.21.1
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: 2.20
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.5 (default, Jun 11 2019, 14:33:56)
python-gnupg: Not Installed
PyYAML: 3.10
PyZMQ: 15.3.0
RAET: Not Installed
smmap: 3.0.4
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4

System Versions:
dist: redhat 7.7 Maipo
locale: UTF-8
machine: x86_64
release: 3.10.0-1062.4.3.el7.x86_64
system: Linux
version: Red Hat Enterprise Linux Server 7.7 Maipo

all master and minion on same version

Master:
2019.2.4
Up to date:
----------
minion1:
2019.2.4
minion2:
2019.2.4
minon3: -- this is master as well.
2019.2.4

Metadata

Metadata

Assignees

Labels

cannot-reproducecannot be replicated with info/context provided

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions