You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@madlib.apache.org by ok...@apache.org on 2017/10/10 19:18:35 UTC

madlib git commit: Add error message for checking postgres install configuration

Repository: madlib
Updated Branches:
  refs/heads/master cf7420359 -> cfc54b668


Add error message for checking postgres install configuration

MADlib needs to be installed on a postgres with python configured. If
postgres is not configured with the `--with-python` option, madpack
installation will failed for not finding $libdir/plpython2 directory.
This commit add some instructions when this failure happens.

Closes #186


Project: http://git-wip-us.apache.org/repos/asf/madlib/repo
Commit: http://git-wip-us.apache.org/repos/asf/madlib/commit/cfc54b66
Tree: http://git-wip-us.apache.org/repos/asf/madlib/tree/cfc54b66
Diff: http://git-wip-us.apache.org/repos/asf/madlib/diff/cfc54b66

Branch: refs/heads/master
Commit: cfc54b668e6e4bc8d0d3e0770dcf1f9538b76282
Parents: cf74203
Author: Jingyi Mei <jm...@pivotal.io>
Authored: Tue Oct 10 12:07:23 2017 -0700
Committer: Orhan Kislal <ok...@pivotal.io>
Committed: Tue Oct 10 12:18:08 2017 -0700

----------------------------------------------------------------------
 src/madpack/madpack.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/madlib/blob/cfc54b66/src/madpack/madpack.py
----------------------------------------------------------------------
diff --git a/src/madpack/madpack.py b/src/madpack/madpack.py
index 0380d7a..b49fbdb 100755
--- a/src/madpack/madpack.py
+++ b/src/madpack/madpack.py
@@ -512,7 +512,9 @@ def _plpy_check(py_min_ver):
         try:
             _internal_run_query("CREATE LANGUAGE plpythonu;", True)
         except:
-            _error('Cannot create language plpythonu. Stopping installation...', False)
+            _error("""Cannot create language plpythonu. Please check if you
+                have configured and installed portid (your platform) with
+                `--with-python` option. Stopping installation...""", False)
             raise Exception
 
     # Check PL/Python version