[Ironpython-users] Problem during "from mymodule import *"
m.schaber at 3s-software.com
Fri Aug 12 17:01:48 CEST 2011
Von: ironpython-users-bounces+m.schaber=3s-software.com at python.org
> Von: Markus Schaber
> > The module in question is a module created with
> > "Python.CreateModule(engine, "mymodule"). A python file "utils.py"
> > imported by the main executed file now performs "from mymodule
> > and gets the following exception:
> > System.ArgumentException was caught
> > Message=An item with the same key has already been added.
> > Source=mscorlib
> > StackTrace:
> > at
> > resource)
> > At the moment, I have no Idea how to solve this.
> This is run with IronPython 2.7.1 beta 2 (Version 126.96.36.199) in .NET
> and the same thing worked fine when running with IronPython 2.6.2 in
I tried to reproduce it in a small test case, but failed - the Exception
did not appear there.
One interesting data point may be that this exception seems not to
appear everytime, and it only appears when I do not use Python.SetTrace
to set a C# implemented tracebackDelegate.
Maybe the tracing is broken in 2.7?
We software Automation.
3S-Smart Software Solutions GmbH
Markus Schaber | Developer
Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 |
Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com
CoDeSys internet forum: http://forum.3s-software.com
Download CoDeSys sample projects:
Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner |
Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915
More information about the Ironpython-users