ros-infrastructure / bloom

A release automation tool which makes releasing catkin (http://ros.org/wiki/catkin) packages easier.
Other
58 stars 93 forks source link

Error with git-bloom-release #128

Closed stonier closed 11 years ago

stonier commented 11 years ago

Trying to work out the new process for releasing and coming up with this error.

snorri@snorriwork64:/opt/rocon_tutorials-gdb$ git-bloom-release rosdebian groovy
###
### Running 'git bloom-import-upstream --replace'... 
###
/usr/lib/pymodules/python2.7/vcstools/vcs_abstraction.py:90: UserWarning: Class VcsClient is deprecated, use from vcstools import get_vcs_client; get_vcs_client() instead
  warnings.warn("Class VcsClient is deprecated, use from vcstools import get_vcs_client; get_vcs_client() instead")
 [git-bloom-import-upstream]: Searching in upstream development branch for the name and version
 [git-bloom-import-upstream]:   Upstream url: https://github.com/robotics-in-concert/rocon_tutorials.git
 [git-bloom-import-upstream]:   Upstream type: git
 [git-bloom-import-upstream]:   Upstream branch: groovy-devel
 [git-bloom-import-upstream]: Checking for package.xml(s)
 [git-bloom-import-upstream]: package.xml(s) found
 [git-bloom-import-upstream]: Found upstream with version: 0.2.0
 [git-bloom-import-upstream]: Upstream contains packages: rocon_tutorials, chatter_concert, rocon_gateway_tutorials, turtle_stroll, rocon, turtle_race_controllers, turtle_race_concert, turtle_concert
 [git-bloom-import-upstream]: Exporting version 0.2.0
WARNING [vcstools] Command failed: 'git archive -o /tmp/bloom_KQ41dg/upstream-0.2.0.tar 0.2.0'
 run at: '/tmp/bloom_KQ41dg/upstream_repo'
 errcode: 128:
fatal: Not a valid object name
[/vcstools]
Traceback (most recent call last):
  File "/usr/local/bin/git-bloom-release", line 9, in <module>
    load_entry_point('bloom==0.2.10', 'console_scripts', 'git-bloom-release')()
  File "/usr/local/lib/python2.7/dist-packages/bloom-0.2.10-py2.7.egg/bloom/commands/release.py", line 127, in main
    ret = iu_main(iu_args)
  File "/usr/local/lib/python2.7/dist-packages/bloom-0.2.10-py2.7.egg/bloom/commands/import_upstream.py", line 569, in main
    retcode = import_upstream(cwd, tmp_dir, args)
  File "/usr/local/lib/python2.7/dist-packages/bloom-0.2.10-py2.7.egg/bloom/logging.py", line 122, in decorated
    return f(*args, **kwds)
  File "/usr/local/lib/python2.7/dist-packages/bloom-0.2.10-py2.7.egg/bloom/commands/import_upstream.py", line 467, in import_upstream
    import_orig(tarball_path, 'upstream', upstream_repo.get_url(), version)
  File "/usr/local/lib/python2.7/dist-packages/bloom-0.2.10-py2.7.egg/bloom/commands/import_upstream.py", line 288, in import_orig
    targz = tarfile.open(tarball_path, 'r:gz')
  File "/usr/lib/python2.7/tarfile.py", line 1678, in open
    return func(name, filemode, fileobj, **kwargs)
  File "/usr/lib/python2.7/tarfile.py", line 1722, in gzopen
    fileobj = bltn_open(name, mode + "b")
IOError: [Errno 2] No such file or directory: '/tmp/bloom_KQ41dg/upstream-0.2.0.tar.gz'

Using rosinstall 0.6.26-1 and bloom 0.3.2-1.

stonier commented 11 years ago

This was after configuring the release repo with:

git-bloom-config https://github.com/robotics-in-concert/rocon_tutorials.git git groovy-devel
stonier commented 11 years ago

Note, I also tried in a fresh git repo just to check that it wasn't having problems with old release information in the repo.

wjwwood commented 11 years ago

What documentation are you following?

stonier commented 11 years ago

Trying to work it out as I go because the wiki docs arent matching the command syntax.

wjwwood commented 11 years ago

This line:

/usr/lib/pymodules/python2.7/vcstools/vcs_abstraction.py:90: UserWarning: Class VcsClient is deprecated, use from vcstools import get_vcs_client; get_vcs_client() instead
  warnings.warn("Class VcsClient is deprecated, use from vcstools import get_vcs_client; get_vcs_client() instead")

Tells me that you are using an out-of-date version of bloom.

Please make sure you are using the latest version (0.3.3).

stonier commented 11 years ago

Ach. I was working under the assumption that pip had uninstalled everything for me over a month ago. Just found some files in /usr/local/bin that got left around that was indeed killing it.

Thanks and sorry for the noise.

wjwwood commented 11 years ago

Np, hope it works now.