Skip to content

IronPython.Runtime.Exceptions.ImportException: 'No module named 'xml.etree.ElementTree'' #1787

Open
@ssalmans428

Description

@ssalmans428

Hi,

I am trying to run python script from C# (.net Framework 4.7 Class Library Project) . I am using Visual studio 2022.
I have added IronPython 3.4.1 as reference to my project, IronPython.StdLib 3.4.1 also added.

When there are no import statements inside the script it is running fine, when there is an import statement in my script file its throwing an "No Module Found error" even though the module is found under the lib folder.

This error is not specific to a module its giving me error for all the basic modules like Math module also.

I added the Searchpaths as well mapping to the lib folder, but still getting the error. Can you tell me what needs to be changed here?

Capture6
Capture5
Capture4

Let me know if you require more details......

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions