From markv at unity3d.com Thu Nov 7 15:44:19 2019 From: markv at unity3d.com (Mark Visser) Date: Thu, 7 Nov 2019 15:44:19 -0500 Subject: [Python.NET] Working group meeting notes for November 7, 2019 Message-ID: <977AC26A-6BDF-48A1-9C56-EDC040787933@unity3d.com> Attendees: Benoit Hudson (ImgSpc), Amos Li, Mark Visser (Unity) Agenda Review action items from last meeting Notes Update from Victor: The only thing I?ve done though is reviewing PyBuffer request PR: https://github.com/pythonnet/pythonnet/pull/980 , for which, sadly, tests are still not passing. Update from Benedikt: I've been mostly working on clr_loader, will open a PR on pythonnet for this weekend. .NET foundation: Mark finally got a reply back from his contact at Unity He will loop Benedikt in on the e-mail as soon as he's introduced to someone on the .NET foundation Soft restart: PR is large and hard to review https://github.com/pythonnet/pythonnet/pull/958#issuecomment-551230878 documented here: https://docs.google.com/document/d/1a9OLsdKHXJ6MxHjo0WlVRcfjAiaP5hONNKUKKH6Tr-o Benoit will break out SlotsHolder and __import__ restore into smaller PRs Amos can you continue to break https://github.com/pythonnet/pythonnet/pull/958 into smaller PRs to land individually? discussion about system modules restoration - clarity found split removal of native code page into another PR after everything else has landed Regarding the meeting time: Amos pointed out that the meeting is at 4am his local time - could we move this meeting to a better time for him? possible times: 4 hours earlier (12pm EST, 8am PST, 12am China) 2 hours later (5pm EST, 11am PST, 6am China) 3 hours later (6pm EST, 12pm PST, 7am China) please discuss! Action Items Mark - still working on getting in touch with .NET foundation Benoit - document how to use pythonnet when you expect to run multithreaded python code (BeginAllowThreads/EndAllowThreads) in an embedded interpreter Victor - will create Github issues for items in the Quantconnect PR and figure out plan for bringing more generic solutions to master. ? - can someone research how hard it would be to move the CI to Github Actions? Benoit - will break out SlotsHolder and __import__ restore into smaller PRs Amos - will continue to break https://github.com/pythonnet/pythonnet/pull/958 into smaller PRs following Benoit's example All - please discuss changing the meeting time on the list -------------- next part -------------- An HTML attachment was scrubbed... URL: From amos_402 at msn.com Fri Nov 8 06:31:32 2019 From: amos_402 at msn.com (Li Amos) Date: Fri, 8 Nov 2019 11:31:32 +0000 Subject: [Python.NET] Working group meeting notes for November 7, 2019 In-Reply-To: <977AC26A-6BDF-48A1-9C56-EDC040787933@unity3d.com> References: <977AC26A-6BDF-48A1-9C56-EDC040787933@unity3d.com> Message-ID: I prefer earlier. ?? ________________________________ From: PythonDotNet on behalf of Mark Visser Sent: Friday, November 8, 2019 4:44:19 AM To: PythonDotNet Subject: [Python.NET] Working group meeting notes for November 7, 2019 Attendees: Benoit Hudson (ImgSpc), Amos Li, Mark Visser (Unity) Agenda * Review action items from last meeting Notes Update from Victor: The only thing I?ve done though is reviewing PyBuffer request PR: https://github.com/pythonnet/pythonnet/pull/980, for which, sadly, tests are still not passing. Update from Benedikt: I've been mostly working on clr_loader, will open a PR on pythonnet for this weekend. .NET foundation: * Mark finally got a reply back from his contact at Unity * He will loop Benedikt in on the e-mail as soon as he's introduced to someone on the .NET foundation Soft restart: * PR is large and hard to review * https://github.com/pythonnet/pythonnet/pull/958#issuecomment-551230878 * documented here: https://docs.google.com/document/d/1a9OLsdKHXJ6MxHjo0WlVRcfjAiaP5hONNKUKKH6Tr-o * Benoit will break out SlotsHolder and __import__ restore into smaller PRs * Amos can you continue to break https://github.com/pythonnet/pythonnet/pull/958 into smaller PRs to land individually? * discussion about system modules restoration - clarity found * split removal of native code page into another PR after everything else has landed Regarding the meeting time: * Amos pointed out that the meeting is at 4am his local time - could we move this meeting to a better time for him? * possible times: * 4 hours earlier (12pm EST, 8am PST, 12am China) * 2 hours later (5pm EST, 11am PST, 6am China) * 3 hours later (6pm EST, 12pm PST, 7am China) * please discuss! Action Items Mark - still working on getting in touch with .NET foundation Benoit - document how to use pythonnet when you expect to run multithreaded python code (BeginAllowThreads/EndAllowThreads) in an embedded interpreter Victor - will create Github issues for items in the Quantconnect PR and figure out plan for bringing more generic solutions to master. ? - can someone research how hard it would be to move the CI to Github Actions? Benoit - will break out SlotsHolder and __import__ restore into smaller PRs Amos - will continue to break https://github.com/pythonnet/pythonnet/pull/958 into smaller PRs following Benoit's example All - please discuss changing the meeting time on the list -------------- next part -------------- An HTML attachment was scrubbed... URL: From markv at unity3d.com Mon Nov 11 11:51:56 2019 From: markv at unity3d.com (Mark Visser) Date: Mon, 11 Nov 2019 11:51:56 -0500 Subject: [Python.NET] Meeting time change proposal In-Reply-To: References: <977AC26A-6BDF-48A1-9C56-EDC040787933@unity3d.com> Message-ID: <3F5E235A-F1EA-4304-BB14-B141FFCD3D9B@unity3d.com> >> Regarding the meeting >> time: >> Amos pointed out that the meeting is >> at 4am his local time - could we move this meeting to a better time for him? > On Nov 8, 2019, at 6:31 AM, Li Amos wrote: > > I prefer earlier. ? What does everyone think about 1am China Standard, 9am PST, 12pm EST, 6pm CET? We could also go earlier ? Victor, you're on the West Coast, right? Can you do earlier than 9am? cheers > > From: PythonDotNet on behalf of Mark Visser > Sent: Friday, November 8, 2019 4:44:19 AM > To: PythonDotNet > Subject: [Python.NET] Working group meeting notes for November 7, 2019 > > Attendees: Benoit Hudson (ImgSpc), Amos Li, Mark Visser (Unity) > > Agenda > > Review action items from last meeting > > > Notes > Update from Victor: > The only thing I?ve done though is reviewing PyBuffer request PR: https://github.com/pythonnet/pythonnet/pull/980 , > for which, sadly, tests are still not passing. > > Update from Benedikt: > I've been mostly working on clr_loader, will open a PR on pythonnet for this weekend. > > .NET foundation: > > Mark finally got a reply back from > his contact at Unity > > > He will loop Benedikt in on the e-mail > as soon as he's introduced to someone on the .NET foundation > > > Soft restart: > > PR is large and hard to review > > > https://github.com/pythonnet/pythonnet/pull/958#issuecomment-551230878 > > documented here: > https://docs.google.com/document/d/1a9OLsdKHXJ6MxHjo0WlVRcfjAiaP5hONNKUKKH6Tr-o > > Benoit will break out SlotsHolder and > __import__ restore into smaller PRs > > > Amos can you continue to break > https://github.com/pythonnet/pythonnet/pull/958 > into smaller PRs to land individually? > > > discussion about system modules restoration > - clarity found > > > split removal of native code page into > another PR after everything else has landed > > > Regarding the meeting > time: > > Amos pointed out that the meeting is > at 4am his local time - could we move this meeting to a better time for him? > > > possible times: > > > 4 hours earlier (12pm EST, 8am PST, > 12am China) > > > 2 hours later (5pm EST, 11am PST, 6am > China) > > > 3 hours later (6pm EST, 12pm PST, 7am > China) > > > please discuss! > > > Action > Items > Mark - still working > on getting in touch with .NET foundation > Benoit - document > how to use pythonnet when you expect to run multithreaded python code (BeginAllowThreads/EndAllowThreads) in an embedded interpreter > Victor - will create > Github issues for items in the Quantconnect PR and figure out plan for bringing more generic solutions to master. > ? - can someone > research how hard it would be to move the CI to Github Actions? > Benoit - will break > out SlotsHolder and __import__ restore into smaller PRs > Amos - will continue > to break https://github.com/pythonnet/pythonnet/pull/958 > into smaller PRs following Benoit's example > All - please discuss > changing the meeting time on the list > > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > https://mail.python.org/mailman/listinfo/pythondotnet -------------- next part -------------- An HTML attachment was scrubbed... URL: From markv at unity3d.com Tue Nov 19 11:48:14 2019 From: markv at unity3d.com (Mark Visser) Date: Tue, 19 Nov 2019 11:48:14 -0500 Subject: [Python.NET] Working group meeting notes for November 7, 2019 In-Reply-To: References: <977AC26A-6BDF-48A1-9C56-EDC040787933@unity3d.com> Message-ID: <78E030B4-C7DB-4AFA-9854-725845D0E8A7@unity3d.com> Just a reminder that the next Python.NET working group meeting will be this Thursday, November 21st at 3pm EST (12pm PST, 9pm CET). > On Nov 8, 2019, at 6:31 AM, Li Amos wrote: > > I prefer earlier. ? > From: PythonDotNet on behalf of Mark Visser > Sent: Friday, November 8, 2019 4:44:19 AM > To: PythonDotNet > Subject: [Python.NET] Working group meeting notes for November 7, 2019 > > Attendees: Benoit Hudson (ImgSpc), Amos Li, Mark Visser (Unity) > > Agenda > > Review action items from last meeting > > > Notes > Update from Victor: > The only thing I?ve done though is reviewing PyBuffer request PR: https://github.com/pythonnet/pythonnet/pull/980 , > for which, sadly, tests are still not passing. > > Update from Benedikt: > I've been mostly working on clr_loader, will open a PR on pythonnet for this weekend. > > .NET foundation: > > Mark finally got a reply back from > his contact at Unity > > > He will loop Benedikt in on the e-mail > as soon as he's introduced to someone on the .NET foundation > > > Soft restart: > > PR is large and hard to review > > > https://github.com/pythonnet/pythonnet/pull/958#issuecomment-551230878 > > documented here: > https://docs.google.com/document/d/1a9OLsdKHXJ6MxHjo0WlVRcfjAiaP5hONNKUKKH6Tr-o > > Benoit will break out SlotsHolder and > __import__ restore into smaller PRs > > > Amos can you continue to break > https://github.com/pythonnet/pythonnet/pull/958 > into smaller PRs to land individually? > > > discussion about system modules restoration > - clarity found > > > split removal of native code page into > another PR after everything else has landed > > > Regarding the meeting > time: > > Amos pointed out that the meeting is > at 4am his local time - could we move this meeting to a better time for him? > > > possible times: > > > 4 hours earlier (12pm EST, 8am PST, > 12am China) > > > 2 hours later (5pm EST, 11am PST, 6am > China) > > > 3 hours later (6pm EST, 12pm PST, 7am > China) > > > please discuss! > > > Action > Items > Mark - still working > on getting in touch with .NET foundation > Benoit - document > how to use pythonnet when you expect to run multithreaded python code (BeginAllowThreads/EndAllowThreads) in an embedded interpreter > Victor - will create > Github issues for items in the Quantconnect PR and figure out plan for bringing more generic solutions to master. > ? - can someone > research how hard it would be to move the CI to Github Actions? > Benoit - will break > out SlotsHolder and __import__ restore into smaller PRs > Amos - will continue > to break https://github.com/pythonnet/pythonnet/pull/958 > into smaller PRs following Benoit's example > All - please discuss > changing the meeting time on the list > > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > https://mail.python.org/mailman/listinfo/pythondotnet -------------- next part -------------- An HTML attachment was scrubbed... URL: From markv at unity3d.com Thu Nov 21 16:14:48 2019 From: markv at unity3d.com (Mark Visser) Date: Thu, 21 Nov 2019 16:14:48 -0500 Subject: [Python.NET] Working group notes for November 21, 2019 Message-ID: <255EDC45-DA2D-48FC-BD53-0CE0A1C44993@unity3d.com> Attendees: Victor, Benoit, Mark, Amos, Benedikt Agenda Review action items from last meeting: Mark - got in touch with .NET foundation Benoit - document how to use pythonnet when you expect to run multithreaded python code (BeginAllowThreads/EndAllowThreads) in an embedded interpreter Victor - will create Github issues for items in the Quantconnect PR and figure out plan for bringing more generic solutions to master. ? - can someone research how hard it would be to move the CI to Github Actions? Benoit - will break out SlotsHolder and __import__ restore into smaller PRs Amos - will continue to break https://github.com/pythonnet/pythonnet/pull/958 into smaller PRs following Benoit's example All - please discuss changing the meeting time on the list Notes .NET foundation - Benedikt working on it with contact & maintainer of IronPython Multithreaded python code - Benoit still working on it, has a deadlock issue that's probably unrelated. WPF has a similar issue? There are old tickets around where people tried this before. Possibility of making it automatic, but requires a major version bump. https://github.com/pythonnet/pythonnet/issues/990 for example. Quantconnect PR - perf PR was OK, but is a fairly small part of the larger PR. Need to get .NET standard / core stuff on the way so that they don't fork off. Github actions - currently have appveyer and travis CI implementations, but in theory github actions can do both and also work on mac. Could cover all platforms. One of the unit tests crashes on Mac - ongoing problem, would be good to have CI for that. Possible plan is to start with github actions on Mac, then extend to Linux, finally Windows. __import__ restore - merged (moved out of pull 958) SlotsHolder in progress - goal is to make it so that PyFinalize doesn't need to be called to disconnect C# from Python (moved out of pull 958) General note: please make PRs as small and targeted as possible - large PRs are very difficult to review and judge the impact and risk. Large PRs won't likely be merged. Discussion around time to accommodate Amos - we will move the meeting 3 hours earlier. Need to start planning for a point release (2.4.1) including Python 3.8 support. PyBuffer change - good addition but is crashing in a non-obvious way. Maybe not a candidate for the point release. If someone needs it for the next release, they could try to fix it in branch. We shouldn't have any breaking changes since 2.4.0, only bug fixes. Benedikt - Haven't been able to integrate CLR loader yet (ripping out old stuff). Will try to have the interface ready for the CLR loader. Python.NET exposes a clr module inside Python which exposes .NET VM startup functions. Mono vs. Core have different code paths currently. Current approach in latest .NET core seems to be stable. New CLR loader abstracts three different ways of loading .NET. Technical discussion. Proposal: pass parameters as JSON. Alternatives? Would also enable choosing runtime version of Python. Benchmarking - Still in progress. PR will be open today. Could CLR loader be completely separate from Python.NET? Benedikt - sure, it's useful on its own as a low-level mechanism to talk to .NET. On the other hand Python interop is interconnected with how Python.NET works and should stay in the project. No plans to have more libraries than CLR loader (which isn't actually needed if you're embedding Python within .NET) and pure interop + abstractions on top. Action Items Benedikt - continue working on joining .NET foundation Amos - continue breaking up pull 958 into smaller PRs to make it easier to review and merge. e.g. have a single PR that gets reference counts right and doesn't touch GC chains. See Benoit's example of the __import__ restore PR for best practices. Amos - same for other older PRs Mark - move meeting 3 hours earlier Benedikt - will try to reproduce PyBuffer crash locally Benedikt - will check if there are any breaking changes since 2.4.0 Benedikt - continue exploring CLR loader, splitting parts into separate Python interop DLLs, have main Python runtime implement layers on top The meeting notes google doc is here . Feel free to correct or add additional information. The next working group meeting will be held on December 5th at 12pm EST, 9am PST, 6pm CET, 1am China. Please note that this is three hours earlier than previous meetings. Mark Visser Tooling Dev Manager Unity Technologies - www.unity3d.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kennywc.lin at gmail.com Sun Nov 24 04:55:13 2019 From: kennywc.lin at gmail.com (Weichen Lin) Date: Sun, 24 Nov 2019 09:55:13 -0000 Subject: [Python.NET] C# assembly module importing error using pythonnet after .py to .pyd conversion. Message-ID: <000001d5a2ad$1e3bb8d0$5ab32a70$@gmail.com> Dear Sir, Thank you for your effort in developing a wonderful module pythonnet so that I can easily interface the C# assembly (https://www.kgifutures.com.tw/content/images_D8/QuoteCom%20API-20170425.zip ) offered by my futures dealer. A working simple code is as follows, using the supplied assembly in bin\release\QuoteCom.dll: # File name: Test.py import clr clr.AddReference("QuoteCom") import Intelligence QC = Intelligence.QuoteCom("211.20.186.12", 8000, "API", "b6eb") However, it caused an error importing "Intelligence" module when I converted .py to .pyd. Conversion was done using: # setup.py from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext ext_modules = [ Extension("Test", sources=["Test.py"]), ] setup( name = 'My Program', cmdclass = {'build_ext': build_ext}, ext_modules = ext_modules ) # DOS command: Python setup.py build_ext -inplace Is there any step I've done wrong? Any response is appreciated. Thank you very much! Best regards, Weichen Lin -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 158249 bytes Desc: not available URL: