Re: [Python.NET] Working group meeting notes for December 19, 2019

2019-12-19 Thread Denis Akhiyarov
Don’t remove moderation, unless you can get rid of spam On Thu, Dec 19, 2019 at 1:03 PM Mark Visser wrote: > Attendees: Benedikt, Victor, Amos, Mohamed, Mark Agenda > >- Review action items from last meeting: >- Benedikt - continue working on joining .NET foundation > - Benoit - mu

Re: [Python.NET] 4 PythonDotNet moderator request(s) waiting

2019-12-19 Thread Denis Akhiyarov
> On Dec 18, 2019, at 9:42 AM, Denis Akhiyarov > wrote: > > Since no one is moderating this pythondotnet mailing list, I would like to > archive this mailing list unless someone is willing to take over? I will > wait for one week. I’m no longer involved with the project. >

Re: [Python.NET] Fwd: 4 PythonDotNet moderator request(s) waiting

2019-12-19 Thread Denis Akhiyarov
gt; On 18 Dec 2019, at 14:42, Denis Akhiyarov > wrote: > >  > Since no one is moderating this pythondotnet mailing list, I would like to > archive this mailing list unless someone is willing to take over? I will > wait for one week. I’m no longer involved with the p

[Python.NET] Fwd: 4 PythonDotNet moderator request(s) waiting

2019-12-18 Thread Denis Akhiyarov
Since no one is moderating this pythondotnet mailing list, I would like to archive this mailing list unless someone is willing to take over? I will wait for one week. I’m no longer involved with the project. Thanks, Denis -- Forwarded message - From: Date: Wed, Dec 18, 2019 at 7:

Re: [Python.NET] Memory management when embedding python.

2019-09-08 Thread Denis Akhiyarov
There is a lot more going on this topic of GC in GitHub repo, but I'm not involved with the project anymore. Anyway if anyone is interested in moderating this mailing list, please let me know. Thanks, Denis On Sun, Sep 8, 2019, 10:35 AM Thomas Lundgaard Hansen < thomas.lundga...@3shape.com> wro

[Python.NET] Python for .NET Development Doodle Google Hangouts Meeting Invite

2019-06-16 Thread Denis Akhiyarov
Please fill out this form with time slots available to you: https://doodle.com/poll/9asah3hczm3vvhtp All times are displayed at least for me in America/Chicago Central US Time Zone, but it may display for you in your time zone. Please verify it before making your selections. We have about 10 peo

Re: [Python.NET] Retiring Python 2.7

2019-06-14 Thread Denis Akhiyarov
Ivan, I just noticed your message. My opinion still applies and should work for you, if the release in 2019 includes at least partial .NET Core support. Note that .NET runtimes are also moving fast and hence may require a separate discussion about which versions should be supported for .NET Framewo

Re: [Python.NET] Retiring Python 2.7

2019-06-14 Thread Denis Akhiyarov
It is possible to write code that targets both Python 2 and Python 3 runtimes and do testing while still using legacy Python 2 as the runtime in production. There are plenty of tools and examples from large tech companies to support the transition. IMO: all efforts to support legacy Python 2 runti

Re: [Python.NET] PythonDotNet Digest, Vol 175, Issue 3

2019-06-11 Thread Denis Akhiyarov
https://mail.python.org/mailman/listinfo/pythondotnet > or, via email, send a message with subject or body 'help' to > pythondotnet-requ...@python.org > > You can reach the person managing the list

Re: [Python.NET] pythonnet development

2019-06-10 Thread Denis Akhiyarov
ch better, 1-2 in-person meetings). > > > > Regards, > > Victor > > > > *From: *Denis Akhiyarov > *Sent: *Friday, June 7, 2019 3:47 PM > *To: *A list for users and developers of Python for .NET > > *Cc: *Benedikt Reinartz > *Subject: *Re: [Python.NET] pythonn

Re: [Python.NET] pythonnet development

2019-06-07 Thread Denis Akhiyarov
On Fri, Jun 7, 2019, 12:45 PM Victor “LOST” Milovanov wrote: > Hi Denis, > > > > Who are the current maintainers of Python.NET repo? > > > > Regards, > > Victor > > > > *From: *Denis Akhiyarov > *Sent: *Friday, June 7, 2019 6:31 AM > *To:

[Python.NET] pythonnet development

2019-06-07 Thread Denis Akhiyarov
I would like to step down from pythonnet development, this mailing list, and helping out on stackoverflow. If someone is interested in moderating this mailing list, please reach out to me. Thanks, Denis _ Python.NET mailing list - PythonDotNet@pytho

Re: [Python.NET] Integration pythonnet package on linux

2019-01-19 Thread Denis Akhiyarov
Your issue is very obvious if you read the error message: ` ModuleNotFoundError: No module named 'pycparser'` I cannot find the instructions that I wrote in the wiki - someone might have removed them! Basically you need pycparser, clang, glibc: https://github.com/pythonnet/pythonnet/issues/241#

Re: [Python.NET] Embedded Python .Net example - running scripts

2018-11-30 Thread Denis Akhiyarov
Reloading/shutdown support of embedding CPython with pythonnet was added in the master branch. See this pull request: https://github.com/pythonnet/pythonnet/pull/752 On Thu, Oct 4, 2018 at 9:50 PM Denis Akhiyarov wrote: > Please search the issue tracker on github for shutdown related iss

Re: [Python.NET] Pip Install Pythonnet error

2018-11-30 Thread Denis Akhiyarov
The error you got was due to python 3.7 for which support is in the master branch now. On Fri, Oct 12, 2018 at 12:17 AM Phat Loc wrote: > Forget the last previous error. I running anaconda and there is a > different setup process. Thanks! > > > > *From:* Phat Loc > *Sent:* Wednesday, October 10,

Re: [Python.NET] PythonNet support for Python 3.7

2018-11-30 Thread Denis Akhiyarov
pythonnet support for Python 3.7 is in the master branch. On Fri, Oct 12, 2018 at 12:22 AM Denis Akhiyarov wrote: > Would you like to contribute Python 3.7 support? > > On Fri, Oct 12, 2018, 12:17 AM Surya Kant Pradhan < > surya.pradhan...@gmail.com> wrote: > >> Hi

Re: [Python.NET] PythonNet support for Python 3.7

2018-10-11 Thread Denis Akhiyarov
Would you like to contribute Python 3.7 support? On Fri, Oct 12, 2018, 12:17 AM Surya Kant Pradhan < surya.pradhan...@gmail.com> wrote: > Hi Dev Community, > > I was following the list of issues under: > https://github.com/pythonnet/pythonnet/issues/609, but not getting an > idea on when possibly

Re: [Python.NET] Embedded Python .Net example - running scripts

2018-10-04 Thread Denis Akhiyarov
Please search the issue tracker on github for shutdown related issues. This was discussed extensively. There is WIP pull request worked on by 3 people to support this reloading scenario in Unity. On Wed, Oct 3, 2018, 9:50 PM Ron Harding via PythonDotNet < pythondotnet@python.org> wrote: > Did y

Re: [Python.NET] Invoking a C# method with a python list

2018-09-24 Thread Denis Akhiyarov
This link below is probably a good staring point for "TypeError: No method matches given arguments". But ideally we should bring back the skipping of method resolution logic within a context manager whenever the user knows what he/she is doing. There is also explicit `.Overloads` option to force th

Re: [Python.NET] Using PyScope to set variables I can use in imported scripts

2018-09-24 Thread Denis Akhiyarov
I copied Wenguang Yang (@yagweb), who developed PyScope. Steve, did you look at the unit tests for PyScope? Thanks, Denis On Mon, Sep 24, 2018 at 8:28 AM Luke, Steve wrote: > I am new to Python.Net and trying to convert an application that used > IronPython to embed a Python environment into a

[Python.NET] Looking for experts in msbuild/nuget

2018-08-30 Thread Denis Akhiyarov
We are having some pythonnet build issues on Travis CI with Mono. Here is a bounty I opened on stackoverflow, if someone knows how to solve this error: https://stackoverflow.com/questions/51988395/build-failures-with-mono-5-14-0-177-msbuild-15-0-nuget-4-7-1-on-travis-ci-but ___

Re: [Python.NET] Tips for Debugging?

2018-07-24 Thread Denis Akhiyarov
I wrote a debugging tutorial using PTVS here and further improvements are welcome! https://github.com/pythonnet/pythonnet/wiki/Various-debugging-scenarios-of-embedded-CPython On Tue, Jul 10, 2018, 2:13 AM Jared Broad via PythonDotNet < pythondotnet@python.org> wrote: > Hello PythonNet > > Do yo

Re: [Python.NET] Cast PyObject to RoutedEventHandler

2018-06-19 Thread Denis Akhiyarov
Have you tried @clrmethod decorator? https://github.com/pythonnet/pythonnet/blob/master/src/runtime/resources/clr.py#L54 https://github.com/pythonnet/pythonnet/blob/master/src/tests/test_clrmethod.py#L14 On Tue, Jun 19, 2018 at 10:37 AM, WARD Steve wrote: > Can anyone tell me how to cast or Con

[Python.NET] New pythonnet presentation from Germany

2018-06-08 Thread Denis Akhiyarov
New pythonnet presentation: https://www.slideshare.net/mobile/StefanSchukat/introduction-to-pythonnet https://github.com/sschukat/PyNetExamples _ Python.NET mailing list - PythonDotNet@python.org https://mail.python.org/mailman/listinfo/pythondotnet

Re: [Python.NET] Passing a C# DateTime object to a Python script

2018-06-07 Thread Denis Akhiyarov
There is a pythonnet branch with datetime conversion implementation. Is this what you are looking for? https://github.com/QuantConnect/pythonnet/pull/8/files On Wed, May 30, 2018, 2:26 PM Ian Hannah wrote: > Hi, > > > > I have a simple python script: > > > > def test(datetime_or_doy): > >

Re: [Python.NET] Finalizers and proper dereference of CPython objects

2018-06-07 Thread Denis Akhiyarov
There is a fix for this but the code review and merging of related PR is not complete yet: https://github.com/pythonnet/pythonnet/issues/541 On Fri, Jun 1, 2018, 12:56 PM Tom Unger wrote: > > > PythonException, PyObjecdt, PyScope have finallizers defined as: > > > > ~PyObject() > >

Re: [Python.NET] mono_os_mutex_destroy issue with Python.NET

2018-05-07 Thread Denis Akhiyarov
By ARM target you mean RASPBERRY PI? Search issue tracker for pythonnet on GitHub for this. But this is definitely out of scope of pythonnet, unless someone steps up to add CI testing for this target. On Sun, May 6, 2018, 11:14 PM techi eth wrote: > I have tried console progmramme (nPython.exe)

Re: [Python.NET] Error in calling Python class method from C#

2018-04-29 Thread Denis Akhiyarov
You may get more feedback on stackoverflow than on this mailing list for questions like this: https://stackoverflow.com/questions/tagged/python.net?sort=newest&pageSize=50 On Fri, Apr 27, 2018 at 3:54 AM, techi eth wrote: > Any input on raised query. I think i am missing something very simple b

Re: [Python.NET] Using multiple versions of the same DLL

2018-04-29 Thread Denis Akhiyarov
I presume this is your question with an open bounty on it? https://stackoverflow.com/questions/49942487/python-for-net-how-to-explicitly-create-instances-of-c-sharp-classes-using-dif On Tue, Apr 24, 2018 at 7:04 AM, Joe wrote: > Hello, > > I found a rather old thread (2003) that describes how m

Re: [Python.NET] Embedding: finer control over module creation

2018-04-29 Thread Denis Akhiyarov
Tom, You may be interested in this PyScope implementation merged into pythonnet in 2017. This is in master branch but not in any release yet. https://github.com/pythonnet/pythonnet/pull/381 This was implemented by @yagweb (https://github.com/yagweb), who is now in core pythonnet team. Regarding

Re: [Python.NET] How to use C# object[] in python

2018-04-18 Thread Denis Akhiyarov
Is this a problem only for array of objects or the object itself? Might be this issue: https://github.com/pythonnet/pythonnet/issues/94 On Wed, Apr 18, 2018, 8:20 AM techi eth wrote: > Any hint or input on raised query will be helpful. > > Thanks > > On Mon, Apr 16, 2018 at 9:49 AM, techi eth

Re: [Python.NET] crash in pythonnet

2018-04-04 Thread Denis Akhiyarov
ume it could be something else. > Can any one have working setup on ubuntu14.04 with mono & python version. > > Configure option for mono or python have any relation ? > > On Wed, Apr 4, 2018 at 10:39 AM, Denis Akhiyarov < > denis.akhiya...@gmail.com> wrote: > >>

Re: [Python.NET] crash in pythonnet

2018-04-03 Thread Denis Akhiyarov
ion from below link you are referring. > http://www.mono-project.com/docs/about-mono/releases/ > > Thanks > > On Wed, Apr 4, 2018 at 10:09 AM, Denis Akhiyarov < > denis.akhiya...@gmail.com> wrote: > >> can you try previous mono versions? >> >> On Tue, Ap

Re: [Python.NET] crash in pythonnet

2018-04-03 Thread Denis Akhiyarov
can you try previous mono versions? On Tue, Apr 3, 2018 at 11:23 PM, techi eth wrote: > Hi, > > > > I am trying to run python for NET but finding crash while running test. I > am trying to run test from src/tests/. > > > > System Setup : > > Host : Ubuntu14.04 > > Python : Python2.7 > > Mono : >

Re: [Python.NET] Creating an Installer for C# Apps that use Python.Runtime

2018-03-20 Thread Denis Akhiyarov
You can use Wix setup from Beeware Briefcase project: https://github.com/pybee/briefcase/blob/master/docs/background/getting-started.rst And some discussion here: https://github.com/pybee/briefcase/issues/30 On Tue, Mar 20, 2018, 8:40 AM Andrew Yang via PythonDotNet < pythondotnet@python.org> w

Re: [Python.NET] Python.Runtime.dll Embedded Resource & AssemblyLoader

2018-03-19 Thread Denis Akhiyarov
You don't have to use embedded resources or assembly loader. Just using reference is OK. On Mon, Mar 19, 2018, 8:42 AM Phat Loc wrote: > Hi All, > > I am embedding Python in a clr application. Do I need to > include Python.Runtime.dll as an Embedded Resource? If so why? It does seem > to work wi

Re: [Python.NET] Calling Python script from dotnet

2018-03-19 Thread Denis Akhiyarov
Did you look at GitHub pythonnet readme? On Mon, Mar 19, 2018, 2:40 AM techi eth wrote: > Hi, > > How i can use calling python script from dotnet by using pythondotnet > framwork ? > > I would like to pass some dotnet Object to python script & take return of > dotnet object one script execution

Re: [Python.NET] Pythondotnet release for Mono

2018-03-16 Thread Denis Akhiyarov
See Travis CI settings for pythonnet on GitHub, which includes Ubuntu image version and Mono version. Mono 4.0 is differently out of date. Not sure about Ubuntu version. On Fri, Mar 16, 2018, 10:19 PM techi eth wrote: > Hi, > > I would like to know which is python for dot net release will buil

Re: [Python.NET] Embedding Python Question

2018-03-16 Thread Denis Akhiyarov
This looks like an issue, you can report it on GitHub. On Thu, Mar 15, 2018, 8:59 PM Phat Loc wrote: > Hi All, > > I get a bunch of > > Exception thrown: 'System.IO.FileLoadException' in mscorlib.dll > > and the call never returns after > > PythonEngine.Initialize(); > > PythonEngine.Exec("impor

Re: [Python.NET] PythonEngine a singleton?

2018-03-16 Thread Denis Akhiyarov
You should treat PythonEngine as Singleton, for your use case search for PyScope in pythonnet repo on GitHub: https://github.com/pythonnet/pythonnet/search?utf8=✓&q=pyscope&type= On Fri, Mar 16, 2018, 1:40 PM Phat Loc wrote: > Hi All, > > I new to to Python and PythonDotNet. However, I am able

Re: [Python.NET] Runtime.Py_Main from within a Windows application

2018-01-16 Thread Denis Akhiyarov
Can you post a code sample? You need to set the STA threading like in this demo: https://github.com/pythonnet/pythonnet/blob/master/demo/DynamicGrid.py On Tue, Jan 16, 2018, 1:35 PM Phat Loc wrote: > Hello, > > Is it possible to create a python repl from within a Windows application. > I know i

Re: [Python.NET] Urgent Bug Report: clr.AddReference

2017-12-20 Thread Denis Akhiyarov
Did you import clr? Have a look at wiki and tutorial here: https://github.com/pythonnet/pythonnet On Wed, Dec 20, 2017, 2:58 PM Ranya Fafi wrote: > Hi, > Am trying to use clr.AddReference and clr.AddReferenceToFile, but > python(2.7) keeps making this error: > > Traceback (most recent call last

[Python.NET] dropping support for Python 3.3 in pythonnet

2017-12-13 Thread Denis Akhiyarov
We are dropping support for Python 3.3 for upcoming release, more details in this issue: https://github.com/pythonnet/pythonnet/issues/270 Thanks, Denis _ Python.NET mailing list - PythonDotNet@python.org https://mail.python.org/mailman/listinfo/pyt

Re: [Python.NET] Filtering of user defined methods

2017-12-04 Thread Denis Akhiyarov
You need to provide more code samples, it is not clear what you are discussing precisely On Mon, Dec 4, 2017, 12:41 AM prathima shettigar wrote: > By excluding the Dunder methods I'll be able to filter out just the > built-in function...but if my script contains import statements,Then how > can

Re: [Python.NET] Getting the name of the user-defined functions of python script through c#

2017-12-01 Thread Denis Akhiyarov
Can you filter user defined methods by excluding the dunder methods? On Fri, Dec 1, 2017, 3:45 AM prathima shettigar wrote: > Hi, > > I wanted to get all the functions name in my c# code from python script > using Python.Net. > > I have tried the following method: > 1)PyList.Dir():This return t

Re: [Python.NET] Issue in calling individual function dynamically in c# from python test cases

2017-11-27 Thread Denis Akhiyarov
Can you post your issue on GitHub with code samples? On Mon, Nov 27, 2017, 10:06 AM prathima shettigar wrote: > Hi, > > I am trying to get the individual function name which is in python script > and call that in my c# code using python.NET but I am not able to achieve > it. > > I would like to

[Python.NET] Python.NET for PyData survey

2017-11-26 Thread Denis Akhiyarov
Python.NET for PyData survey https://goo.gl/zDyy8Y _ Python.NET mailing list - PythonDotNet@python.org https://mail.python.org/mailman/listinfo/pythondotnet

Re: [Python.NET] Does pythonnet support .NET 2.0

2017-11-24 Thread Denis Akhiyarov
Latest pythonnet requires .NET 4.0+ due to use of DLR, but latest Unity may support newer .NET runtimes experimentally: https://answers.unity.com/questions/1413144/c-dynamic-variables-as-of-2017.html On Thu, Nov 23, 2017, 9:10 PM Patrick Walsh wrote: > We are looking into using this python tool

Re: [Python.NET] Pythonnet Version Info

2017-11-21 Thread Denis Akhiyarov
The version variable was added to pythonnet recently, but you can use pip with older versions: pip list On Tue, Nov 21, 2017, 12:46 PM Jonno wrote: > Hi, > > Is there a way to return the Pythonnet version once clr has been imported? > I can't find any version info. > > Also, I'm trying to help

[Python.NET] Feedback about Python.NET on .NET Core, PyData & PyTexas

2017-11-16 Thread Denis Akhiyarov
We have few developers who contributed towards .NET Core support in Python.NET. https://github.com/pythonnet/pythonnet/issues/96 Recently one Quant financial company got interested in sponsoring the completion of .NET Core support. Please email me directly or reply here on mailing list if you wo

Re: [Python.NET] .NET Core support

2017-09-14 Thread Denis Akhiyarov
Hi Mark, There is significant update for .NET Core by Dmitriy Ivanov: https://github.com/pythonnet/pythonnet/issues/96 Please help us by reviewing and testing his pull requests! Regards, Denis On Tue, Dec 13, 2016 at 3:19 PM, Denis Akhiyarov wrote: > Hi Mark, > > Recently Alex @v

[Python.NET] A new core member of pythonnet

2017-09-14 Thread Denis Akhiyarov
Hi all, Please welcome our new core developer, @dmitriyse (Dmitriy Ivanov), whose .NET Core and GC fixes to pythonnet are outstanding! Other core developers @filmor @vmuriart @tonyroberts collectively made this decision. All pull requests have to be reviewed by at least 2 core developers, even for

Re: [Python.NET] Inheriting from abstract .NET class

2017-08-24 Thread Denis Akhiyarov
} >> >> >> >> public virtual void Close() >> >> { >> >> if (IsOpen()) >> >> Toggle(); >> >> } >> >> >> >> public virtual bool IsOpen() >> >>

[Python.NET] pythonnet talk at PyData Seattle 2017 hosted by Microsoft

2017-07-26 Thread Denis Akhiyarov
Video and presentation for pythonnet talk at PyData Seattle 2017 hosted by Microsoft: https://www.youtube.com/watch?v=P7Or7XzeIno http://nbviewer.jupyter.org/gist/denfromufa/1fdb51fc58663c2fb058f0860cb03768 If you would like to get my talk accepted to PyGotham 2017 in NYC, please vote here: htt

Re: [Python.NET] PythonDotNet Digest, Vol 156, Issue 4

2017-07-20 Thread Denis Akhiyarov
Contents of PythonDotNet digest..." > > > Today's Topics: > > 1. Support for WinPython 2.7 x64 (pythondotnet) > 2. Re: Support for WinPython 2.7 x64 (Denis Akhiyarov) > > > -- > > Message: 1 &

Re: [Python.NET] Support for WinPython 2.7 x64

2017-07-19 Thread Denis Akhiyarov
Python for . NET project moved from SourceForge to GitHub in 2014. WinPython comes with pythonnet pre-installed since 2016. In any Python distribution the easiest way is to install with pip from PyPI: pip install pythonnet Other installation options here: https://github.com/pythonnet/pythonnet

[Python.NET] Python.NET user feedback

2017-07-06 Thread Denis Akhiyarov
Hello Python.NET users, After PyData talk, I was approached by a potential supporter of Python.NET project from one of major corporations. But they need your feedback and estimate of current users of pythonnet library for this support to be approved. Please respond to me privately or publicly abo

[Python.NET] Syntax for PyDict from C#

2017-07-06 Thread Denis Akhiyarov
Anyone has a good example how to construct Python dictionary from C#? Adding elements one by one in a loop is not an option. _ Python.NET mailing list - PythonDotNet@python.org https://mail.python.org/mailman/listinfo/pythondotnet

Re: [Python.NET] PyScope in Python.NET

2017-06-27 Thread Denis Akhiyarov
Please file an issue on github with reproducible code sample and also what you expect for PyScope. From a quick glance I do not see any issue with using the globals across scopes, see examples from @yagweb in his pull request and in the tests. You can define globals outside of scope. The NUnit t

Re: [Python.NET] -|EXT|- Re: PyScope

2017-06-27 Thread Denis Akhiyarov
properly > incorporate this with the Python environment – unless you have a release > that is… > > > > Thanks > > Steve > > > > *From:* PythonDotNet [mailto:pythondotnet-bounces+ > steve.ward=oxinst@python.org > ] *On Behalf Of *Denis > Akhiyarov >

Re: [Python.NET] -|EXT|- Re: PyScope

2017-06-24 Thread Denis Akhiyarov
All pythonnet debugging scenarios are now working and explained in this detailed tutorial: https://github.com/pythonnet/pythonnet/wiki/Various-debugging-scenarios-of-embedded-CPython On Fri, Jun 23, 2017 at 6:31 AM, Denis Akhiyarov wrote: > Hi Steve, > > Please try reporting to P

Re: [Python.NET] -|EXT|- Re: PyScope

2017-06-23 Thread Denis Akhiyarov
am going with 64 bit by the way. Had to figure-out using > PyScope.Set() by checking the source. > > > > Now that I have a working platform, I have a lot to do to move the project > forward. So, thanks very much and I’ll keep you posted. > > > > Cheers > > Steve >

Re: [Python.NET] Issue not finding Assembly

2017-06-21 Thread Denis Akhiyarov
I just looked again at your problem and noticed that you have 32-bit .NET API, but using 64-bit CPython. Have you tried loading this .NET DLL from 32-bit and 64-bit IronPython or from 32-bit CPython? On Wed, Jun 21, 2017, 2:36 AM A M wrote: > Hello, > > I'm using ironpython for a while to oper

Re: [Python.NET] PythonNet on Cygwin

2017-06-21 Thread Denis Akhiyarov
pythonnet with Mono now works in Linux Subsystem for Windows 10 and docker containers. More details in this issue: https://mail.python.org/pipermail/pythondotnet/2014-December/001623.html I was not able to get it going in msys or cygwin environment. On Wed, Dec 10, 2014 at 9:23 AM, Denis

Re: [Python.NET] Issue not finding Assembly

2017-06-21 Thread Denis Akhiyarov
Hi, Are you able to load any other .NET dlls with pythonnet? Can you try inspecting the assembly binding log viewer according to this troubleshooting wiki: https://github.com/pythonnet/pythonnet/wiki/Troubleshooting-on-Windows-and-Linux#assembly-binding-errors Also in Process Explorer (Sysinter

Re: [Python.NET] -|EXT|- Re: PyScope

2017-06-17 Thread Denis Akhiyarov
new API. Thanks, Denis On Fri, Apr 28, 2017 at 6:44 PM, Denis Akhiyarov wrote: > Hi Steve, > > I updated installation instructions for latest master or for branches from > pending pull requests: > > https://github.com/pythonnet/pythonnet/wiki/Installation > > `pip instal

[Python.NET] PyData Seattle, Microsoft - Python for .NET or .NET for Python Denis Akhiyarov, Xavier Dupré

2017-06-09 Thread Denis Akhiyarov
https://pydata.org/seattle2017/schedule/presentation/61/ Python for .NET or .NET for Python Denis Akhiyarov, Xavier Dupré Audience level: Intermediate Description For long time .NET developers wanted to tap into the rich libraries from SciPy and PyData communities. Bridging .NET and CPython

[Python.NET] Python for .NET - At Microsoft Houston

2017-06-08 Thread Denis Akhiyarov
Python for .NET location: At Microsoft Houston - Town & Country Thursday, June 08, 2017 6:30 PM - 8:30 PM http://hdnug.org/events_view.aspx?eventid=137 _ Python.NET mailing list - PythonDotNet@python.org https://mail.python.org/mailman/listinfo/pyt

Re: [Python.NET] Newbie question - does the NET DLL have to be compiled with the same compiler version as Python

2017-05-22 Thread Denis Akhiyarov
If you can share equivalent calls in matlab and python to .NET DLLs we may be able to figure out what caused the error. pythonnet is not using C compiler on Windows, so VS version does not matter. What matters is .NET version (4.0+), and bitness (32-bit, 64-bit, or AnyCPU). If you were able to ma

Re: [Python.NET] cx_freeze and python.net

2017-05-21 Thread Denis Akhiyarov
Hi all, Both cx_freeze and pyinstaller now come with built-in support for pythonnet (clr) hook in the most recent versions: http://cx-freeze.readthedocs.io/en/latest/releasenotes.html#version-5-0-2-may-2017 https://github.com/pyinstaller/pyinstaller/issues/1801 Thanks, Denis On Thu, Oct 23, 20

Re: [Python.NET] Using a List with Pythonnet

2017-05-20 Thread Denis Akhiyarov
It looks like you figured out the issue based on update in stackoverflow. On Sat, May 20, 2017, 11:30 AM Matt Slezak via PythonDotNet < pythondotnet@python.org> wrote: > I have not been able to figure out this issue - I have a C# DLL that > requires a List to be populated but it appears Pythonnet

Re: [Python.NET] System.BadImageFormatException' in Python.Runtime.dll

2017-05-17 Thread Denis Akhiyarov
We need more info such as your Python version (python --version), .NET target framework, Windows version and bitness, minimal reproducible VS solution with all dependencies. It is likely that you are using 64-bit version of pythonnet or CPython. On Wed, May 17, 2017 at 6:50 PM, Mariano Phielipp w

[Python.NET] Fwd: [python-14] Using .NET assemblies from CPython with Python.NET --- PyHou Monthly Meetup 5/16

2017-05-12 Thread Denis Akhiyarov
...@meetup.com Hello Pythoneers! *Denis Akhiyarov*, a core developer and experienced user of *Python for .NET (pythonnet) <https://github.com/pythonnet/pythonnet> *will present this month's talk. *Python for .NET (pythonnet) <https://github.com/pythonnet/pythonnet> *is a package

Re: [Python.NET] -|EXT|- Re: PyScope

2017-04-28 Thread Denis Akhiyarov
le? > > > > Thanks > > Steve > > > > *From:* PythonDotNet [mailto:pythondotnet-bounces+steve.ward= > oxinst@python.org] *On Behalf Of *Denis Akhiyarov > *Sent:* 26 April 2017 15:58 > *To:* A list for users and developers of Python for .NET > *Subject:* -|EXT|

Re: [Python.NET] PyScope

2017-04-26 Thread Denis Akhiyarov
Hi Steve Ward, We are waiting for at least one more core developer to review and approve this pull request. Since it is very large code addition and exposes a lot of API, this is taking some time. If you have any feedback or input, then feel free to comment on the issue or pull request. For now

Re: [Python.NET] Reloading modules

2017-04-16 Thread Denis Akhiyarov
Hi Evan (Ebam?), This was not possible until recently due to some issues with PythonEngine.Shutdown(). But it should be fixed in latest pythonnet 2.3.0 according to this bug report: https://github.com/pythonnet/pythonnet/issues/245 If it still doesn't work for you, then please report back your

[Python.NET] first pythonnet related job

2017-04-14 Thread Denis Akhiyarov
Hi all, First pythonnet + Qt contract job posted in London yesterday. Feel free to forward to interested people. https://www.reqiva.com/jobs/6006715/contract-software-engineer.asp I honestly have no idea why they need pythonnet from C++/CLI. My client specialise in high resolution image proces

[Python.NET] Webinar about Python for .NET

2017-04-07 Thread Denis Akhiyarov
Michael Kennedy is going to give a webinar about Python for .NET developers: https://www.wintellect.com/software-development-training/register/webinar/41 _ Python.NET mailing list - PythonDotNet@python.org https://mail.python.org/mailman/listinfo/pyt

[Python.NET] pythonnet (Python.NET) version 2.3.0 released!

2017-03-16 Thread Denis Akhiyarov
pythonnet (Python.NET) version 2.3.0 released! https://github.com/pythonnet/pythonnet/wiki/Installation *Release notes:* Added - Added Code Coverage (#345 ) - Added PySys_SetArgvEx (#347

Re: [Python.NET] Sending a buffer (pointer?) to a C# function

2017-03-09 Thread Denis Akhiyarov
Can you open an issue on github.com/pythonnet/pythonnet? Please report your environment, such OS, versions of Python, .NET, pythonnet. You are trying to pass numpy array to .NET method that only accepts `ushort[frameSize / 2]`. Try creating the same .NET array from pythonnet and passing it instead

[Python.NET] InfoWorld article about pythonnet

2017-02-01 Thread Denis Akhiyarov
http://www.infoworld.com/article/3163258/application-development/pythonnet-brings-python-to-microsoft-net.html _ Python.NET mailing list - PythonDotNet@python.org https://mail.python.org/mailman/listinfo/pythondotnet

[Python.NET] Python for .NET (pythonnet) v2.2.2 with Python 3.6 support and MIT license

2017-01-29 Thread Denis Akhiyarov
Download from PYPI using pip or from Anaconda using conda: https://pypi.python.org/pypi/pythonnet/2.2.2 https://anaconda.org/pythonnet/pythonnet [image: Inline image 1] Latest release v2.2.2 Fixed Missing files from packaging (#336) v2.2.1 News transition from Zope to MIT licen

Re: [Python.NET] (no subject)

2017-01-28 Thread Denis Akhiyarov
Hi, It looks like your message is cut out and the subject is missing. Thanks, Denis On Sat, Jan 28, 2017 at 1:32 PM, durandmchelle wrote: > HI Dear, > > _ > Python.NET mailing list - PythonDotNet@python.org > https://mail.python.org/mailman/listi

Re: [Python.NET] .NET Core support

2016-12-13 Thread Denis Akhiyarov
Hi Mark, Recently Alex @var1ap had some success porting to .NET Core: https://github.com/pythonnet/pythonnet/issues/96 Of course we will accept pull requests, if you accept transition from ZPL 2.0 to MIT license. Thanks, Denis On Tue, Dec 13, 2016 at 2:35 PM, Mark Traudt wrote: > I see there

Re: [Python.NET] Exception at PythhonEngine.Initialize()

2016-12-08 Thread Denis Akhiyarov
Hi Kresimir, I experienced a similar issue with pythonnet on the CPython side (import clr), but these could be unrelated. https://github.com/pythonnet/pythonnet/issues/242 How are you loading the third-party DLL? Did you check assembly binding log viewer for any errors? We can't help much, if

Re: [Python.NET] advanced book about Python

2016-11-26 Thread Denis Akhiyarov
x27;s blog: https://julien.danjou.info/blog/ On Wed, Oct 26, 2016 at 1:26 PM, Denis Akhiyarov wrote: > I'm looking for 2 more contributors before purchasing the book. Please let > me know! > > By pythonnet contributor I really mean anyone who contributed not only > code

Re: [Python.NET] surveying the landscape ...

2016-11-09 Thread Denis Akhiyarov
Hi David, Can you please give access to pythonnet on Test PyPI to me? https://testpypi.python.org/pypi/pythonnet For example 3 people have access to production PyPI installation: https://pypi.python.org/pypi/pythonnet/2.2.0.dev1 Thanks, Denis On Mon, Jun 22, 2015 at 4:50 PM, David Anthoff

[Python.NET] Fwd: New python.net questions for Nov 3 - Stack Exchange

2016-11-03 Thread Denis Akhiyarov
[image: Stack Exchange] The following item was added to your Stack Exchange "python.net" feed . [image: Stack Overflow] How to use Python and .NET/C# to automatise Princeton Instruments LightField

Re: [Python.NET] advanced book about Python

2016-10-26 Thread Denis Akhiyarov
; > > *From:* PythonDotNet [mailto:pythondotnet-bounces+ludovic.pochon-guerin= > statkraft@python.org] *On Behalf Of *Denis Akhiyarov > *Sent:* 13. oktober 2016 23:39 > *To:* A list for users and developers of Python for .NET > *Subject:* [Python.NET] advanced book about Python

Re: [Python.NET] Support for CLR4 .NET Remoting

2016-10-20 Thread Denis Akhiyarov
Can you provide minimal reproducible code sample for both C# and Python? What is the latest pythonnet version in which this works? Are you testing this from interactive python or ipython? There are some differences between the 2 options. Please also open an issue on github. BTW, why have you not

Re: [Python.NET] PythonEngine.ImportModule(..)

2016-10-18 Thread Denis Akhiyarov
It looks like we have 2 open issues about providing more error content during import failures: https://github.com/pythonnet/pythonnet/issues/111 https://github.com/pythonnet/pythonnet/issues/261 I usually troubleshoot by trying normal import of this module in python and then attaching the debugge

Re: [Python.NET] Referencing a DLL

2016-10-17 Thread Denis Akhiyarov
/blob/master/.travis.yml) > pythonnet (2.2.0.dev1) > > pythonnet is working correctly. I have another DLL and I able to refer to > it with no problems > > On Mon, Oct 17, 2016 at 5:02 PM Denis Akhiyarov > wrote: > >> are you on Linux and Mono? What python/Mono/pythonnet versi

Re: [Python.NET] Referencing a DLL

2016-10-17 Thread Denis Akhiyarov
nt call >> last) >> in () >> > 1 import isc.Eng.Hov >> >> ImportError: No module named isc.Eng.Hov >> >> On Mon, Oct 17, 2016 at 4:28 PM Denis Akhiyarov < >> denis.akhiya...@gmail.com> wrote: >> >> I used ILSPY to inspect your d

Re: [Python.NET] Referencing a DLL

2016-10-17 Thread Denis Akhiyarov
browser the namespace is HovEngine. > [image: unspecified.jpg] > Then, what's wrong? > > On Mon, Oct 17, 2016 at 2:12 PM Denis Akhiyarov > wrote: > > Hi Artem, > > If clr.FindAssembly("isc.Eng.Hov") and clr.AddReference("isc.Eng.Hov") > are wo

Re: [Python.NET] Referencing a DLL

2016-10-17 Thread Denis Akhiyarov
Hi Artem, If clr.FindAssembly("isc.Eng.Hov") and clr.AddReference("isc.Eng.Hov") are working fine, then you need to `import HovEngine`, but not `import isc.Eng.Hov`. This is assuming isc.Eng.Hov is assembly name, and HovEngine is namespace name. Thanks, Denis On Mon, Oct 17, 2016, 12:08 AM Arte

Re: [Python.NET] Problems installing pythonnet on ubuntu 16.04

2016-10-17 Thread Denis Akhiyarov
Hi Germano, The errors with types are indeed strange. But can you please follow build procedure that is setup on Travis CI? Particularly use Mono 4.2.4.4. https://github.com/pythonnet/pythonnet/blob/master/.travis.yml Also do `pip install pythonnet --pre -U`, since `pythonnet 2.1.0` is not lates

Re: [Python.NET] advanced book about Python

2016-10-14 Thread Denis Akhiyarov
Hi Danny, Thank you for the interest! Once I get response from 5 people or more, then I plan to purchase the $199 package and provide you with access to book, source code and receipt. At that point I'll also send the details about how you can send your contribution to me in the range from 1.0 USD

[Python.NET] advanced book about Python

2016-10-13 Thread Denis Akhiyarov
Hi Python and .NET developers, I would like to purchase a copy of this advanced book about Python for pythonnet contributors: https://thehackerguidetopython.com The cost of professional license to share with 50 people is 199 USD ($), but I will pay it in full if at least 10 people agree to contr

Re: [Python.NET] call python in Visual C# WinForm application

2016-10-13 Thread Denis Akhiyarov
} > > } > > > Exception information: > > LoaderLock was detected > > Message: Attempting managed execution inside OS Loader lock. Do not > attempt to run managed code inside a DllMain or image initialization > function since doing so can cause the a

[Python.NET] pythonnet to drop support for Python 2.6

2016-09-28 Thread Denis Akhiyarov
We have Travis CI (Linux and OSX soon) for Python 2.6, but no CI for Python 2.6 on Appveyor (Windows). Python 2.6 was dropped by major packages (even numpy is dropping support in v1.12.0) and Python 3.6 is going to be added soon. If anyone is against dropping Python 2.6, then let's collect feedba

  1   2   >