[Python.NET] How to use python object from powershell drectly?

2013-04-30 Thread Seungweon Park
Hi, I'd like to call python method, or receive python object (method) directly from powershell. Is it possible using python.net? Thanks, Spark. _ Python.NET mailing list - [email protected] http://mail.python.org/mailman/listinfo/pythondotnet

Re: [Python.NET] Importin­g .NET assembly with "." ­(dot) in the name

2013-04-30 Thread [email protected]
You are confused. Mark was pointing out that since an assembly is not necessarily named on disk, the same as the namespaces within it, you need to AddReference the assembly on disk, and THEN import the namespace. And the namespace may not be named the same as the reference. PythonNet is perfe

[Python.NET] A question about pythonnet + pyinstaller

2013-04-30 Thread Jeremy Chiu
Hi All, So, the issue I'm running into is in combining pyinstaller with pythonnet. I'll describe my current situation. Hopefully it isn't too long and you have some insight. I have a little bit of UI put together via Windows forms. I can run it fine via pythonnet by doing "clr.AddReference

[Python.NET] Fwd: A question about pythonnet + pyinstaller

2013-04-30 Thread Jeremy Chiu
Hi All, So, the issue I'm running into is in combining pyinstaller with pythonnet. I'll describe my current situation. Hopefully it isn't too long and you have some insight. I have a little bit of UI put together via Windows forms. I can run it fine via pythonnet by doing "clr.AddReference

Re: [Python.NET] Importin­g .NET assembly with "." ­(dot) in the name

2013-04-30 Thread Mikhail Karmyshev
Mark, thank you for your help. Too bad that the original assembly which I am trying to use has namespace with "." in it: namespace Accord.Imaging{ } So in C# "using Accord.Imaging'" works fine, but how to deal with it from Python? Sure, I can write a "wrapper" application without dots in namesp

Re: [Python.NET] Importing .NET assembly with "." (dot) in the name

2013-04-30 Thread Mark Tigges
import is namespace on the AddReference. The import hooks look in the dll's that you've referenced, and search for namespaces as per the argument to Accord. So, you shouldn't import the dll name. If the assembly defines the namespace: namespace AccordImaging { ... Then, you should: impo

[Python.NET] Importing .NET assembly with "." (dot) in the name

2013-04-30 Thread Mikhail Karmyshev
Hello, Sorry for possibly dumb question, but is it possible to import an assembly with "." (dot) in the name ? Without dot, for example "SlimDX.dll" - AddReference works and import works too. But for "Accord.Imaging.dll" - AddReference is OK, but import fails: >>> import Accord.Imaging Traceback (

[Python.NET] Using embedded structs

2013-04-30 Thread Morne Joubert
Hi, I am new at Paython and Python.NET and have been trying to use my own .NET assemblies. I have been able to get going with mostly but cannot get passed using C# structs. I have a class with an embedded struct public class Log { public class PageManager { public struct Pag