Skip to content

AttributeError: 'GitUp' object has no attribute 'git' #7

@martin-ueding

Description

@martin-ueding

I updated to v1.1.0 via

pip install --user -U git-up 

and just tried it out in my repo. I got the following:

Traceback (most recent call last):
  File "/home/mu/.local/bin/git-up", line 9, in <module>
    load_entry_point('git-up==1.1.0', 'console_scripts', 'git-up')()
  File "/home/mu/.local/bin/gitup.py", line 552, in run
    gitup = GitUp()
  File "/home/mu/.local/bin/gitup.py", line 110, in __init__
    self.load_config()
  File "/home/mu/.local/bin/gitup.py", line 408, in load_config
    value = self.config(key)
  File "/home/mu/.local/bin/gitup.py", line 423, in config
    return self.git.config('git-up.{0}'.format(key))
AttributeError: 'GitUp' object has no attribute 'git'

Am I missing a dependency or so?

Activity

msiemens

msiemens commented on Oct 7, 2013

@msiemens
Owner

Strange, I've tested it and it worked. Gonna investigate right now.

added a commit that references this issue on Oct 7, 2013
91155b8
msiemens

msiemens commented on Oct 7, 2013

@msiemens
Owner

Please try re-installing git-up. If pip doesn't want to, please report here and I'll release the fix as a new version (now I've just updated v1.1.0)

martin-ueding

martin-ueding commented on Oct 7, 2013

@martin-ueding
Author

pip does not update since it has the current version. A new version would probably be easier.

msiemens

msiemens commented on Oct 7, 2013

@msiemens
Owner

Okay, new version should be released in some minutes.

msiemens

msiemens commented on Oct 7, 2013

@msiemens
Owner

So, v1.1.1 is released. I hope, all problems are fixed, finally.

martin-ueding

martin-ueding commented on Oct 7, 2013

@martin-ueding
Author

Okay, I did pip install --user -U git-up, it updated, but git-up --version gives me:

GitUp version is: v1.1.0
Recent version is: v1.1.1
Run 'pip install -U git-up' to get the update.

In the /home/mu/.local/bin/git-up, I see a reference to 1.1.0, is that correct?

msiemens

msiemens commented on Oct 7, 2013

@msiemens
Owner

No, there is still something messed up. I updated using the same command and got GitUp version is: v1.1.1. What is the output of pip install --user -U git-up? In addition, what does pip show git-up say?

martin-ueding

martin-ueding commented on Oct 7, 2013

@martin-ueding
Author

Output of mu:~ pip install --user -U git-up:

Downloading/unpacking git-up from https://pypi.python.org/packages/source/g/git-up/git-up-1.1.1.zip#md5=22452bb518f519f6c01f1e46f6669d59
  Running setup.py egg_info for package git-up

Requirement already up-to-date: GitPython==0.3.2.RC1 in ./.local/lib/python2.7/site-packages (from git-up)
Requirement already up-to-date: colorama==0.2.5 in ./.local/lib/python2.7/site-packages (from git-up)
Requirement already up-to-date: termcolor==1.1.0 in ./.local/lib/python2.7/site-packages (from git-up)
Requirement already up-to-date: docopt==0.6.1 in ./.local/lib/python2.7/site-packages (from git-up)
Requirement already up-to-date: gitdb>=0.5.1 in ./.local/lib/python2.7/site-packages (from GitPython==0.3.2.RC1->git-up)
Requirement already up-to-date: async>=0.6.1 in ./.local/lib/python2.7/site-packages (from gitdb>=0.5.1->GitPython==0.3.2.RC1->git-up)
Requirement already up-to-date: smmap>=0.8.0 in ./.local/lib/python2.7/site-packages (from gitdb>=0.5.1->GitPython==0.3.2.RC1->git-up)
Installing collected packages: git-up
  Found existing installation: git-up 1.1.0
    Uninstalling git-up:
      Successfully uninstalled git-up
  Running setup.py install for git-up

    changing mode of /home/mu/.local/bin/gitup.py to 775
    Installing git-up script to /home/mu/.local/bin
Successfully installed git-up
Cleaning up...

Output of pip show git-up:

---
Name: git-up
Version: 1.1.0
Location: /home/mu/.local/lib/python2.7/site-packages
Requires: GitPython, colorama, termcolor, docopt
msiemens

msiemens commented on Oct 7, 2013

@msiemens
Owner

Seems like you're using an old version of pip. Older versions of pip are known for funky behaviour when trying to upgrade packages (see #4 a similar problem). Could you try removing pip's build dir (/tmp/pip-build-*, ~/.pip, ~/tmp/pip-build-*) and then re-run the install-command?

martin-ueding

martin-ueding commented on Oct 7, 2013

@martin-ueding
Author

I rebooted the computer, and tried it again. It works now, and git up

works for my project without any remotes. Thank you for your work!

http://martin-ueding.de/#pk_campaign=Email

msiemens

msiemens commented on Oct 7, 2013

@msiemens
Owner

No problem, you're welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @martin-ueding@msiemens

        Issue actions

          AttributeError: 'GitUp' object has no attribute 'git' · Issue #7 · msiemens/PyGitUp