Hi, Von: [email protected] > 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 import > *" > > and gets the following exception: > > > > System.ArgumentException was caught > > Message=An item with the same key has already been added. > > Source=mscorlib > > StackTrace: > > at System.ThrowHelper.ThrowArgumentException(ExceptionResource > > resource) > [...] > > > > At the moment, I have no Idea how to solve this. > > > > This is run with IronPython 2.7.1 beta 2 (Version 2.7.0.40) in .NET 4.0, > and the same thing worked fine when running with IronPython 2.6.2 in .NET > 2.0.
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? Best regards Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: [email protected] | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 _______________________________________________ Ironpython-users mailing list [email protected] http://mail.python.org/mailman/listinfo/ironpython-users
