Bug 865834 - missing __init__.py in quantum
Summary: missing __init__.py in quantum
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-quantumclient
Version: 1.0 (Essex)
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 2.0 Folsom
Assignee: RHOS Maint
QA Contact: Yaniv Kaul
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-12 15:02 UTC by Jaroslav Henner
Modified: 2013-07-04 02:52 UTC (History)
3 users (show)

Fixed In Version: python-quantumclient-2.1.10-1.el6ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-13 15:28:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jaroslav Henner 2012-10-12 15:02:43 UTC
Description of problem:
There is no way to import quantum.client without mangling the sys.path or PYTHONPATH or working directory. This is because there is missing __init__.py to indicate the directory is a python package.

I think the quantum.client should be importable to allow other projects to use it.


Version-Release number of selected component (if applicable):
python-quantumclient-2012.1-2.el6.noarch


How reproducible:
allways


Steps to Reproduce:
[root@slave ~]# rpm -q python-quantumclient
python-quantumclient-2012.1-2.el6.noarch
[root@slave ~]# python -c "import quantum.client"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named quantum.client
  

Actual results:
ImportError


Expected results:
Import suceed
[root@slave ~]# touch __init__.py /usr/lib/python2.6/site-packages/quantum/__init__.py
[root@slave ~]# python -c "import quantum.client"


Additional info:

Comment 1 Jaroslav Henner 2012-10-12 15:13:43 UTC
As apevec adviced `yum install python-quantum -y` helped. Thus python-novaclient is missing python-quantum as it's dep.


Note You need to log in before you can comment on or make changes to this bug.