The version you can download from sourceforge doesn’t work with .Net 4.5.1 (or at least import clr doesn’t work from a normal python, maybe npython works).
You might try to use the current development build from pythonnet.github.com, you can install that via
pip install –pre pythonnet
Best,
David
From: PythonDotNet [mailto:pythondotnet-bounces+anthoff=berkeley.edu@python.org] On Behalf Of Eric Dubreuil
Sent: Tuesday, April 8, 2014 4:36 PM
To: A list for users and developers of Python for .NET
Subject: Re: [Python.NET] Is there a way to use PythonDotNet within Pythonwin ?
Downloaded
pythonnet-2.0-Beta0-clr4.0_140_py27_UCS2_x86.zip
and unziped to C:\PythonNet
On Tue, Apr 8, 2014 at 1:42 PM, David Anthoff <anthoff@berkeley.edu> wrote:
How did you install Python for .Net?
From: PythonDotNet [mailto:pythondotnet-bounces+anthoff=berkeley.edu@python.org] On Behalf Of Eric Dubreuil
Sent: Tuesday, April 8, 2014 10:29 AM
To: A list for users and developers of Python for .NET
Subject: Re: [Python.NET] Is there a way to use PythonDotNet within Pythonwin ?
Hi!
I'm trying to run a Python script using Python for .NET from PythonWin but
importing Python for .NET's clr in PythonWin always gives this error :
>>> import clr
ImportError: DLL load failed: %1 is not a valid Win32 application.
I can program a Python script in PythonWin but I cannot run it from there.
I go around this by saving the script's file and double-clicking its icon in Windows to run it...
(Made sure Windows opens *.py files with Python for .NET's nPython.exe)
Its working fine for me...
Thanks for your answer.
On Mon, Apr 7, 2014 at 1:37 PM, David Anthoff <anthoff@berkeley.edu> wrote:
Hi Eric,
Python for .NET is just a python package, you should be able to use it from whatever IDE you want to. But I am not clear that answers your questions, what exactly do you want to do?
Best,
David
From: PythonDotNet [mailto:pythondotnet-bounces+anthoff=berkeley.edu@python.org] On Behalf Of Eric Dubreuil
Sent: Friday, April 4, 2014 7:45 PM
To: pythondotnet@python.org
Subject: [Python.NET] Is there a way to use PythonDotNet within Pythonwin ?
Hi!
I'm new to Python for .NET
I have been using Pythonwin (Python IDE and GUI Framework for Windows) for a while, see:
http://starship.python.net/crew/mhammond/win32/I would like to use Python for .NET with Pythonwin IDE.
Is this possible ?
How ?
Thanks !
_________________________________________________
Python.NET mailing list - PythonDotNet@python.org
https://mail.python.org/mailman/listinfo/pythondotnet
_________________________________________________
Python.NET mailing list - PythonDotNet@python.org
https://mail.python.org/mailman/listinfo/pythondotnet