murano-pkg-check command gives error

Bug #1653060 reported by zhurong
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Undecided
zhurong

Bug Description

root@localhost:~# murano-pkg-check
Traceback (most recent call last):
  File "/usr/local/bin/murano-pkg-check", line 7, in <module>
    from muranopkgcheck.cmd.run import main
  File "/usr/local/lib/python2.7/dist-packages/muranopkgcheck/__init__.py", line 19, in <module>
    'muranopkgcheck').version_string()
  File "/usr/local/lib/python2.7/dist-packages/pbr/version.py", line 465, in version_string
    return self.semantic_version().brief_string()
  File "/usr/local/lib/python2.7/dist-packages/pbr/version.py", line 460, in semantic_version
    self._semantic = self._get_version_from_pkg_resources()
  File "/usr/local/lib/python2.7/dist-packages/pbr/version.py", line 447, in _get_version_from_pkg_resources
    result_string = packaging.get_version(self.package)
  File "/usr/local/lib/python2.7/dist-packages/pbr/packaging.py", line 725, in get_version
    raise Exception("Versioning for this project requires either an sdist"
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?

zhurong (zhu-rong)
Changed in murano:
assignee: nobody → zhurong (zhu-rong)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano-pkg-check (master)

Fix proposed to branch: master
Review: https://review.openstack.org/415625

Changed in murano:
status: New → In Progress
Revision history for this message
Andy Botting (andybotting) wrote :

I've just reproduced this in two environments installing from pip. Would be great if this could be merged.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano-pkg-check (master)

Reviewed: https://review.openstack.org/415625
Committed: https://git.openstack.org/cgit/openstack/murano-pkg-check/commit/?id=046c7e64bfeabbaa56849f232fb7ddf7d704435f
Submitter: Jenkins
Branch: master

commit 046c7e64bfeabbaa56849f232fb7ddf7d704435f
Author: zhurong <email address hidden>
Date: Thu Dec 29 16:01:16 2016 +0800

    Correct the package name

    Now the murano-pkg-check gives the error:
    Exception: Versioning for this project requires either an sdist tarball,
    or access to an upstream git repository. Are you sure that git is installed?
    This patch correct the package name when get the package version.

    Change-Id: I33500b3527e21a513f9130f55f0b54ba0e047d5f
    Closes-Bug: #1653060

Changed in murano:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/murano-pkg-check 0.3.0

This issue was fixed in the openstack/murano-pkg-check 0.3.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.