From novin01 at gmail.com Thu Sep 3 11:07:43 2015 From: novin01 at gmail.com (Dave Hirschfeld) Date: Thu, 3 Sep 2015 09:07:43 +0000 (UTC) Subject: [Python.NET] keyword arguments Message-ID: It doesn't look like it's supported to instantiate a C# class from Python using keyword arguments? Is that the case or am I missing something. If it's not supported would it theoretically be possible and if so how difficult would it be to implement? Thanks, Dave From germano.carella at gmail.com Wed Sep 2 21:45:43 2015 From: germano.carella at gmail.com (germano carella) Date: Wed, 2 Sep 2015 21:45:43 +0200 Subject: [Python.NET] It is possible to build pythonnet on python 3.4 with visual studio 2015? Message-ID: <55E751E7.1020901@gmail.com> Hi to all, The question is in object: can I use python for .net on python 3.4, windows 10 and visual studio 2015? I tried to build solution with vs 2015, no errors when compiling. But, by starting NPython.exe it seems to look at python27.dll instead of python34.dll. I used 2to3 script in pythonnet folder before trying to compile with vs2015. Now, there is any way to use it with python 3.4? Thanks! From tony at pyxll.com Thu Sep 3 17:28:49 2015 From: tony at pyxll.com (Tony Roberts) Date: Thu, 03 Sep 2015 15:28:49 +0000 Subject: [Python.NET] It is possible to build pythonnet on python 3.4 with visual studio 2015? In-Reply-To: <55E751E7.1020901@gmail.com> References: <55E751E7.1020901@gmail.com> Message-ID: Hi, take a look at setup.py. That's the easiest way to build it for Python 3.4 (you can use the solution, but you'll need to edit some settings - check setup.py to see what it sets). You should be able to modify setup.py to make it pick up VS 2015 easily enough. regards, Tony On Wed, Sep 2, 2015 at 8:45 PM germano carella wrote: > Hi to all, > The question is in object: can I use python for .net on python 3.4, > windows 10 and visual studio 2015? > I tried to build solution with vs 2015, no errors when compiling. But, > by starting NPython.exe it seems to look at python27.dll instead of > python34.dll. > I used 2to3 script in pythonnet folder before trying to compile with > vs2015. > Now, there is any way to use it with python 3.4? > Thanks! > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > https://mail.python.org/mailman/listinfo/pythondotnet > -------------- next part -------------- An HTML attachment was scrubbed... URL: From germano.carella at gmail.com Sun Sep 6 00:42:24 2015 From: germano.carella at gmail.com (germano carella) Date: Sun, 6 Sep 2015 00:42:24 +0200 Subject: [Python.NET] It is possible to build pythonnet on python 3.4 with visual studio 2015? In-Reply-To: References: <55E751E7.1020901@gmail.com> Message-ID: <55EB6FD0.9040603@gmail.com> Ok Tony, thanks, it works! Now, i've an other problem: I'm writing a simple package browser accessible to screen readers. For this purpose i'm using pkgutil, that iterates from modules in sys.path etc. Unfortunately .net modules, even if I import clr, doesn't appear on list of pkgutil.iter_modules. I tried with jedi, for autocompletion, but jedi is unable to retrieve classes and methods for .net modules. There's a way to list .net modules with clr? Thanks! Il 03/09/2015 17:28, Tony Roberts ha scritto: > Hi, > > take a look at setup.py. That's the easiest way to build it for Python > 3.4 (you can use the solution, but you'll need to edit some settings - > check setup.py to see what it sets). You should be able to modify > setup.py to make it pick up VS 2015 easily enough. > > regards, > Tony > > > On Wed, Sep 2, 2015 at 8:45 PM germano carella > > wrote: > > Hi to all, > The question is in object: can I use python for .net on python 3.4, > windows 10 and visual studio 2015? > I tried to build solution with vs 2015, no errors when compiling. But, > by starting NPython.exe it seems to look at python27.dll instead of > python34.dll. > I used 2to3 script in pythonnet folder before trying to compile > with vs2015. > Now, there is any way to use it with python 3.4? > Thanks! > _________________________________________________ > 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: From denis.akhiyarov at gmail.com Tue Sep 8 16:17:54 2015 From: denis.akhiyarov at gmail.com (Denis Akhiyarov) Date: Tue, 08 Sep 2015 14:17:54 +0000 Subject: [Python.NET] keyword arguments In-Reply-To: References: Message-ID: Hi Dave, Can you please file an issue on github? I think keyword args is important functionality since the call signature is not visible from Python to c# and vice versa unlike IronPython. Does this work on IronPython? github.com/pythonnet On Thu, Sep 3, 2015, 4:10 AM Dave Hirschfeld wrote: > It doesn't look like it's supported to instantiate a C# class from Python > using keyword arguments? Is that the case or am I missing something. > > If it's not supported would it theoretically be possible and if so how > difficult would it be to implement? > > > Thanks, > Dave > > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > https://mail.python.org/mailman/listinfo/pythondotnet > -------------- next part -------------- An HTML attachment was scrubbed... URL: From novin01 at gmail.com Wed Sep 9 04:11:42 2015 From: novin01 at gmail.com (Dave Hirschfeld) Date: Wed, 9 Sep 2015 02:11:42 +0000 (UTC) Subject: [Python.NET] keyword arguments References: Message-ID: Denis Akhiyarov writes: > > > Hi Dave, > Can you please file an issue on github? I think keyword args is important functionality since the call signature is not visible from Python to c# and vice versa unlike IronPython. Does this work on IronPython? > github.com/pythonnet > > On Thu, Sep 3, 2015, 4:10 AM?Dave Hirschfeld gmail.com> wrote: > > It doesn't look like it's supported to instantiate a C# class from Python > using keyword arguments? Is that the case or am I missing something. > If it's not supported would it theoretically be possible and if so how > difficult would it be to implement? > Thanks, > Dave Done! https://github.com/pythonnet/pythonnet/issues/99 Thanks, Dave From novin01 at gmail.com Wed Sep 9 04:40:49 2015 From: novin01 at gmail.com (Dave Hirschfeld) Date: Wed, 9 Sep 2015 02:40:49 +0000 (UTC) Subject: [Python.NET] Infinity Handling Message-ID: It seems that there's no way to pass an infinity from Python to C#? Is that correct, or am I missing something? In case the former is correct I've filed an enhancement request issue on github: https://github.com/pythonnet/pythonnet/issues/100 Thanks, Dave From jonnojohnson at gmail.com Thu Sep 10 20:50:39 2015 From: jonnojohnson at gmail.com (Jonno) Date: Thu, 10 Sep 2015 13:50:39 -0500 Subject: [Python.NET] Build guide for Python.NET using Mono on Linux? Message-ID: I'm very unfamiliar with Mono & C#. Is there a guide or instructions anywhere for building using Mono on Linux? I'm using Anaconda64 on Ubuntu with Mono 4.0.12 If I try to build the whole solution in Mono (same results with 2.0, master & develop zips from Github) I get 2 errors: Error CS1566: Error reading resource file `/home/mj-ubuntu/Public/pythonnet-develop/src/console/$(PythonBuildDir)/Python.Runtime.dll' (CS1566) (Console) /home/mj-ubuntu/Public/pythonnet-develop/src/clrmodule/ClrModule.cs(6,6): Error CS0246: The type or namespace name `RGiesecke' could not be found. Are you missing an assembly reference? (CS0246) (clrmodule) Any thoughts/suggestions/ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis.akhiyarov at gmail.com Thu Sep 10 23:35:47 2015 From: denis.akhiyarov at gmail.com (Denis Akhiyarov) Date: Thu, 10 Sep 2015 21:35:47 +0000 Subject: [Python.NET] Build guide for Python.NET using Mono on Linux? In-Reply-To: References: Message-ID: You need to change the configuration of build to Mono from Win. Maybe MonoDevelop supports this for solution/project files? If you build using setup.py what is the result? On Thu, Sep 10, 2015, 4:28 PM Jonno wrote: > I'm very unfamiliar with Mono & C#. Is there a guide or instructions > anywhere for building using Mono on Linux? > > I'm using Anaconda64 on Ubuntu with Mono 4.0.12 > > If I try to build the whole solution in Mono (same results with 2.0, > master & develop zips from Github) I get 2 errors: > > Error CS1566: Error reading resource file > `/home/mj-ubuntu/Public/pythonnet-develop/src/console/$(PythonBuildDir)/Python.Runtime.dll' > (CS1566) (Console) > > /home/mj-ubuntu/Public/pythonnet-develop/src/clrmodule/ClrModule.cs(6,6): > Error CS0246: The type or namespace name `RGiesecke' could not be found. > Are you missing an assembly reference? (CS0246) (clrmodule) > > Any thoughts/suggestions/ideas? > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > https://mail.python.org/mailman/listinfo/pythondotnet -------------- next part -------------- An HTML attachment was scrubbed... URL: From tony at pyxll.com Fri Sep 11 10:15:19 2015 From: tony at pyxll.com (Tony Roberts) Date: Fri, 11 Sep 2015 08:15:19 +0000 Subject: [Python.NET] Build guide for Python.NET using Mono on Linux? In-Reply-To: References: Message-ID: Look at .travis.yml or the travis-ci jobs to see how to build on Linux. Tony On Thu, Sep 10, 2015 at 10:35 PM Denis Akhiyarov wrote: > You need to change the configuration of build to Mono from Win. Maybe > MonoDevelop supports this for solution/project files? If you build using > setup.py what is the result? > > On Thu, Sep 10, 2015, 4:28 PM Jonno wrote: > >> I'm very unfamiliar with Mono & C#. Is there a guide or instructions >> anywhere for building using Mono on Linux? >> >> I'm using Anaconda64 on Ubuntu with Mono 4.0.12 >> >> If I try to build the whole solution in Mono (same results with 2.0, >> master & develop zips from Github) I get 2 errors: >> >> Error CS1566: Error reading resource file >> `/home/mj-ubuntu/Public/pythonnet-develop/src/console/$(PythonBuildDir)/Python.Runtime.dll' >> (CS1566) (Console) >> >> /home/mj-ubuntu/Public/pythonnet-develop/src/clrmodule/ClrModule.cs(6,6): >> Error CS0246: The type or namespace name `RGiesecke' could not be found. >> Are you missing an assembly reference? (CS0246) (clrmodule) >> >> Any thoughts/suggestions/ideas? >> _________________________________________________ >> 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: From jonnojohnson at gmail.com Fri Sep 11 21:31:24 2015 From: jonnojohnson at gmail.com (Jonno) Date: Fri, 11 Sep 2015 14:31:24 -0500 Subject: [Python.NET] Build guide for Python.NET using Mono on Linux? In-Reply-To: References: Message-ID: Thanks Tony, the instructions in travis.yml worked - mostly. I had a glib-2.0 not found error that I solved by installing libgtk2.0 then it completed ok. On Fri, Sep 11, 2015 at 3:15 AM, Tony Roberts wrote: > Look at .travis.yml or the travis-ci jobs to see how to build on Linux. > > Tony > > > On Thu, Sep 10, 2015 at 10:35 PM Denis Akhiyarov < > denis.akhiyarov at gmail.com> wrote: > >> You need to change the configuration of build to Mono from Win. Maybe >> MonoDevelop supports this for solution/project files? If you build using >> setup.py what is the result? >> >> On Thu, Sep 10, 2015, 4:28 PM Jonno wrote: >> >>> I'm very unfamiliar with Mono & C#. Is there a guide or instructions >>> anywhere for building using Mono on Linux? >>> >>> I'm using Anaconda64 on Ubuntu with Mono 4.0.12 >>> >>> If I try to build the whole solution in Mono (same results with 2.0, >>> master & develop zips from Github) I get 2 errors: >>> >>> Error CS1566: Error reading resource file >>> `/home/mj-ubuntu/Public/pythonnet-develop/src/console/$(PythonBuildDir)/Python.Runtime.dll' >>> (CS1566) (Console) >>> >>> /home/mj-ubuntu/Public/pythonnet-develop/src/clrmodule/ClrModule.cs(6,6): >>> Error CS0246: The type or namespace name `RGiesecke' could not be found. >>> Are you missing an assembly reference? (CS0246) (clrmodule) >>> >>> Any thoughts/suggestions/ideas? >>> _________________________________________________ >>> 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 > > > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > https://mail.python.org/mailman/listinfo/pythondotnet > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fernandez_dan2 at hotmail.com Thu Sep 17 10:49:49 2015 From: fernandez_dan2 at hotmail.com (Daniel Fernandez) Date: Thu, 17 Sep 2015 02:49:49 -0600 Subject: [Python.NET] Support for Python 3.5 Message-ID: Hi All, I was wondering when there will be a release for Python 3.5? I'm not sure if that is in the works. Thanks. Danny -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis.akhiyarov at gmail.com Thu Sep 17 16:41:38 2015 From: denis.akhiyarov at gmail.com (Denis Akhiyarov) Date: Thu, 17 Sep 2015 14:41:38 +0000 Subject: [Python.NET] Support for Python 3.5 In-Reply-To: References: Message-ID: No one worked on this based on commits. The code needs to be updated with corresponding flag, not sure if Py34 will still work. But definitely wheels need to be generated for pypi. Feel free to open issue. On Thu, Sep 17, 2015, 9:15 AM Daniel Fernandez wrote: > Hi All, > > > > I was wondering when there will be a release for Python 3.5? I?m not sure > if that is in the works. > > > > Thanks. > > > > Danny > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > https://mail.python.org/mailman/listinfo/pythondotnet -------------- next part -------------- An HTML attachment was scrubbed... URL: From fernandez_dan2 at hotmail.com Thu Sep 17 19:37:17 2015 From: fernandez_dan2 at hotmail.com (Daniel Fernandez) Date: Thu, 17 Sep 2015 11:37:17 -0600 Subject: [Python.NET] Support for Python 3.5 In-Reply-To: References: Message-ID: It?s done created an issue, https://github.com/pythonnet/pythonnet/issues/103. From: PythonDotNet [mailto:pythondotnet-bounces+fernandez_dan2=hotmail.com at python.org] On Behalf Of Denis Akhiyarov Sent: Thursday, September 17, 2015 8:42 AM To: A list for users and developers of Python for .NET Subject: Re: [Python.NET] Support for Python 3.5 No one worked on this based on commits. The code needs to be updated with corresponding flag, not sure if Py34 will still work. But definitely wheels need to be generated for pypi. Feel free to open issue. On Thu, Sep 17, 2015, 9:15 AM Daniel Fernandez > wrote: Hi All, I was wondering when there will be a release for Python 3.5? I?m not sure if that is in the works. Thanks. Danny _________________________________________________ Python.NET mailing list - PythonDotNet at python.org https://mail.python.org/mailman/listinfo/pythondotnet -------------- next part -------------- An HTML attachment was scrubbed... URL: From germano.carella at gmail.com Thu Sep 17 17:51:16 2015 From: germano.carella at gmail.com (germano carella) Date: Thu, 17 Sep 2015 17:51:16 +0200 Subject: [Python.NET] Support for Python 3.5 In-Reply-To: References: Message-ID: <55FAE174.6080604@gmail.com> I tried to compile it with visual studio 2015. In setup.py I modified import _winreg with: import winreg as _winreg I replaced key for msbuild version 14.0. Clr.pyd is compiled, but python.runtime.dll and others aren't. I attach the log, it seems to be wrong a constant, but I'm blind, I don't know how to search it... Code is so big! Best regards, Germano Il 17/09/2015 16:41, Denis Akhiyarov ha scritto: > > No one worked on this based on commits. The code needs to be updated > with corresponding flag, not sure if Py34 will still work. But > definitely wheels need to be generated for pypi. Feel free to open issue. > > > On Thu, Sep 17, 2015, 9:15 AM Daniel Fernandez > > wrote: > > Hi All, > > I was wondering when there will be a release for Python 3.5? I?m > not sure if that is in the works. > > Thanks. > > Danny > > _________________________________________________ > 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: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: log URL: From denis.akhiyarov at gmail.com Thu Sep 17 22:26:03 2015 From: denis.akhiyarov at gmail.com (Denis Akhiyarov) Date: Thu, 17 Sep 2015 20:26:03 +0000 Subject: [Python.NET] Support for Python 3.5 In-Reply-To: <55FAE174.6080604@gmail.com> References: <55FAE174.6080604@gmail.com> Message-ID: Did you try to compile develop branch? On Thu, Sep 17, 2015, 2:50 PM germano carella wrote: > I tried to compile it with visual studio 2015. > In setup.py I modified > import _winreg > with: > import winreg as _winreg > I replaced key for msbuild version 14.0. > Clr.pyd is compiled, but python.runtime.dll and others aren't. > I attach the log, it seems to be wrong a constant, but I'm blind, I don't > know how to search it... Code is so big! > Best regards, > Germano > > > Il 17/09/2015 16:41, Denis Akhiyarov ha scritto: > > No one worked on this based on commits. The code needs to be updated with > corresponding flag, not sure if Py34 will still work. But definitely wheels > need to be generated for pypi. Feel free to open issue. > > On Thu, Sep 17, 2015, 9:15 AM Daniel Fernandez > wrote: > >> Hi All, >> >> >> >> I was wondering when there will be a release for Python 3.5? I?m not sure >> if that is in the works. >> >> >> >> Thanks. >> >> >> >> Danny >> _________________________________________________ >> Python.NET mailing list - PythonDotNet at python.org >> https://mail.python.org/mailman/listinfo/pythondotnet > > > > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.orghttps://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: From germano.carella at gmail.com Fri Sep 18 07:32:14 2015 From: germano.carella at gmail.com (germano carella) Date: Fri, 18 Sep 2015 07:32:14 +0200 Subject: [Python.NET] Support for Python 3.5 In-Reply-To: References: <55FAE174.6080604@gmail.com> Message-ID: <55FBA1DE.5080902@gmail.com> Yes. Il 17/09/2015 22:26, Denis Akhiyarov ha scritto: > > Did you try to compile develop branch? > > > On Thu, Sep 17, 2015, 2:50 PM germano carella > > wrote: > > I tried to compile it with visual studio 2015. > In setup.py I modified > import _winreg > with: > import winreg as _winreg > I replaced key for msbuild version 14.0. > Clr.pyd is compiled, but python.runtime.dll and others aren't. > I attach the log, it seems to be wrong a constant, but I'm blind, > I don't know how to search it... Code is so big! > Best regards, > Germano > > > Il 17/09/2015 16:41, Denis Akhiyarov ha scritto: >> >> No one worked on this based on commits. The code needs to be >> updated with corresponding flag, not sure if Py34 will still >> work. But definitely wheels need to be generated for pypi. Feel >> free to open issue. >> >> >> On Thu, Sep 17, 2015, 9:15 AM Daniel Fernandez >> > >> wrote: >> >> Hi All, >> >> I was wondering when there will be a release for Python 3.5? >> I?m not sure if that is in the works. >> >> Thanks. >> >> Danny >> >> _________________________________________________ >> 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 > > _________________________________________________ > 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: