ok, looks likeexport PYTHONPATH="/home/akravchenko/anaconda2/lib/python2.7/site- packages" fixed that issue.AntonOn Fri, Sep 15, 2017 at 9:01 AM, Anton Kravchenko <kravchenko.anton86@gmail.com> wrote:Hi there,sql>create or replace function f1() returns table(v1 INT)more>LANGUAGE PYTHON {more> return [1,2,3]more>};operation successful (3.658ms)sql>select * from f1();Embedded Python is enabled but an error was thrown during initialization.Does one have to setup another python env variables (like it's done on MonetDB for Windows: PYTHONHOME, PYTHONPATH) on Linux?p.s. Here are is how I setup environment1) installed MonetDB v11.27.5 (Jul2017-SP1) binarieson centos-release-7-4.1708.el7.centos.x86_64: sudo yum install https://www.monetdb.org/downloads/epel/7/x86_64/MonetDB- stream-11.27.5-20170727.el7. centos.x86_64.rpm sudo yum install https://www.monetdb.org/downloads/epel/7/x86_64/MonetDB- client-11.27.5-20170727.el7. centos.x86_64.rpm sudo yum install https://www.monetdb.org/downloads/epel/7/x86_64/MonetDB5- server-11.27.5-20170727.el7. centos.x86_64.rpm 2) installed Anaconda2Python 2.7.13 |Anaconda 4.4.0 (64-bit)| (default, Dec 20 2016, 23:09:15)[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2export PATH="/home/akravchenko/anaconda2/bin:$PATH" 3) created and started Monet database:monetdbd create hnode1_dbfarm
monetdbd set port=50001 hnode1_dbfarm
monetdbd set control=yes hnode1_dbfarm
monetdbd set passphrase=monetdb hnode1_dbfarm
monetdbd start hnode1_dbfarm
monetdb create hnode1_dbfarm_db1
monetdb set embedpy=true hnode1_dbfarm_db1
monetdb start hnode1_dbfarm_db1
monetdb release hnode1_dbfarm_db1
4)monetdbd get all hnode1_dbfarmproperty valuehostname somehostnamedbfarm hnode1_dbfarmstatus monetdbd[31089] 1.7 (Jul2017-SP1) is serving this dbfarmmserver /usr/bin/mserver5logfile hnode1_dbfarm/merovingian.logpidfile hnode1_dbfarm/merovingian.pidsockdir /tmplistenaddr localhostport 50001exittimeout 60forward proxydiscovery yesdiscoveryttl 600control yespassphrase {SHA512}a73f1d86383446438ac64f56e15ada38b41fbb18f029d218172 3aeb2acac6a831f60e5fdbd64ac2c8 c70e035dd44cbbe3b45565ef2d58fe b2821a2078c7fad35 mapisock /tmp/.s.monetdb.50001controlsock /tmp/.s.merovingian.500015) monetdb get all hnode1_dbfarm_db1name prop source valuehnode1_dbfarm_db1 name - hnode1_dbfarm_db1hnode1_dbfarm_db1 type default databasehnode1_dbfarm_db1 shared default yeshnode1_dbfarm_db1 nthreads default 32hnode1_dbfarm_db1 optpipe default default_pipehnode1_dbfarm_db1 readonly default nohnode1_dbfarm_db1 embedr default nohnode1_dbfarm_db1 embedpy local yeshnode1_dbfarm_db1 embedpy3 default nohnode1_dbfarm_db1 nclients default 64hnode1_dbfarm_db1 dbextra default <unknown>Thank you,Anton