KB Article #180393

Jython error on startup after applying 7.5.3 SP10 or later

Problem

After applying 7.5.3 SP10 or a later SP, you see a Jython error similar to the following and are unable to start the gateway:


Traceback (most recent call last):
File "/apps/axway/7.5.3/apigateway/system/lib/jython/diskinstancemanager.py", line
import urllib
File "/apps/axway/7.5.3/apigateway/system/lib/jython/Lib/urllib.py", line 26, in <
import socket
File "/apps/axway/7.5.3/apigateway/system/lib/jython/Lib/socket.py", line 3, in <m
from _socket import (
File "/apps/axway/7.5.3/apigateway/system/lib/jython/Lib/_socket.py", line 12, in
from collections import namedtuple, Iterable
ImportError: cannot import name Iterable

Resolution

This happens when the prerequisites section of the release is not followed. In that section, they instruct you to remove old JRE and Jython versions by deleting certain directories, including /apigateway/system/lib/jython If this is not followed, you will have conflicting Jython libraries that cause the error above.


To fix this, reapply the SP following the release notes, ensuring that all directories get properly removed. Please refer to the exact release notes for your version for details. Release notes are always linked from the SP downloads on Sphere.