Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andy 4 posts 24 karma points
    Apr 20, 2010 @ 19:28
    Andy
    0

    IronPython Upgrade.

    Hi,

    Are we not well overdue an upgrade to the version of IronPython Umbraco uses? I'd really like access to all the old faithful urllib2 and my other favourite python libs.

    Is it possible to drop in an updated version of the DLL? Or is it not that simple?

    Thanks,

    Andy

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Apr 21, 2010 @ 00:38
    Aaron Powell
    0

    Umbraco 4.1 will ship with a newer version of the .NET dynamic language engine.

    As for upgrading the version in 4.0, you'd probably have to use assembly binding in the web.config, but depending on how much was changed then I don't know if it'd work.

  • Andy 4 posts 24 karma points
    May 11, 2010 @ 16:16
    Andy
    0

    I've recently installed:

    umbraco v 4.1.0.beta (Assembly version: 1.0.3579.26378)

    and a sys.version in ironpython is showing me:

    IronPython 1.0 (1.0.61005.1977) on .NET 2.0.50727.3603

    I have installed the 3.5 framework on our IIS6 Windows Server 2003 box and have been assured that 3.5 is simply an extension to the 2.0 framework and that 3.5 components are called as and when needed.

    We seem to be at version 2.6.1 of IronPython. Is there a reason why I can only use 1.0? Its quite frustrating because I'd like access to Urllib2 etc.

    Is the .NET dynamic language engine not included in the Beta?

    Any help would be very much appreciated.

    Thanks,

    Andy.

  • elspiko 133 posts 302 karma points
    May 11, 2010 @ 17:59
    elspiko
    0

    Can you not simply update the ironpython dll in the bin folder? I'd make a copy of the existing IronPython.dll first just incase it breaks things 

  • Andy 4 posts 24 karma points
    May 11, 2010 @ 19:50
    Andy
    0

    No, as slace says, its not that simple.

    I tried again with 4.1 and on a simple 2 line script:

    import sys

    print sys.version

    gives:

    The type initializer for 'umbraco.scripting.python' threw an exception.
    at umbraco.scripting.python.executeFile(String file) at umbraco.macro.loadMacroPython(macro macro, Hashtable attributes, Hashtable pageElements)

    Value cannot be null. Parameter name: type
    at System.Activator.CreateInstance(Type type, Boolean nonPublic) at umbraco.scripting.PythonEngine..ctor() at umbraco.scripting.python..cctor()

    which is annoying!

  • Andy 4 posts 24 karma points
    May 12, 2010 @ 22:29
    Andy
    0

    Can anyone help on this please?

  • Jonas Eriksson 930 posts 1825 karma points
    Aug 25, 2010 @ 13:43
    Jonas Eriksson
    0

    Hey Andy, happy to see more people using IronPython. You tried out Umbraco 4.5x yet? IP 2.6 runs beautiful there as far as I've tried (tried standard py libs aswell). A small annoyance is that the right paths are not added to sys. It should be fixed soon enough I guess. Vote on the issue @ codeplex if you like, more likely to be fixed w\ more votes, http://umbraco.codeplex.com/workitem/28473

    Regards

    Jonas

Please Sign in or register to post replies

Write your reply to:

Draft