From hpj at lodam.com Tue Dec 2 07:55:55 2014 From: hpj at lodam.com (Hans Peter Jepsen) Date: Tue, 2 Dec 2014 06:55:55 +0000 Subject: [Python.NET] Can anyone help me with a build of Python for .Net, that works with Windows 8.1? Message-ID: <8BA14503034EAE47B93AE568C5A9B47097D05F8F@exch1srv.lodam.local> Hi all I also ran into the problem, that the newest downloadable build of pythondotnet does not with Windows 8.1. For reference, see e.g. https://mail.python.org/pipermail/pythondotnet/2014-January/001471.html. Does anyone have a version build the described fix, that they could send to me? Kind regards Hans Peter Jepsen Lodam Electronics -------------- next part -------------- An HTML attachment was scrubbed... URL: From tony at pyxll.com Thu Dec 4 17:10:37 2014 From: tony at pyxll.com (Tony Roberts) Date: Thu, 4 Dec 2014 16:10:37 +0000 Subject: [Python.NET] Can anyone help me with a build of Python for .Net, that works with Windows 8.1? In-Reply-To: <8BA14503034EAE47B93AE568C5A9B47097D05F8F@exch1srv.lodam.local> References: <8BA14503034EAE47B93AE568C5A9B47097D05F8F@exch1srv.lodam.local> Message-ID: That fix is in the develop branch on github ( https://github.com/pythonnet/pythonnet.git). You should be able to build it from there just by running the setup.py script, e.g. python setup.py install cheers, Tony On Tue, Dec 2, 2014 at 6:55 AM, Hans Peter Jepsen wrote: > Hi all > > I also ran into the problem, that the newest downloadable build of > pythondotnet does not with Windows 8.1. > For reference, see e.g. > *https://mail.python.org/pipermail/pythondotnet/2014-January/001471.html* > . > > Does anyone have a version build the described fix, that they could send > to me? > > Kind regards > > Hans Peter Jepsen > Lodam Electronics > > > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > https://mail.python.org/mailman/listinfo/pythondotnet > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan_copeland at keysight.com Thu Dec 4 17:34:24 2014 From: alan_copeland at keysight.com (alan_copeland at keysight.com) Date: Thu, 4 Dec 2014 16:34:24 +0000 Subject: [Python.NET] Can anyone help me with a build of Python for .Net, that works with Windows 8.1? In-Reply-To: References: <8BA14503034EAE47B93AE568C5A9B47097D05F8F@exch1srv.lodam.local> Message-ID: <1CBA6A45779B894E804A50A460CC2DF712E4855B@wcosexch01k.cos.is.keysight.com> We tested this out recently and it seemed to work well. Any idea when it?s going to hit a ?released status?? Alan Copeland Keysight Technologies, Inc. From: PythonDotNet [mailto:pythondotnet-bounces+alan_copeland=agilent.com at python.org] On Behalf Of Tony Roberts Sent: Thursday, December 04, 2014 9:11 AM To: A list for users and developers of Python for .NET Subject: Re: [Python.NET] Can anyone help me with a build of Python for .Net, that works with Windows 8.1? That fix is in the develop branch on github (https://github.com/pythonnet/pythonnet.git). You should be able to build it from there just by running the setup.py script, e.g. python setup.py install cheers, Tony On Tue, Dec 2, 2014 at 6:55 AM, Hans Peter Jepsen > wrote: Hi all I also ran into the problem, that the newest downloadable build of pythondotnet does not with Windows 8.1. For reference, see e.g. https://mail.python.org/pipermail/pythondotnet/2014-January/001471.html. Does anyone have a version build the described fix, that they could send to me? Kind regards Hans Peter Jepsen Lodam Electronics _________________________________________________ Python.NET mailing list - PythonDotNet at python.org https://mail.python.org/mailman/listinfo/pythondotnet -------------- next part -------------- An HTML attachment was scrubbed... URL: From nikhilgarg.gju at gmail.com Wed Dec 10 06:28:56 2014 From: nikhilgarg.gju at gmail.com (Nikhil Garg) Date: Wed, 10 Dec 2014 13:28:56 +0800 Subject: [Python.NET] PythonNet on Cygwin Message-ID: Hi Guys, I was wondering if anyone knows how to make Python for .Net work on cygwin installation of python. I have been looking around and find a mixed bag of information. If anyone knows of the working version of Python for .Net and its dependency, I would appreciate if you could share it with me. Currently, I am using a generic windows version and it works just fine, but I need it to work on Cygwin version of python. I appreciate any helpful replies. Thanks, Nikhil -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis.akhiyarov at gmail.com Wed Dec 10 16:23:47 2014 From: denis.akhiyarov at gmail.com (Denis Akhiyarov) Date: Wed, 10 Dec 2014 09:23:47 -0600 Subject: [Python.NET] PythonNet on Cygwin In-Reply-To: References: Message-ID: maybe you can try PythonNET with Mono: http://www.mono-project.com/docs/compiling-mono/windows/ On Tue, Dec 9, 2014 at 11:28 PM, Nikhil Garg wrote: > Hi Guys, > > I was wondering if anyone knows how to make Python for .Net work on cygwin > installation of python. I have been looking around and find a mixed bag of > information. If anyone knows of the working version of Python for .Net and > its dependency, I would appreciate if you could share it with me. > > Currently, I am using a generic windows version and it works just fine, > but I need it to work on Cygwin version of python. I appreciate any helpful > replies. > > Thanks, > > Nikhil > > > > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > https://mail.python.org/mailman/listinfo/pythondotnet > -------------- next part -------------- An HTML attachment was scrubbed... URL: From muraliright at gmail.com Wed Dec 31 18:44:05 2014 From: muraliright at gmail.com (Murali CS) Date: Wed, 31 Dec 2014 12:44:05 -0500 Subject: [Python.NET] ImportError: No module named Please help Message-ID: Hi, We are using Python for .Net to create an API. C# Assembly is called by Python script to access API methods. import sys sys.path.append(r"C:\myfolderA\myfolderB") print sys.path import clr clr.FindAssembly(r"AA.BB.CC") clr.AddReference(r"AA.BB.CC") from AA.BB.CC.Api.DDInterface import DDClient On the above line I am getting following error Traceback (most recent call last): File "C:\myfolderA\myfolderB\testAPI.py", line 7, in from AA.BB.CC.Api.DDInterface import DDClient ImportError: No module named AA.BB.CC.Api.DDInterface There is no other information available to exactly identify the issue. Dlls from same project built 15 days back works fine. This project may have gone through few changes in between. How to exactly identify this issue? Could this be a dependency issue? I tried code decompile to compare old dlls and new ones. Couldn't find anything unusual. I am using Python27 Your help is deeply appreciated. Thanks, Murali -------------- next part -------------- An HTML attachment was scrubbed... URL: From zane.purvis at gmail.com Wed Dec 31 19:10:08 2014 From: zane.purvis at gmail.com (Zane D. Purvis) Date: Wed, 31 Dec 2014 13:10:08 -0500 Subject: [Python.NET] ImportError: No module named Please help In-Reply-To: References: Message-ID: I've seen something at least similar to this when the DLL I'm trying to use references a type in another DLL. When I copied that other DLL to the same location, it worked fine. In this situation, equivalent code in C# worked fine without the other DLL, but Python gave an error similar to what you are seeing. It does this even if the type I'm importing doesn't reference the type that can't be found: any reference in the assembly to an unfound type causes it. For me, an unrelated class in the assembly was using a JSON attribute, and I just needed to put the JSON DLL in the same directory. I could tell from looking at the commit logs of the .NET project what had changed, and was able to figure out what to do. I couldn't find a way through Python to tell what had failed. I wonder if Python.NET could be modified to either not require all types to be resolved even if they are not necessary or if it could at least identify the missing type. > On Dec 31, 2014, at 12:44 PM, Murali CS wrote: > > Hi, > We are using Python for .Net to create an API. > C# Assembly is called by Python script to access API methods. > > import sys > sys.path.append(r"C:\myfolderA\myfolderB") > print sys.path > import clr > clr.FindAssembly(r"AA.BB.CC") > clr.AddReference(r"AA.BB.CC") > from AA.BB.CC.Api.DDInterface import DDClient > On the above line I am getting following error > > Traceback (most recent call last): > File "C:\myfolderA\myfolderB\testAPI.py", line 7, in > from AA.BB.CC.Api.DDInterface import DDClient > ImportError: No module named AA.BB.CC.Api.DDInterface > > There is no other information available to exactly identify the issue. > Dlls from same project built 15 days back works fine. > This project may have gone through few changes in between. > How to exactly identify this issue? > > Could this be a dependency issue? I tried code decompile to compare old dlls and new ones. > Couldn't find anything unusual. > > I am using Python27 > > Your help is deeply appreciated. > > Thanks, > Murali > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > https://mail.python.org/mailman/listinfo/pythondotnet -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis.akhiyarov at gmail.com Wed Dec 31 20:18:47 2014 From: denis.akhiyarov at gmail.com (Denis Akhiyarov) Date: Wed, 31 Dec 2014 13:18:47 -0600 Subject: [Python.NET] ImportError: No module named Please help In-Reply-To: References: Message-ID: I recommend using Assembly Binding Log Viewer (fuslogvw.exe) for corresponding .NET framework to see the log files of loading assemblies. Set Log Location as Custom and in Settings point to your assemblies folder. The log should show the sequence of DLLs being loaded and any errors. This worked for me, see here: http://stackoverflow.com/questions/4469929/could-not-load-file-or-assembly-or-one-of-its-dependencies http://stackoverflow.com/questions/1674279/cant-locate-fuslogvw-exe-on-my-machine On Wed, Dec 31, 2014 at 12:10 PM, Zane D. Purvis wrote: > I've seen something at least similar to this when the DLL I'm trying to > use references a type in another DLL. When I copied that other DLL to the > same location, it worked fine. > > In this situation, equivalent code in C# worked fine without the other > DLL, but Python gave an error similar to what you are seeing. It does this > even if the type I'm importing doesn't reference the type that can't be > found: any reference in the assembly to an unfound type causes it. > > For me, an unrelated class in the assembly was using a JSON attribute, and > I just needed to put the JSON DLL in the same directory. I could tell from > looking at the commit logs of the .NET project what had changed, and was > able to figure out what to do. I couldn't find a way through Python to tell > what had failed. I wonder if Python.NET could be modified to either not > require all types to be resolved even if they are not necessary or if it > could at least identify the missing type. > > > On Dec 31, 2014, at 12:44 PM, Murali CS wrote: > > Hi, > We are using Python for .Net to create an API. > C# Assembly is called by Python script to access API methods. > > import sys > sys.path.append(r"C:\myfolderA\myfolderB") > print sys.path > import clr > clr.FindAssembly(r"AA.BB.CC") > clr.AddReference(r"AA.BB.CC") > from AA.BB.CC.Api.DDInterface import DDClient > On the above line I am getting following error > > Traceback (most recent call last): > File "C:\myfolderA\myfolderB\testAPI.py", line 7, in > from AA.BB.CC.Api.DDInterface import DDClient > ImportError: No module named AA.BB.CC.Api.DDInterface > > There is no other information available to exactly identify the issue. > Dlls from same project built 15 days back works fine. > This project may have gone through few changes in between. > How to exactly identify this issue? > > Could this be a dependency issue? I tried code decompile to compare old > dlls and new ones. > Couldn't find anything unusual. > > I am using Python27 > > Your help is deeply appreciated. > > Thanks, > Murali > > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > https://mail.python.org/mailman/listinfo/pythondotnet > > > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > https://mail.python.org/mailman/listinfo/pythondotnet > -------------- next part -------------- An HTML attachment was scrubbed... URL: