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?
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.
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?
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()
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
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
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.
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.
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
No, as slace says, its not that simple.
I tried again with 4.1 and on a simple 2 line script:
gives:
which is annoying!
Can anyone help on this please?
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
is working on a reply...