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

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

Closed
martin-ueding opened this issue Oct 7, 2013 · 11 comments
Closed

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

martin-ueding opened this issue Oct 7, 2013 · 11 comments

Comments

@martin-ueding
Copy link

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?

@msiemens
Copy link
Owner

msiemens commented Oct 7, 2013

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

@msiemens
Copy link
Owner

msiemens commented Oct 7, 2013

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
Copy link
Author

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

@msiemens
Copy link
Owner

msiemens commented Oct 7, 2013

Okay, new version should be released in some minutes.

@msiemens
Copy link
Owner

msiemens commented Oct 7, 2013

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

@martin-ueding
Copy link
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
Copy link
Owner

msiemens commented Oct 7, 2013

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
Copy link
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
Copy link
Owner

msiemens commented Oct 7, 2013

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
Copy link
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
Copy link
Owner

msiemens commented Oct 7, 2013

No problem, you're welcome :)

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