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
Information in this document applies to any platform.


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 "" with the following code inside:


    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

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