Thanks for sharing the problem.
Looks like python interpreter has a problem on windows. Do you mind file an
issue?

Thanks,
moon

On Tue, Sep 13, 2016 at 1:34 PM Deenar Toraskar <deenar.toras...@gmail.com>
wrote:

> Has anyone tried running the Python interpreter on Windows. I cannot get
> this to work. I have verified that the zeppelin.python is setup correctly.
> The Python process starts up fine with the interpreter is used for the
> first time, but any commands results in the following error
>
> %python
> print "1"
>
> ^
> SyntaxError: invalid syntax
> File "<stdin>", line 1
> print "1"
> ^
> SyntaxError: invalid syntax
> File "<stdin>", line 1
> ^
> SyntaxError: invalid syntax
> File "<stdin>", line 1
>
>
> I have tried this with the standard python download
> https://www.python.org/downloads/ (2.7.11) as well as the Anaconda
> distribution with no success. Python from the command line works fine. The
> logs have the following messages
>
> INFO [2016-09-13 17:40:10,741] ({pool-2-thread-2}
> PythonInterpreter.java[sendCommandToPython]:200) - Sending : import numpy
> as np import matplotlib.pyplot as plt INFO [2016-09-13 17:40:10,965]
> ({pool-2-thread-2} SchedulerFactory.java[jobFinished]:137) - Job
> remoteInterpretJob_1473784810581 finished by scheduler
> org.apache.zeppelin.python.PythonInterpreter472229338 INFO [2016-09-13
> 17:43:25,158] ({pool-2-thread-3} SchedulerFactory.java[jobStarted]:131) -
> Job remoteInterpretJob_1473785005144 started by scheduler
> org.apache.zeppelin.python.PythonInterpreter472229338 INFO [2016-09-13
> 17:43:25,159] ({pool-2-thread-3}
> PythonInterpreter.java[sendCommandToPython]:200) - Sending : # something
> else INFO [2016-09-13 17:43:25,171] ({pool-2-thread-3}
> SchedulerFactory.java[jobFinished]:137) - Job
> remoteInterpretJob_1473785005144 finished by scheduler
> org.apache.zeppelin.python.PythonInterpreter472229338 INFO [2016-09-13
> 17:48:53,406] ({pool-1-thread-3} PythonInterpreter.java[close]:121) -
> closing Python interpreter ..... INFO [2016-09-13 17:48:53,413]
> ({pool-1-thread-3} InterpreterGroup.java[close]:141) - Close interpreter
> group 2BYBNMV24:shared_process INFO [2016-09-13 17:48:53,413]
> ({pool-1-thread-3} InterpreterGroup.java[destroy]:205) - Destroy
> interpreter group 2BYBNMV24:shared_process INFO [2016-09-13 17:49:21,510]
> ({Thread-0} RemoteInterpreterServer.java[run]:81) - Starting remote
> interpreter server on port 57405 ERROR [2016-09-13 17:49:21,898]
> ({pool-1-thread-2} Interpreter.java[register]:315) - Static initialization
> is deprecated. You should change it to use interpreter-setting.json in your
> jar or interpreter/{interpreter}/interpreter-setting.json INFO [2016-09-13
> 17:49:21,904] ({pool-1-thread-2}
> RemoteInterpreterServer.java[createInterpreter]:169) - Instantiate
> interpreter org.apache.zeppelin.python.PythonInterpreter INFO [2016-09-13
> 17:49:21,987] ({pool-2-thread-2} SchedulerFactory.java[jobStarted]:131) -
> Job remoteInterpretJob_1473785361983 started by scheduler
> org.apache.zeppelin.python.PythonInterpreter1725703388 INFO [2016-09-13
> 17:49:21,988] ({pool-2-thread-2} PythonInterpreter.java[open]:80) -
> Starting Python interpreter ..... INFO [2016-09-13 17:49:21,991]
> ({pool-2-thread-2} PythonInterpreter.java[open]:81) - Python path is set
> to:C:\Users\deenar.toraskar\Anaconda2\python.exe INFO [2016-09-13
> 17:49:22,021] ({pool-2-thread-2} PythonInterpreter.java[open]:92) - python
> PID : -1 INFO [2016-09-13 17:49:22,021] ({pool-2-thread-2}
> PythonInterpreter.java[open]:98) - Bootstrap interpreter with /bootstrap.py
> INFO [2016-09-13 17:49:22,043] ({pool-2-thread-2}
> PythonInterpreter.java[bootStrapInterpreter]:223) - Bootstrap python
> interpreter with code from /bootstrap.py INFO [2016-09-13 17:49:22,043]
> ({pool-2-thread-2} PythonInterpreter.java[sendCommandToPython]:200) -
> Sending : # Licensed to the Apache Software Foundation (ASF) under one or
> more # contributor license agreements. See the NOTICE file distributed with
> # this work for additional information regarding copyright ... INFO
> [2016-09-13 17:49:22,226] ({pool-2-thread-2}
> PythonInterpreter.java[sendCommandToPython]:200) - Sending : import py4j
> INFO [2016-09-13 17:49:22,236] ({pool-2-thread-2}
> PythonInterpreter.java[sendCommandToPython]:200) - Sending : def f(x):
> return x + 10 INFO [2016-09-13 17:49:22,259] ({pool-2-thread-2}
> SchedulerFactory.java[jobFinished]:137) - Job
> remoteInterpretJob_1473785361983 finished by scheduler
> org.apache.zeppelin.python.PythonInterpreter1725703388 INFO [2016-09-13
> 17:53:19,509] ({pool-2-thread-2} SchedulerFactory.java[jobStarted]:131) -
> Job remoteInterpretJob_1473785599505 started by scheduler
> org.apache.zeppelin.python.PythonInterpreter1725703388 INFO [2016-09-13
> 17:53:19,513] ({pool-2-thread-2}
> PythonInterpreter.java[sendCommandToPython]:200) - Sending : a=1 INFO
> [2016-09-13 17:53:19,523] ({pool-2-thread-2}
> SchedulerFactory.java[jobFinished]:137) - Job
> remoteInterpretJob_1473785599505 finished by scheduler
> org.apache.zeppelin.python.PythonInterpreter1725703388 INFO [2016-09-13
> 17:53:24,707] ({pool-2-thread-3} SchedulerFactory.java[jobStarted]:131) -
> Job remoteInterpretJob_1473785604704 started by scheduler
> org.apache.zeppelin.python.PythonInterpreter1725703388 INFO [2016-09-13
> 17:53:24,709] ({pool-2-thread-3}
> PythonInterpreter.java[sendCommandToPython]:200) - Sending : 1+1
>
> Any help will be appreciated. The same distribution works fine on MacOS
>
>
>
>

Reply via email to