<div dir="ltr"><div>What dependencies are missing?</div><div>I find that having a basic python installation on the target machine is necessary. If that's not the case then copy your python folder with the modules and they eggs on the target machine and set the PYTHONPATH environment var from c#.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 2, 2014 at 9:50 PM, Denis Akhiyarov <span dir="ltr"><<a href="mailto:denis.akhiyarov@gmail.com" target="_blank">denis.akhiyarov@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"><div><p style="margin:0px 0px 1em;padding:0px;border:0px currentColor;color:rgb(0,0,0);line-height:17.8px;clear:both;font-family:Arial,"Liberation Sans","DejaVu Sans",sans-serif;font-size:14px;vertical-align:baseline">

When I try to use</p><pre style="background:rgb(238,238,238);padding:5px;border:0px currentColor;width:auto;color:rgb(0,0,0);line-height:17.8px;overflow:auto;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,serif;font-size:14px;margin-top:0px;margin-bottom:10px;vertical-align:baseline;max-height:600px">
<code style="margin:0px;padding:0px;border:0px currentColor;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,serif;vertical-align:baseline;white-space:inherit"><span style="background:none;margin:0px;padding:0px;border:0px currentColor;color:rgb(43,145,175);vertical-align:baseline">PythonEngine</span><span style="background:none;margin:0px;padding:0px;border:0px currentColor;vertical-align:baseline">.</span><span style="background:none;margin:0px;padding:0px;border:0px currentColor;color:rgb(43,145,175);vertical-align:baseline">ImportModule</span><span style="background:none;margin:0px;padding:0px;border:0px currentColor;vertical-align:baseline">(</span><span style="background:none;margin:0px;padding:0px;border:0px currentColor;vertical-align:baseline">mymodulename</span><span style="background:none;margin:0px;padding:0px;border:0px currentColor;vertical-align:baseline">)</span></code></pre>

<p style="margin:0px 0px 1em;padding:0px;border:0px currentColor;color:rgb(0,0,0);line-height:17.8px;clear:both;font-family:Arial,"Liberation Sans","DejaVu Sans",sans-serif;font-size:14px;vertical-align:baseline">

some of the optional modules in dependencies are attempted to be loaded (not required for module use without embedding). This results in return null from this method because some of these optional dependencies are not required and hence not available. What is the proper method to use in this PythonNET API for loading user-written module which depends on multiple other modules?</p>

<p style="margin:0px 0px 1em;padding:0px;border:0px currentColor;color:rgb(0,0,0);line-height:17.8px;clear:both;font-family:Arial,"Liberation Sans","DejaVu Sans",sans-serif;font-size:14px;vertical-align:baseline">

I tried importhook.cs from both versions:</p><p style="margin:0px 0px 1em;padding:0px;border:0px currentColor;color:rgb(0,0,0);line-height:17.8px;clear:both;font-family:Arial,"Liberation Sans","DejaVu Sans",sans-serif;font-size:14px;vertical-align:baseline">

<a style="background:none;margin:0px;padding:0px;border:0px currentColor;color:rgb(74,107,130);text-decoration:none;vertical-align:baseline" href="https://github.com/pythonnet/pythonnet" target="_blank" rel="nofollow">https://github.com/pythonnet/pythonnet</a></p>

<p style="margin:0px 0px 1em;padding:0px;border:0px currentColor;color:rgb(0,0,0);line-height:17.8px;clear:both;font-family:Arial,"Liberation Sans","DejaVu Sans",sans-serif;font-size:14px;vertical-align:baseline">

<a style="background:none;margin:0px;padding:0px;border:0px currentColor;color:rgb(74,107,130);text-decoration:none;vertical-align:baseline" href="https://github.com/renshawbay/pythonnet" target="_blank" rel="nofollow">https://github.com/renshawbay/pythonnet</a></p>

</div><div><br></div><div><br></div><a href="http://stackoverflow.com/questions/25101718/how-to-embed-properly-using-python-for-net" target="_blank">http://stackoverflow.com/questions/25101718/how-to-embed-properly-using-python-for-net</a><br>

</div>
<br>_________________________________________________<br>
Python.NET mailing list - <a href="mailto:PythonDotNet@python.org">PythonDotNet@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/pythondotnet" target="_blank">https://mail.python.org/mailman/listinfo/pythondotnet</a><br></blockquote></div><br></div>