{"action":"created","issue":{"url":"https://api.github.com/repos/Juniper/contrail-heat/issues/13","labels_url":"https://api.github.com/repos/Juniper/contrail-heat/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/Juniper/contrail-heat/issues/13/comments","events_url":"https://api.github.com/repos/Juniper/contrail-heat/issues/13/events","html_url":"https://github.com/Juniper/contrail-heat/issues/13","id":75075418,"number":13,"title":"ImportError: No module named xxx","user":{"login":"zzxwill","id":2805315,"avatar_url":"https://avatars.githubusercontent.com/u/2805315?v=3","gravatar_id":"","url":"https://api.github.com/users/zzxwill","html_url":"https://github.com/zzxwill","followers_url":"https://api.github.com/users/zzxwill/followers","following_url":"https://api.github.com/users/zzxwill/following{/other_user}","gists_url":"https://api.github.com/users/zzxwill/gists{/gist_id}","starred_url":"https://api.github.com/users/zzxwill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzxwill/subscriptions","organizations_url":"https://api.github.com/users/zzxwill/orgs","repos_url":"https://api.github.com/users/zzxwill/repos","events_url":"https://api.github.com/users/zzxwill/events{/privacy}","received_events_url":"https://api.github.com/users/zzxwill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-11T04:00:43Z","updated_at":"2015-05-12T10:12:55Z","closed_at":null,"body":"Hi Praneet. In you file https://github.com/Juniper/contrail-heat/blob/master/contrail_heat/resources/vn_subnet.py, there is a line \"from contrail_heat.resources import contrail\". What I did is the same as you for the heat resource plugin, but I hit \"ImportError: No module named def_heat_plugin.client\" when I wrote \"from def_heat_plugin.client import constants as const\".  Any suggestions? Thanks."},"comment":{"url":"https://api.github.com/repos/Juniper/contrail-heat/issues/comments/101222246","html_url":"https://github.com/Juniper/contrail-heat/issues/13#issuecomment-101222246","issue_url":"https://api.github.com/repos/Juniper/contrail-heat/issues/13","id":101222246,"user":{"login":"zzxwill","id":2805315,"avatar_url":"https://avatars.githubusercontent.com/u/2805315?v=3","gravatar_id":"","url":"https://api.github.com/users/zzxwill","html_url":"https://github.com/zzxwill","followers_url":"https://api.github.com/users/zzxwill/followers","following_url":"https://api.github.com/users/zzxwill/following{/other_user}","gists_url":"https://api.github.com/users/zzxwill/gists{/gist_id}","starred_url":"https://api.github.com/users/zzxwill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzxwill/subscriptions","organizations_url":"https://api.github.com/users/zzxwill/orgs","repos_url":"https://api.github.com/users/zzxwill/repos","events_url":"https://api.github.com/users/zzxwill/events{/privacy}","received_events_url":"https://api.github.com/users/zzxwill/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T10:12:55Z","updated_at":"2015-05-12T10:12:55Z","body":"Hi Praneet. def_heat_plugin is a heat resource type plugin. Yes, I copied the package to /usr/lib/heat/.\r\n\r\nIt works if I put the plugin under /usr/lib/python2.6/site-packages/. But it's not way I'd like it to work.\r\n\r\nAccording to the directions of Openstack Official Heat/Plugins wiki https://wiki.openstack.org/wiki/Heat/Plugins, we only need \"To install a plugin, copy the Python modules to one of the configured plugin directories. Note that heat-engine must be restarted after this in order to load the new plugins.\" But I hit the issue if I don't copy the plugin to site-packages. Here is the directory tree of my plugin. Only modules in resource/cms/ are subclass of Resources.\r\n\r\n\\---def_heat_plugin\r\n    |   README.txt\r\n    |   __init__.py\r\n    |\r\n    +---client\r\n    |       def_client.py\r\n    |       constants.py\r\n    |       meta_client.py\r\n    |       socks.py\r\n    |       __init__.py\r\n    |\r\n    +---config\r\n    |       def.conf\r\n    |       logging.conf\r\n    |\r\n    +---resources\r\n    |   |   __init__.py\r\n    |   |\r\n    |   \\---def\r\n    |           def_server.py\r\n    |           __init__.py"}}