Hi, I haven't used net installation version. But it seems that u need to
install `py4j` python library as the error says

> No module named py4j.java_gateway

You can do easily `pip install py4j` with your python bin which related to
the python interpreter in Zeppelin.

On Tue, Aug 22, 2017 at 2:18 PM, 小野圭二 <onoke...@gmail.com> wrote:

> Hi,
>
> This might be an old and popular issue, but i could not find the solution
> on Jira, mail archive and so on.
> The python demo does not work.
>
> [Env]:  CentOS 6.2  Python 2.6.6
>          Zeppelin   0.7.2 netinst
>                  beneath 'interpreter': jdbc,lib,md,python,shell,spark
> [notebook]: from demo
> %python
> import matplotlib.pyplot as plt
> plt.plot([1,2,3])
>
> Traceback (most recent call last):
> File "/tmp/zeppelin_python-2865335277309763273.py", line 20, in <module>
> from py4j.java_gateway import java_import, JavaGateway, GatewayClient
> ImportError: No module named py4j.java_gateway
> Traceback (most recent call last):
> File "/tmp/zeppelin_python-2865335277309763273.py", line 20, in <module>
> from py4j.java_gateway import java_import, JavaGateway, GatewayClient
> ImportError: No module named py4j.java_gateway
>
> python is not responding
>
>
> Any advice would be appreciated.
>
> -Keiji
>

Reply via email to