systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glenn Weidner (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SYSTEMML-1891) Python toNumPy() example results in exception: Script string is blank
Date Thu, 07 Sep 2017 21:28:00 GMT

     [ https://issues.apache.org/jira/browse/SYSTEMML-1891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Glenn Weidner resolved SYSTEMML-1891.
-------------------------------------
       Resolution: Fixed
         Assignee: Niketan Pansare  (was: Glenn Weidner)
    Fix Version/s: SystemML 1.0

Fixed with [PR 659|https://github.com/apache/systemml/pull/659].

> 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: Niketan Pansare
>             Fix For: SystemML 1.0
>
>
> 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)

Mime
View raw message