Re: [openstack-dev] [murano] Plugin installation issue

2016-01-15 Thread Alexander Tivelkov
Hi Vahid,

Sorry for the delayed response.

I've run your plugin and I am facing an error during the loading of your
plugin: the loader complains that it is unable to find the module named
"heat_translator".
As far as I can see, your plugin attempts the following import statement:
*"from heat_translator import translator_shell"* and this is the exact
statement which fails.
Most probably this happens because the heat_translator project does not
expose its heat_translator.py file (the one defined in the root of the
module) to the outer world, thus when you install it with pip this module
cannot be found.
So, if you replace this import statement with something like
"*from translator import shell as translator_shell*" this should work,
since the "translator" module is properly exported by the heat-translator
package.

Hope this helps

On Mon, Jan 11, 2016 at 10:51 PM Vahid S Hashemian <
vahidhashem...@us.ibm.com> wrote:

> Hello,
>
> I have been scratching my head at this issue for a couple of days without
> any success.
>
> Here's the issue:
> I try to install my plugin (can be found here
> as WIP) using this command:
>
> pip install -e contrib/plugins/murano_heat-translator_plugin/
>
> The installer runs and reports that "Successfully installed
> io.murano.plugins.oasis.tosca".
> However, when I try to import a package to the catalog I see (while
> debugging) that the plugin format I just installed is not among the
> plugin_loader formats that murano discovers (here
> 
> ).
>
> I run the same scenario for the Cloudify plugin and everything goes fine.
>
> So it appears there is something wrong with my package (I was able to
> install it before). But I don't know where to look for the root cause of
> this issue.
> Any pointers would be highly appreciated.
>
> Thanks.
> --Vahid
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-- 
Regards,
Alexander Tivelkov
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [murano] Plugin installation issue

2016-01-11 Thread Vahid S Hashemian
Hello,

I have been scratching my head at this issue for a couple of days without 
any success.

Here's the issue:
I try to install my plugin (can be found here as WIP) using this command:

pip install -e contrib/plugins/murano_heat-translator_plugin/

The installer runs and reports that "Successfully installed 
io.murano.plugins.oasis.tosca".
However, when I try to import a package to the catalog I see (while 
debugging) that the plugin format I just installed is not among the 
plugin_loader formats that murano discovers (here).

I run the same scenario for the Cloudify plugin and everything goes fine.

So it appears there is something wrong with my package (I was able to 
install it before). But I don't know where to look for the root cause of 
this issue.
Any pointers would be highly appreciated.

Thanks.
--Vahid


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev