[Python.NET] How to embed properly using Python for .NET

Mika S siddhupiddu at gmail.com
Mon Aug 4 20:11:14 CEST 2014

What dependencies are missing?
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#.

On Sat, Aug 2, 2014 at 9:50 PM, Denis Akhiyarov <denis.akhiyarov at gmail.com>

> When I try to use
> PythonEngine.ImportModule(mymodulename)
>  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?
> I tried importhook.cs from both versions:
> https://github.com/pythonnet/pythonnet
> https://github.com/renshawbay/pythonnet
> http://stackoverflow.com/questions/25101718/how-to-embed-properly-using-python-for-net
> _________________________________________________
> Python.NET mailing list - PythonDotNet at python.org
> https://mail.python.org/mailman/listinfo/pythondotnet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20140804/0df7aca9/attachment.html>

More information about the PythonDotNet mailing list