osprofiler can't show its version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
osprofiler |
Fix Released
|
Undecided
|
ChangBo Guo(gcb) |
Bug Description
After install osprofiler by command " python setup.py install".
osprofiler --version shows nothing
[changboguo@
Python 2.7.10 (default, Sep 24 2015, 17:50:09)
[GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import osprofiler
>>> osprofiler.
>>> print(osprofile
None
>>>
the root cause is wrong way to generate version :
import os
from six.moves import configparser
from osprofiler import _utils as utils
utils.import_
_conf = configparser.
_conf.read(
os.
try:
__version__ = _conf.get(
except (configparser.
__version__ = None
we never has version option in setup.cfg. so we never got a version for osprofiler.
Changed in osprofiler: | |
assignee: | nobody → ChangBo Guo(gcb) (glongwave) |
Fix proposed to branch: master /review. openstack. org/285890
Review: https:/