2016-10-17.09:57 desbonne@kilcolgan2:~/src/review.hpcloud.net/openstack/python-novaclient$ pip freeze | grep -i git
git-upstream==0.11.0
gitdb2==2.0.0
GitPython==2.0.9
2016-10-17.09:57 desbonne@kilcolgan2:~/src/review.hpcloud.net/openstack/python-novaclient$ git-upstream import --into hp/prerelease/newton stable/newton
Traceback (most recent call last):
File "/tmp/with_workspace.37QzIZ/_workspace_venv/bin/git-upstream", line 11, in <module>
sys.exit(main())
File "/tmp/with_workspace.37QzIZ/_workspace_venv/local/lib/python2.7/site-packages/git_upstream/main.py", line 142, in main
args.cmd.run(args)
File "/tmp/with_workspace.37QzIZ/_workspace_venv/local/lib/python2.7/site-packages/git_upstream/commands/__init__.py", line 71, in run
return self.execute()
File "/tmp/with_workspace.37QzIZ/_workspace_venv/local/lib/python2.7/site-packages/git_upstream/commands/import.py", line 145, in execute
extra_branches=self.args.branches)
File "/tmp/with_workspace.37QzIZ/_workspace_venv/local/lib/python2.7/site-packages/git_upstream/lib/importupstream.py", line 48, in __init__
super(ImportUpstream, self).__init__(*args, **kwargs)
File "/tmp/with_workspace.37QzIZ/_workspace_venv/local/lib/python2.7/site-packages/git_upstream/log.py", line 154, in __init__
super(LogDedentMixin, self).__init__(*args, **kwargs)
File "/tmp/with_workspace.37QzIZ/_workspace_venv/local/lib/python2.7/site-packages/git_upstream/lib/utils.py", line 39, in __init__
os.path.curdir))
File "/tmp/with_workspace.37QzIZ/_workspace_venv/local/lib/python2.7/site-packages/git/repo/base.py", line 146, in __init__
self.git_dir = None
AttributeError: can't set attribute
Looks like due to the _GitUpstreamCompatRepo_ class being wrapped around the git.Repo class due to gitpython-2.0.9 dropping the __slots__ attribute from the base repo class.
2016-10-17.09:57 desbonne@ kilcolgan2: ~/src/review. hpcloud. net/openstack/ python- novaclient$ pip freeze | grep -i git =0.11.0 kilcolgan2: ~/src/review. hpcloud. net/openstack/ python- novaclient$ git-upstream import --into hp/prerelease/ newton stable/newton workspace. 37QzIZ/ _workspace_ venv/bin/ git-upstream" , line 11, in <module> exit(main( )) workspace. 37QzIZ/ _workspace_ venv/local/ lib/python2. 7/site- packages/ git_upstream/ main.py" , line 142, in main cmd.run( args) workspace. 37QzIZ/ _workspace_ venv/local/ lib/python2. 7/site- packages/ git_upstream/ commands/ __init_ _.py", line 71, in run workspace. 37QzIZ/ _workspace_ venv/local/ lib/python2. 7/site- packages/ git_upstream/ commands/ import. py", line 145, in execute branches= self.args. branches) workspace. 37QzIZ/ _workspace_ venv/local/ lib/python2. 7/site- packages/ git_upstream/ lib/importupstr eam.py" , line 48, in __init__ ImportUpstream, self)._ _init__ (*args, **kwargs) workspace. 37QzIZ/ _workspace_ venv/local/ lib/python2. 7/site- packages/ git_upstream/ log.py" , line 154, in __init__ LogDedentMixin, self)._ _init__ (*args, **kwargs) workspace. 37QzIZ/ _workspace_ venv/local/ lib/python2. 7/site- packages/ git_upstream/ lib/utils. py", line 39, in __init__ path.curdir) ) workspace. 37QzIZ/ _workspace_ venv/local/ lib/python2. 7/site- packages/ git/repo/ base.py" , line 146, in __init__
git-upstream=
gitdb2==2.0.0
GitPython==2.0.9
2016-10-17.09:57 desbonne@
Traceback (most recent call last):
File "/tmp/with_
sys.
File "/tmp/with_
args.
File "/tmp/with_
return self.execute()
File "/tmp/with_
extra_
File "/tmp/with_
super(
File "/tmp/with_
super(
File "/tmp/with_
os.
File "/tmp/with_
self.git_dir = None
AttributeError: can't set attribute
Looks like due to the _GitUpstreamCom patRepo_ class being wrapped around the git.Repo class due to gitpython-2.0.9 dropping the __slots__ attribute from the base repo class.