[IronPython] IronPython 0.9.6 released

J. de Hooge info at geatec.com
Mon Dec 12 10:28:46 CET 2005


Hi,

Thanks for the new version of IP. I'd like to start using it as soon as
possible, since error reporting is said to be improved on this version and
that will probably speed up my work.

I've installed IP 0.9.6 and attempted to run my apps with it, but I ran into
the following problems:


Problem 1: (reported earlier)
==========

As reported by me for IP 0.9.5, setting the AllowDrop property of e.g. a
Forms.ListView to True while using IP 0.9.6 STILL results in an exception
message: DragDrop registration failed. The fix I've used on 0.9.5 (see
earlier posting) was changing the declaration of Main in
PythonCommandLine.cs


from:

static int Main(string[] rawArgs) {

to:


[STAThread]
static int Main(string[] rawArgs) {


If adding the [STAThread] attribute is not generally feasible for some other
reason, please could at least a command line switch be added to the next
version to achieve this. Otherways apps using Drag and Drop (a.o. all my
apps) will not run (see earlier discussions).

Surely D&D is considered an important part of the  Windows User
Experience... ;=)


Problem 2: (new problem)
==========

With IP 0.9.5 I could compile the above fix using the following recipe from
the readme.html in the root of the IP distribution:

[QUOTE]

After installing the SDK, open the .NET Framework SDK command prompt, go to
the IronPython directory and execute:

msbuild IronPython.sln
This will build IronPython.dll, IronMath.dll and IronPythonConsole.exe in
the "bin" directory.

[UNQUOTE]


But with IP 0.9.6 this does not work any more.
The following error messages are displayed:


[QUOTE]

[Microsoft .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation 2005. All rights reserved.

Build started 12/12/2005 10:16:16 AM.
__________________________________________________
Project "C:\IronPython-0.9.6-STA\IronPython.sln" (default targets):

Target ValidateSolutionConfiguration:
    Building solution configuration "Debug|Any CPU".
Target Build:
    Target IronMath:
        __________________________________________________
        Project "C:\IronPython-0.9.6-STA\IronPython.sln" is building
"C:\IronPython-0.9.6-STA\IronMath\IronMath.csproj" (default targets):

        Target CoreCompile:
            C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig
/unsafe+ /checked- /nowarn:1701,1702 /nostdlib- /warn:4
/baseaddress:285212672 /define:DEBUG;TRACE
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.XML.dll
/debug+ /filealign:4096 /optimize- /out:obj\Debug\IronMath.dll
/target:library /warnaserror+ AssemblyInfo.cs Complex64.cs integer.cs
integerTest.cs
            CSC : error CS1668: Warning as Error: Invalid search path
'C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib' specified in 'LIB
environment variable' -- 'The system cannot find the path specified. '
            CSC : error CS1668: Warning as Error: Invalid search path
'C:\Program Files\Microsoft Visual Studio\VC98\lib' specified in 'LIB
environment variable' -- 'The system cannot find the path specified. '
        Done building target "CoreCompile" in project "IronMath.csproj" --
FAILED.

        Done building project "IronMath.csproj" -- FAILED.

Build FAILED.
CSC : error CS1668: Warning as Error: Invalid search path 'C:\Program
Files\Microsoft Visual Studio\VC98\mfc\lib' specified in 'LIB environment
variable' -- 'The system cannot find the path specified. '
CSC : error CS1668: Warning as Error: Invalid search path 'C:\Program
Files\Microsoft Visual Studio\VC98\lib' specified in 'LIB environment
variable' -- 'The system cannot find the path specified. '
    0 Warning(s)
    2 Error(s)

[UNQUOTE]


For IP 0.9.5 compiling still works as expected, so nothing seems to have
fallen over in my compilation environment.


My question is:

1. Could the [STATThread] please be added to the next release one way or the
other
2. Could someone provide me with a fix or workaround for compiling IP 0.9.6
using the .NET SDK so that I can start using the improved error reporting

Thanks
Jacques de Hooge
info at geatec.com





More information about the Ironpython-users mailing list