OAC : ImportError : No module named argparse

(Doc ID 2312716.1)

Last updated on MAY 11, 2018

Applies to:

Oracle Analytics Cloud Service - Version N/A to N/A [Release 14.1]
Information in this document applies to any platform.

Symptoms

When attempting to run proxy_register_ssl_private_key, to register a private key and certificate on the OAC server, tried to run the script and received the following error.

 

User cannot even run collect_diagnostic_logs.py with the same error

Python command used:

$ python /bi/app/public/bin/collect_diagnostic_logs.py /tmp/oac_diag_dump.zip

Error:

Traceback (most recent call last):

File "/bi/app/public/bin/collect_diagnostic_logs.py", line 10, in <module>

from argparse import ArgumentParser

ImportError: No module named argparse

 

The argparse module exists on Python 2.7 but it won't run for some reason.

Changes

 NA

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms