My Oracle Support Banner

When Importing a Directory With Jython the following error occurs: "ImportError:cannot import name xxxx" (Doc ID 1498663.1)

Last updated on MAY 28, 2021

Applies to:

Oracle WebLogic Server - Version 10.3.2 to 12.1.1.0
Information in this document applies to any platform.

Symptoms

In WLST, import from a directory fails with the error ImportError: cannot import name XXXXXX in Weblogic 10.3.2 and later.

The following example illustrates the issue:

  1. Create a jython script "command1.py" with the following code inside:

    Cause

    To view full details, sign in with your My Oracle Support account.

    Don't have a My Oracle Support account? Click to get started!


    In this Document
    Symptoms
    Cause
    Solution
    References


    My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.