[
https://issues.apache.org/jira/browse/MADLIB-1436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17119815#comment-17119815
]
Frank McQuillan commented on MADLIB-1436:
-----------------------------------------
Yes you need to use Python2 for MADlib. This is because Greenplum database has
not yet upgraded to Python3, which is super long overdue to be sure, I don't
know why they have not completed that yet. However, there *is* a project in
process now to update Greenplum database to Python3, as soon as that is done,
we will upgrade MADlib to Python3 too. I don't have a date on completion.
I'll ask around for a Github issue or JIRA or other way to track it, and post a
link here if I get one.
> Attempt to install newest MADLIB with PostgreSQ 12
> --------------------------------------------------
>
> Key: MADLIB-1436
> URL: https://issues.apache.org/jira/browse/MADLIB-1436
> Project: Apache MADlib
> Issue Type: Question
> Components: Upgrade
> Reporter: Pranas Baliuka
> Priority: Major
>
> {{I thought python2 is not supported anymore. Is it required to have Python2
> for MADLIB?}}
>
> {{/usr/local/madlib/bin/madpack -p postgres -c
> postgres@localhost:5432/postgres install}}
> {{Password for user postgres: }}
> {{madpack.py: INFO : Detected PostgreSQL version 12.3.}}
> {{madpack.py: INFO : *** Installing MADlib ***}}
> {{madpack.py: INFO : MADlib tools version = 1.17.0
> (/usr/local/madlib/Versions/1.17.0/bin/../madpack/madpack.py)}}
> {{madpack.py: INFO : MADlib database version = None (host=localhost:5432,
> db=postgres, schema=madlib)}}
> {{madpack.py: INFO : Testing PL/Python environment...}}
> {{madpack.py: INFO : > Creating language PL/Python...}}
> {{SQL command failed: }}
> {{SQL: CREATE LANGUAGE plpythonu; }}
> {{ERROR: could not access file "$libdir/plpython2": No such file or
> directory}}
> {{: ERROR : False}}
> {{madpack.py: ERROR : Cannot create language plpythonu. Please check if you}}
> {{ have configured and installed portid (your platform) with}}
> {{ `--with-python` option. Stopping installation...}}
> {{Traceback (most recent call last):}}
> {{ File "/usr/local/madlib/Versions/1.17.0/bin/../madpack/madpack.py", line
> 1421, in <module>}}
> {{ main(sys.argv[1:])}}
> {{ File "/usr/local/madlib/Versions/1.17.0/bin/../madpack/madpack.py", line
> 1391, in main}}
> {{ return_val = create_install_madlib_sqlfile(locals(), args.command[0])}}
> {{ File "/usr/local/madlib/Versions/1.17.0/bin/../madpack/madpack.py", line
> 1178, in create_install_madlib_sqlfile}}
> {{ is_schema_in_db, madpack_cmd, output_filehandle)}}
> {{ File "/usr/local/madlib/Versions/1.17.0/bin/../madpack/madpack.py", line
> 1157, in _append_install_madlib_sqlfile}}
> {{ _plpy_check(py_min_ver)}}
> {{ File "/usr/local/madlib/Versions/1.17.0/bin/../madpack/madpack.py", line
> 402, in _plpy_check}}
> {{ raise Exception}}
> {{Exception}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)