You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Glenn Weidner (JIRA)" <ji...@apache.org> on 2017/09/05 20:34:00 UTC
[jira] [Created] (SYSTEMML-1891) Python toNumPy() example results
in exception: Script string is blank
Glenn Weidner created SYSTEMML-1891:
---------------------------------------
Summary: Python toNumPy() example results in exception: Script string is blank
Key: SYSTEMML-1891
URL: https://issues.apache.org/jira/browse/SYSTEMML-1891
Project: SystemML
Issue Type: Bug
Reporter: Glenn Weidner
Assignee: Glenn Weidner
Running the first example from http://apache.github.io/systemml/beginners-guide-python#matrix-operations results in exception:
{code:java}
m4.sum(axis=1).toNumPy()
File “/usr/local/lib/python2.7/site-packages/systemml/defmatrix.py”, line 498, in toNumPy
self.eval()
File “/usr/local/lib/python2.7/site-packages/systemml/defmatrix.py”, line 480, in eval
eval([self])
File “/usr/local/lib/python2.7/site-packages/systemml/defmatrix.py”, line 328, in eval
results = matrix.ml.execute(matrix.script)
File “/usr/local/lib/python2.7/site-packages/systemml/mlcontext.py”, line 722, in execute
return MLResults(self._ml.execute(script_java), self._sc)
...
py4j.protocol.Py4JJavaError: An error occurred while calling o55.execute.
: org.apache.sysml.api.mlcontext.MLContextException: Exception when executing script
at org.apache.sysml.api.mlcontext.MLContext.execute(MLContext.java:359)
at org.apache.sysml.api.mlcontext.MLContext.execute(MLContext.java:332)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:237)
at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
at py4j.Gateway.invoke(Gateway.java:280)
at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
at py4j.commands.CallCommand.execute(CallCommand.java:79)
at py4j.GatewayConnection.run(GatewayConnection.java:214)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.sysml.api.mlcontext.MLContextException: Script string is blank
at org.apache.sysml.api.mlcontext.ScriptExecutor.checkScriptHasTypeAndString(ScriptExecutor.java:571)
at org.apache.sysml.api.mlcontext.ScriptExecutor.setup(ScriptExecutor.java:372)
at org.apache.sysml.api.mlcontext.ScriptExecutor.compile(ScriptExecutor.java:303)
at org.apache.sysml.api.mlcontext.ScriptExecutor.compile(ScriptExecutor.java:268)
at org.apache.sysml.api.mlcontext.ScriptExecutor.execute(ScriptExecutor.java:345)
at org.apache.sysml.api.mlcontext.MLContext.execute(MLContext.java:355)
... 12 more
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)