<div dir="ltr">Hi all,<div><br></div><div>Thanks a lot for your valuable advice. I have already succeed in registering and loading a self-defined plugin. The entry_point is generated by executing setup.py, and found in .egg-info/entry_points.txt, which is different from using setup.cfg in <a href="https://review.openstack.org/#/c/331638/" target="_blank" style="font-size:13px">https://review.openstack.org/#/c/331638/</a>. </div><div><br></div><div>Moreover, I tried to load drivers by line "<span style="background-color:rgb(255,255,255)"><font color="#000000"><span style="font-family:Menlo;font-size:9pt">cfg.CONF.nyp.plugins.</span><span style="font-family:Menlo;font-size:9pt">simple</span></font></span>", the console prompts oslo_config.cfg.NoSuchOptError: no such option in group DEFAULT: nyp. The setup.cfg is defined as follows.</div><div><pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:Menlo;font-size:9pt">[entry_points]<br>nyp.plugins.formmater =<br>    simple = nyp.plugins.simple:SimpleFormatter<br>    plain = nyp.plugins.simple:SimpleFormatter<br>    field = nyp.plugins.field:FieldList</pre></div><div>How to solve the problem?</div><div><br></div><div>Best regards,</div><div>Yipei</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 28, 2016 at 10:35 AM, Vega Cai <span dir="ltr"><<a href="mailto:luckyvega.g@gmail.com" target="_blank">luckyvega.g@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Yipei,<div><br></div><div>You can also refer to my network type driver implementation:</div><div><br></div><div><a href="https://review.openstack.org/#/c/331638/" target="_blank">https://review.openstack.org/#/c/331638/</a><br></div><div><br></div><div>Type driver is registered in setup.cfg and loaded by code.</div><div><br></div><div>BR</div><div>Zhiyuan</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 27 June 2016 at 21:44, Yipei Niu <span dir="ltr"><<a href="mailto:newypei@gmail.com" target="_blank">newypei@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear all,<div><br></div><div>Recently, I learn to name a plugin based on the doc <a href="http://docs.openstack.org/developer/stevedore/tutorial/naming.html#" target="_blank">http://docs.openstack.org/developer/stevedore/tutorial/naming.html#</a>. I define a new entry_point for the plugin, then it fails. The console prompts "stevedore.exception.NoMatches: No 'net.nyp.formatter' driver found, looking for 'simple'". After setting a new entry_point with setuptools, why stevedore cannot find the driver based on the entry_point?</div><div><br></div><div>Best regards,</div><div>Yipei</div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>