Bug 1601767
| Summary: | pbr VersionInfo: ImportError: No module named pkg_resources | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Cyril Lopez <cylopez> |
| Component: | python-pbr | Assignee: | hguemar |
| Status: | CLOSED EOL | QA Contact: | Shai Revivo <srevivo> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 13.0 (Queens) | CC: | apevec, bfournie, cylopez, dtantsur, hguemar, karlthered, lhh, mburns, srevivo |
| Target Milestone: | --- | Keywords: | Triaged, ZStream |
| Target Release: | --- | Flags: | mburns:
needinfo?
(hguemar) |
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-07-10 17:32:08 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Workaround : install python-setuptools-0.9.8-7.el7.noarch package. I thinks here we miss a dependency with python-setuptools Seems like it's a pbr bug, since pbr is importing the missing module. Assigned to my RH account (too lazy to switch accounts /o\) Please paste the version of pbr you had when seeing this problem. pbr ? python2-pbr-3.1.1-2.el7ost.noarch ? Reproducible with python-pbr-4.1.0-1.fc29, fixed in python-pbr-4.1.0-2.fc29 (rawhide) Backport is in preparation for RDO. python-pbr-3.1.1-8.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-c93eb32ca7 python-pbr-3.1.1-8.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-c93eb32ca7 It's now in pike/queens/rocky testing repositories. Please can we get this fixed, it has been dragging on since OSP 11, each closed for incorrect reasons in the following bz: 1522652 1419720 Here is the patch for RDO: https://review.rdoproject.org/r/#/c/4961/ which has been rejected saying it needs to get fixed in pbr. I've created a new patch: https://review.rdoproject.org/r/17322 Thanks The referenced version is fixed in OSP 14 (4.1.0-2) OSP13 support officially ended on 27 June 2023 |
Description of problem: vbmc command line doesn't work Version-Release number of selected component (if applicable): python2-virtualbmc-1.2.0-1.1.el7ost How reproducible: /bin/vbmc --help or add or list... Actual results: version.py:438:_get_version_from_pkg_resources:ImportError: No module named pkg_resources Traceback (most recent call last): File "/bin/vbmc", line 6, in <module> from virtualbmc.cmd.vbmc import main File "/usr/lib/python2.7/site-packages/virtualbmc/__init__.py", line 15, in <module> __version__ = pbr.version.VersionInfo('virtualbmc').version_string() File "/usr/lib/python2.7/site-packages/pbr/version.py", line 466, in version_string return self.semantic_version().brief_string() File "/usr/lib/python2.7/site-packages/pbr/version.py", line 461, in semantic_version self._semantic = self._get_version_from_pkg_resources() File "/usr/lib/python2.7/site-packages/pbr/version.py", line 438, in _get_version_from_pkg_resources import pkg_resources ImportError: No module named pkg_resources Additional info: