SAP Knowledge Base Article - Preview

2450402 - python generateSql.py stops with File "generateSql.py", line 1, in <module> import argparse

Symptom

During the execution from script generateSql.py one of the following errors occurred:

python generateSql.py
Traceback (most recent call last):
  File "generateSql.py", line 1, in <module>
    import argparse
  File "/hana/shared/DBD/exe/linuxx86_64/HDB_1.00.122.04.1478575636_3308086/Python/lib/python2.7/argparse.py", line 88, in <module>
    import re as _re
  File "/hana/shared/DBD/exe/linuxx86_64/HDB_1.00.122.04.1478575636_3308086/Python/lib/python2.7/re.py", line 105, in <module>
    import sre_compile
  File "/hana/shared/DBD/exe/linuxx86_64/HDB_1.00.122.04.1478575636_3308086/Python/lib/python2.7/sre_compile.py", line 62
    for t in _equivalences for i in t}

 

or execution of

python generateSql.py --action generateRepoApTest
Traceback (most recent call last):
  File "generateSql.py", line 1, in <module>
    import argparse
  File "/hana/shared/DBD/exe/linuxx86_64/HDB_1.00.122.04.1478575636_3308086/Python/lib/python2.7/argparse.py", line 88, in <module>
    import re as _re
  File "/hana/shared/DBD/exe/linuxx86_64/HDB_1.00.122.04.1478575636_3308086/Python/lib/python2.7/re.py", line 105, in <module>
    import sre_compile
  File "/hana/shared/DBD/exe/linuxx86_64/HDB_1.00.122.04.1478575636_3308086/Python/lib/python2.7/sre_compile.py", line 62
    for t in _equivalences for i in t}
      ^
SyntaxError: invalid syntax


Read import argparse">more...

Environment

 

Product

SAP HANA, platform edition all versions

Keywords

KBA , HAN-DB , SAP HANA Database , HAN-DB-SEC , SAP HANA Security & User Management , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.