Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: invalid literal for int() with base 10: 'rc0' #7

Closed
za opened this issue Jul 1, 2014 · 1 comment
Closed

ValueError: invalid literal for int() with base 10: 'rc0' #7

za opened this issue Jul 1, 2014 · 1 comment

Comments

@za
Copy link

za commented Jul 1, 2014

Hello,

I am installing gitup at Debian 7 stable and found this error

za@github:~/$ gitup planpin
gitup: the git-repo-updater

Directory "/home/za/github/planpin" is a git repository:
    planpin:
        Fetching originTraceback (most recent call last):
  File "/usr/local/bin/gitup", line 9, in <module>
    load_entry_point('gitup==0.2.2', 'console_scripts', 'gitup')()
  File "build/bdist.linux-i686/egg/gitup/script.py", line 90, in run
  File "build/bdist.linux-i686/egg/gitup/script.py", line 82, in main
  File "build/bdist.linux-i686/egg/gitup/update.py", line 288, in update_directories
  File "build/bdist.linux-i686/egg/gitup/update.py", line 274, in _update_directory
  File "build/bdist.linux-i686/egg/gitup/update.py", line 231, in _update_repository
  File "build/bdist.linux-i686/egg/gitup/update.py", line 90, in _fetch_remotes
  File "/usr/local/lib/python2.7/dist-packages/GitPython-0.3.2.RC1-py2.7.egg/git/remote.py", line 591, in fetch
    kwargs = add_progress(kwargs, self.repo.git, progress)
  File "/usr/local/lib/python2.7/dist-packages/GitPython-0.3.2.RC1-py2.7.egg/git/remote.py", line 79, in add_progress
    v = git.version_info
  File "/usr/local/lib/python2.7/dist-packages/GitPython-0.3.2.RC1-py2.7.egg/git/cmd.py", line 250, in version_info
    return self._version_info
  File "/usr/local/lib/python2.7/dist-packages/GitPython-0.3.2.RC1-py2.7.egg/git/cmd.py", line 226, in __getattr__
    return LazyMixin.__getattr__(self, name)
  File "/usr/local/lib/python2.7/dist-packages/gitdb-0.5.4-py2.7-linux-i686.egg/gitdb/util.py", line 238, in __getattr__
    self._set_cache_(attr)
  File "/usr/local/lib/python2.7/dist-packages/GitPython-0.3.2.RC1-py2.7.egg/git/cmd.py", line 233, in _set_cache_
    self._version_info = tuple(int(n) for n in version_numbers.split('.')[:4])
  File "/usr/local/lib/python2.7/dist-packages/GitPython-0.3.2.RC1-py2.7.egg/git/cmd.py", line 233, in <genexpr>
    self._version_info = tuple(int(n) for n in version_numbers.split('.')[:4])
ValueError: invalid literal for int() with base 10: 'rc0'
@earwig
Copy link
Owner

earwig commented Jul 1, 2014

Hi. This looks like a bug in GitPython involving your version of git.

I found gitpython-developers/GitPython#123, which is the same thing. Seeing as that issue's been open for almost nine months, I wouldn't wait around for a fix. If it's possible to upgrade your git to a release without a RC tag, that would solve the problem.

Otherwise, I'm not sure what help to offer. A workaround for the error in my code would be a very ugly and unreliable monkey patch, so I won't attempt it. Sorry.

@earwig earwig closed this as completed Jul 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants