Symptom
You installed HANA client and when executing hdbalm commands, it fails with errors like below:
/usr/sap/hdbclient> ./hdbalm
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
File "/usr/sap/<SID>/HDB<instance no>/exe/Python3/lib/python3.8/abc.py", line 64, in <module>
ModuleNotFoundError: No module named '_abc'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/sap/<SID>/HDB<instance no>/exe/Python3/lib/python3.8/io.py", line 52, in <module>
File "/usr/sap/<SID>/HDB<instance no>/exe/Python3/lib/python3.8/abc.py", line 68, in <module>
File "/usr/sap/<SID>/HDB<instance no>/exe/Python3/lib/python3.8/_py_abc.py", line 35
def __new__(mcls, name, bases, namespace, /, **kwargs):
^
SyntaxError: invalid syntax
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
File "/usr/sap/<SID>/HDB<instance no>/exe/Python3/lib/python3.8/abc.py", line 64, in <module>
ModuleNotFoundError: No module named '_abc'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/sap/<SID>/HDB<instance no>/exe/Python3/lib/python3.8/io.py", line 52, in <module>
File "/usr/sap/<SID>/HDB<instance no>/exe/Python3/lib/python3.8/abc.py", line 68, in <module>
File "/usr/sap/<SID>/HDB<instance no>/exe/Python3/lib/python3.8/_py_abc.py", line 35
def __new__(mcls, name, bases, namespace, /, **kwargs):
^
SyntaxError: invalid syntax
./hdbalm: line 36: [: -eq: unary operator expected
./hdbalm: line 38: [: -eq: unary operator expected
No supported python version found.
Install the latest version of Python 3.6 or later.
See SAP note 2990848.
After the installation of Python set the environment variable
PYTHON_HOME
to the location of the Python installation
or set the environment variable
PYTHON_EXE
to the location of the Python executable.
As an example the command (bourne shell) is
export PYTHON_HOME=/usr/python3
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Read more...
Environment
- SAP HANA, platform edition 1.0
- SAP HANA, platform edition 2.0
Product
Keywords
hdbalm, environment variable, python , KBA , HAN-LM-APP , SAP HANA Application Lifecycle Management , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.