<font size=2 face="sans-serif">Hi Alexander,</font><br><br><font size=2 face="sans-serif">Thank you for your response and the
suggested fix.</font><br><font size=2 face="sans-serif">I did not run into issues when installing
the plugin using "pip install".</font><br><font size=2 face="sans-serif">But in any case, I modified the import
to what you suggested.</font><br><br><font size=2 face="sans-serif">However, the problem I mentioned in
my previous message still exists.</font><br><font size=2 face="sans-serif">After the "pip install" I
run "pip list" and confirm that the plugin is listed there.</font><br><font size=2 face="sans-serif">But when trying to import a tosca package
into the catalog murano doesn't seem to know about the new package format
(</font><font size=2 color=blue face="sans-serif"><u>here</u></font><font size=2 face="sans-serif">as mentioned in my previous post).</font><br><br><font size=2 face="sans-serif">The tosca package I am importing is
attached just in case.</font><br><br><br><font size=2 face="sans-serif">I hope I did not misunderstand your
response.</font><br><font size=2 face="sans-serif"><br>Regards,</font><font size=3><br></font><font size=2 face="sans-serif">--Vahid<br></font><br><br><br><br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Alexander Tivelkov
<ativelkov@mirantis.com></font><br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">"OpenStack Development
Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org></font><br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">01/15/2016 09:33 AM</font><br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: [openstack-dev]
[murano] Plugin installation issue</font><br><hr noshade><br><br><br><font size=3>Hi Vahid,</font><br><br><font size=3>Sorry for the delayed response.</font><br><br><font size=3>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". </font><br><font size=3>As far as I can see, your plugin attempts the following
import statement:</font><br><font size=3><b>"from heat_translator import translator_shell"</b>and this is the exact statement which fails. </font><br><font size=3>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.</font><br><font size=3>So, if you replace this import statement with something
like </font><br><font size=3>"<b>from translator import shell as translator_shell</b>"
this should work, since the "translator" module is properly exported
by the heat-translator package.</font><br><br><font size=3>Hope this helps</font><br><br><font size=3>On Mon, Jan 11, 2016 at 10:51 PM Vahid S Hashemian <</font><a href=mailto:vahidhashemian@us.ibm.com target=_blank><font size=3 color=blue><u>vahidhashemian@us.ibm.com</u></font></a><font size=3>>
wrote:</font><br><font size=2 face="sans-serif">Hello,</font><font size=3><br></font><font size=2 face="sans-serif"><br>I have been scratching my head at this issue for a couple of days without
any success.</font><font size=3><br></font><font size=2 face="sans-serif"><br>Here's the issue:<br>I try to install my plugin (can be found </font><a href=https://review.openstack.org/#/c/243872/ target=_blank><font size=2 color=blue face="sans-serif"><u>here</u></font></a><font size=2 face="sans-serif">as
WIP) using this command:</font><font size=3><br></font><font size=2 face="sans-serif"><br>        pip install -e contrib/plugins/murano_heat-translator_plugin/</font><font size=3><br></font><font size=2 face="sans-serif"><br>The installer runs and reports that "Successfully installed io.murano.plugins.oasis.tosca".<br>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 (</font><a href=https://github.com/openstack/murano/blob/master/murano/packages/load_utils.py#L100 target=_blank><font size=2 color=blue face="sans-serif"><u>here</u></font></a><font size=2 face="sans-serif">).</font><font size=3><br></font><font size=2 face="sans-serif"><br>I run the same scenario for the Cloudify plugin and everything goes fine.</font><font size=3><br></font><font size=2 face="sans-serif"><br>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.<br>Any pointers would be highly appreciated.</font><font size=3><br></font><font size=2 face="sans-serif"><br>Thanks.<br>--Vahid</font><font size=3><br><br>__________________________________________________________________________<br>OpenStack Development Mailing List (not for usage questions)<br>Unsubscribe: </font><a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target=_blank><font size=3 color=blue><u>OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</u></font></a><font size=3 color=blue><u><br></u></font><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target=_blank><font size=3 color=blue><u>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</u></font></a><br><font size=3>-- </font><br><font size=3>Regards,</font><br><font size=3>Alexander Tivelkov</font><tt><font size=2>__________________________________________________________________________<br>OpenStack Development Mailing List (not for usage questions)<br>Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br></font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size=2>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</font></tt></a><tt><font size=2><br></font></tt><br><br><BR>