You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Dominique Fabre <do...@gmail.com> on 2017/01/02 13:09:45 UTC

py4j doesn't work with python interpreter

Hi all,

I installed py4j with "pipe install" command: sudo pip install pyplot.

When i try to use dynamic form with python intrepeter in a paragraph:

%python
print (z.input("f1","defaultValue"))

i have this result:
You must install py4j Python module (pip install py4j) to use Zeppelin
dynamic forms features

Is there any other configuration or installation required to run this
paragraph?

Thanks

Dominique

Re: py4j doesn't work with python interpreter

Posted by Jeff Zhang <zj...@gmail.com>.
hmm, that means you have multiple python installed. And the default python
don't have py4j installed.



Dominique Fabre <do...@gmail.com>于2017年1月3日周二 下午9:01写道:

> I changed the properties zeppelin.python from python interpreter from
> value python to value /usr/bin/python.
>
> The issue is resolved now.
>
> Thanks all!
>
> 2017-01-03 13:49 GMT+01:00 Dominique Fabre <do...@gmail.com>:
>
> I installed py4j too.
>
> py4j is in the directory /usr/lib/python2.7/site-packages/py4j
>
> Here the log from interpreter-python log:
>  INFO [2017-01-03 13:44:29,231] ({pool-2-thread-11}
> SchedulerFactory.java[jobStarted]:131) - Job
> remoteInterpretJob_1483447469231 started by scheduler
> org.apache.zeppelin.python.PythonInterpreter1157069394
>  INFO [2017-01-03 13:44:29,233] ({pool-2-thread-11}
> SchedulerFactory.java[jobFinished]:137) - Job
> remoteInterpretJob_1483447469231 finished by scheduler
> org.apache.zeppelin.python.PythonInterpreter1157069394
>
>
>
> 2017-01-03 8:47 GMT+01:00 Felix Cheung <fe...@hotmail.com>:
>
> You said you ran
>
> sudo pip install pyplot
>
> I think you need to pip install py4j instead?
>
> _____________________________
> From: Jianfeng (Jeff) Zhang <jz...@hortonworks.com>
> Sent: Monday, January 2, 2017 4:24 PM
> Subject: Re: py4j doesn't work with python interpreter
> To: <us...@zeppelin.apache.org>
>
>
>
> Could you attache the interpreter log ?
>
>
> Best Regard,
> Jeff Zhang
>
>
> From: Dominique Fabre <do...@gmail.com>
> Reply-To: "users@zeppelin.apache.org" <us...@zeppelin.apache.org>
> Date: Monday, January 2, 2017 at 9:09 PM
> To: "users@zeppelin.apache.org" <us...@zeppelin.apache.org>
> Subject: py4j doesn't work with python interpreter
>
> Hi all,
>
> I installed py4j with "pipe install" command: sudo pip install pyplot.
>
> When i try to use dynamic form with python intrepeter in a paragraph:
>
> %python
> print (z.input("f1","defaultValue"))
>
> i have this result:
> You must install py4j Python module (pip install py4j) to use Zeppelin
> dynamic forms features
>
> Is there any other configuration or installation required to run this
> paragraph?
>
> Thanks
>
> Dominique
>
>
>
>
>

Re: py4j doesn't work with python interpreter

Posted by Dominique Fabre <do...@gmail.com>.
I changed the properties zeppelin.python from python interpreter from value
python to value /usr/bin/python.

The issue is resolved now.

Thanks all!

2017-01-03 13:49 GMT+01:00 Dominique Fabre <do...@gmail.com>:

> I installed py4j too.
>
> py4j is in the directory /usr/lib/python2.7/site-packages/py4j
>
> Here the log from interpreter-python log:
>  INFO [2017-01-03 13:44:29,231] ({pool-2-thread-11} SchedulerFactory.java[jobStarted]:131)
> - Job remoteInterpretJob_1483447469231 started by scheduler
> org.apache.zeppelin.python.PythonInterpreter1157069394
>  INFO [2017-01-03 13:44:29,233] ({pool-2-thread-11} SchedulerFactory.java[jobFinished]:137)
> - Job remoteInterpretJob_1483447469231 finished by scheduler
> org.apache.zeppelin.python.PythonInterpreter1157069394
>
>
>
> 2017-01-03 8:47 GMT+01:00 Felix Cheung <fe...@hotmail.com>:
>
>> You said you ran
>>
>> sudo pip install pyplot
>>
>> I think you need to pip install py4j instead?
>>
>> _____________________________
>> From: Jianfeng (Jeff) Zhang <jz...@hortonworks.com>
>> Sent: Monday, January 2, 2017 4:24 PM
>> Subject: Re: py4j doesn't work with python interpreter
>> To: <us...@zeppelin.apache.org>
>>
>>
>>
>> Could you attache the interpreter log ?
>>
>>
>> Best Regard,
>> Jeff Zhang
>>
>>
>> From: Dominique Fabre <do...@gmail.com>
>> Reply-To: "users@zeppelin.apache.org" <us...@zeppelin.apache.org>
>> Date: Monday, January 2, 2017 at 9:09 PM
>> To: "users@zeppelin.apache.org" <us...@zeppelin.apache.org>
>> Subject: py4j doesn't work with python interpreter
>>
>> Hi all,
>>
>> I installed py4j with "pipe install" command: sudo pip install pyplot.
>>
>> When i try to use dynamic form with python intrepeter in a paragraph:
>>
>> %python
>> print (z.input("f1","defaultValue"))
>>
>> i have this result:
>> You must install py4j Python module (pip install py4j) to use Zeppelin
>> dynamic forms features
>>
>> Is there any other configuration or installation required to run this
>> paragraph?
>>
>> Thanks
>>
>> Dominique
>>
>>
>>
>

Re: py4j doesn't work with python interpreter

Posted by Dominique Fabre <do...@gmail.com>.
I installed py4j too.

py4j is in the directory /usr/lib/python2.7/site-packages/py4j

Here the log from interpreter-python log:
 INFO [2017-01-03 13:44:29,231] ({pool-2-thread-11}
SchedulerFactory.java[jobStarted]:131) - Job
remoteInterpretJob_1483447469231 started by scheduler
org.apache.zeppelin.python.PythonInterpreter1157069394
 INFO [2017-01-03 13:44:29,233] ({pool-2-thread-11}
SchedulerFactory.java[jobFinished]:137) - Job
remoteInterpretJob_1483447469231 finished by scheduler
org.apache.zeppelin.python.PythonInterpreter1157069394



2017-01-03 8:47 GMT+01:00 Felix Cheung <fe...@hotmail.com>:

> You said you ran
>
> sudo pip install pyplot
>
> I think you need to pip install py4j instead?
>
> _____________________________
> From: Jianfeng (Jeff) Zhang <jz...@hortonworks.com>
> Sent: Monday, January 2, 2017 4:24 PM
> Subject: Re: py4j doesn't work with python interpreter
> To: <us...@zeppelin.apache.org>
>
>
>
> Could you attache the interpreter log ?
>
>
> Best Regard,
> Jeff Zhang
>
>
> From: Dominique Fabre <do...@gmail.com>
> Reply-To: "users@zeppelin.apache.org" <us...@zeppelin.apache.org>
> Date: Monday, January 2, 2017 at 9:09 PM
> To: "users@zeppelin.apache.org" <us...@zeppelin.apache.org>
> Subject: py4j doesn't work with python interpreter
>
> Hi all,
>
> I installed py4j with "pipe install" command: sudo pip install pyplot.
>
> When i try to use dynamic form with python intrepeter in a paragraph:
>
> %python
> print (z.input("f1","defaultValue"))
>
> i have this result:
> You must install py4j Python module (pip install py4j) to use Zeppelin
> dynamic forms features
>
> Is there any other configuration or installation required to run this
> paragraph?
>
> Thanks
>
> Dominique
>
>
>

Re: py4j doesn't work with python interpreter

Posted by Felix Cheung <fe...@hotmail.com>.
You said you ran

sudo pip install pyplot

I think you need to pip install py4j instead?

_____________________________
From: Jianfeng (Jeff) Zhang <jz...@hortonworks.com>>
Sent: Monday, January 2, 2017 4:24 PM
Subject: Re: py4j doesn't work with python interpreter
To: <us...@zeppelin.apache.org>>


Could you attache the interpreter log ?


Best Regard,
Jeff Zhang


From: Dominique Fabre <do...@gmail.com>>
Reply-To: "users@zeppelin.apache.org<ma...@zeppelin.apache.org>" <us...@zeppelin.apache.org>>
Date: Monday, January 2, 2017 at 9:09 PM
To: "users@zeppelin.apache.org<ma...@zeppelin.apache.org>" <us...@zeppelin.apache.org>>
Subject: py4j doesn't work with python interpreter

Hi all,

I installed py4j with "pipe install" command: sudo pip install pyplot.

When i try to use dynamic form with python intrepeter in a paragraph:

%python
print (z.input("f1","defaultValue"))

i have this result:
You must install py4j Python module (pip install py4j) to use Zeppelin dynamic forms features

Is there any other configuration or installation required to run this paragraph?

Thanks

Dominique



Re: py4j doesn't work with python interpreter

Posted by "Jianfeng (Jeff) Zhang" <jz...@hortonworks.com>.
Could you attache the interpreter log ?


Best Regard,
Jeff Zhang


From: Dominique Fabre <do...@gmail.com>>
Reply-To: "users@zeppelin.apache.org<ma...@zeppelin.apache.org>" <us...@zeppelin.apache.org>>
Date: Monday, January 2, 2017 at 9:09 PM
To: "users@zeppelin.apache.org<ma...@zeppelin.apache.org>" <us...@zeppelin.apache.org>>
Subject: py4j doesn't work with python interpreter

Hi all,

I installed py4j with "pipe install" command: sudo pip install pyplot.

When i try to use dynamic form with python intrepeter in a paragraph:

%python
print (z.input("f1","defaultValue"))

i have this result:
You must install py4j Python module (pip install py4j) to use Zeppelin dynamic forms features

Is there any other configuration or installation required to run this paragraph?

Thanks

Dominique