[Ironpython-users] Problem during "from mymodule import *"

Markus Schaber m.schaber at 3s-software.com
Thu Aug 11 14:48:33 CEST 2011


Hi,

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.

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: m.schaber at 3s-software.com | 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 



More information about the Ironpython-users mailing list