To run an application that uses the Python language package (psycopg), set the environment variables as follows.
When using on a machine on which a package with the same name of OSS is installed, make sure that Python language packages (psycopg) group (under the directory added to PYTHONPATH) and packages with the same name of OSS are not mixed in the module search path (sys.path).
Required for execution of the application
PYTHONPATH
fujitsuEnterprisePostgresClientInstallDir/psycopg/python<PythonVersionToUse>/site-packages
Example
Note that "<x>" indicates the product version, "<y>" is the version of Python you want to use.
PYTHONPATH=/opt/fsepv<x>client64/psycopg/python<y>/site-packages:$PYTHONPATH; export PYTHONPATH
Required for execution of the application
PATH
fujitsuEnterprisePostgresClientInstallDir\lib
PYTHONPATH
fujitsuEnterprisePostgresClientInstallDir \psycopg\python<PythonVersionToUse>\site-packages
Example
When the 32-bit version client package is installed on a 64-bit operating system. "<x>" indicates the product version, "<y>" is the version of Python you want to use.
SET PATH=%ProgramFiles(x86)%\Fujitsu\fsepv<x>client32\lib;%PATH% SET PYTHONPATH=%ProgramFiles(x86)%\Fujitsu\fsepv<x>client32\psycopg\python<y>\site-packages;%PYTHONPATH%