Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ODI 12c 12.1.2 Jython code giving import error for __future__ module methods

OirpusFeb 23 2018 — edited Feb 24 2018

Could you kindly verify if the __future__ imports will in-fact fail as the jython version has been downgraded from 2.5.1 in 11g to 2.2 in 12c?

What bothers me is the Syntax Error as I know the statements is Absolutely fine and the Jython.org does not have a version 2.2 that i could download and set up to test.

With most Current solutions written in Jython in 11g using the With context will invariably fail in 12c post migration. This is a big worry.

Procedure Code:

from __future__ import with_statement

etc.

giving the error:

ODI-1590: The execution of the script failed.

Caused By: org.apache.bsf.BSFException: exception from Jython:

SyntaxError: ('from __future__ imports must occur at the beginning of the file', ('<string>', 2, 0, ''))

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2018
Added on Feb 23 2018
1 comment
546 views