weka-pyscript error executing by command

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

weka-pyscript error executing by command

juanantonio
Hello,

I have weka-pyscript installed and configured. When I execute the next
command inside of *weka-pyscript-master*

/java weka.Run .PyScriptClassifier \
    -script scripts/zeror.py \
    -t datasets/iris.arff -no-cv -d /tmp/zeror.model/

I have the next error

java.lang.NullPointerException
        at weka.python.PythonSession.releaseSession(PythonSession.java:111)
        at weka.pyscript.Utility.closePythonSession(Utility.java:68)
        at
weka.classifiers.pyscript.PyScriptClassifier.buildClassifier(PyScriptClassifier.java:335)
        at
weka.classifiers.evaluation.Evaluation.evaluateModel(Evaluation.java:1529)
        at weka.classifiers.Evaluation.evaluateModel(Evaluation.java:650)
        at
weka.classifiers.AbstractClassifier.runClassifier(AbstractClassifier.java:141)
        at
weka.classifiers.AbstractClassifier.run(AbstractClassifier.java:546)
        at weka.Run.main(Run.java:349)

Any idea why this is happening?

Thanks



--
Sent from: http://weka.8497.n7.nabble.com/
_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Reply | Threaded
Open this post in threaded view
|

Re: weka-pyscript error executing by command

Eibe Frank-2
Administrator
I’m getting the same error:

java weka.Run .PyScriptClassifier -script ~/wekafiles/packages/WekaPyScript/scripts/zeror.py -t ~/datasets/UCI/iris.arff
java.lang.NullPointerException
        at weka.python.PythonSession.releaseSession(PythonSession.java:111)
        at weka.pyscript.Utility.closePythonSession(Utility.java:68)
        at weka.classifiers.pyscript.PyScriptClassifier.buildClassifier(PyScriptClassifier.java:335)
        at weka.classifiers.evaluation.Evaluation.evaluateModel(Evaluation.java:1623)
        at weka.classifiers.Evaluation.evaluateModel(Evaluation.java:668)
        at weka.classifiers.AbstractClassifier.runClassifier(AbstractClassifier.java:141)
        at weka.classifiers.AbstractClassifier.run(AbstractClassifier.java:546)
        at weka.Run.main(Run.java:349)

The Python processes do not get shut down.

Which OS are you using? Are you using macOS as well?

Cheers,
Eibe

> On 10/05/2018, at 2:37 AM, juanantonio <[hidden email]> wrote:
>
> Hello,
>
> I have weka-pyscript installed and configured. When I execute the next
> command inside of *weka-pyscript-master*
>
> /java weka.Run .PyScriptClassifier \
>    -script scripts/zeror.py \
>    -t datasets/iris.arff -no-cv -d /tmp/zeror.model/
>
> I have the next error
>
> java.lang.NullPointerException
>        at weka.python.PythonSession.releaseSession(PythonSession.java:111)
>        at weka.pyscript.Utility.closePythonSession(Utility.java:68)
>        at
> weka.classifiers.pyscript.PyScriptClassifier.buildClassifier(PyScriptClassifier.java:335)
>        at
> weka.classifiers.evaluation.Evaluation.evaluateModel(Evaluation.java:1529)
>        at weka.classifiers.Evaluation.evaluateModel(Evaluation.java:650)
>        at
> weka.classifiers.AbstractClassifier.runClassifier(AbstractClassifier.java:141)
>        at
> weka.classifiers.AbstractClassifier.run(AbstractClassifier.java:546)
>        at weka.Run.main(Run.java:349)
>
> Any idea why this is happening?
>
> Thanks
>
>
>
> --
> Sent from: http://weka.8497.n7.nabble.com/
> _______________________________________________
> Wekalist mailing list
> Send posts to: [hidden email]
> List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
> List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Reply | Threaded
Open this post in threaded view
|

Re: weka-pyscript error executing by command

juanantonio
I have this error in Windows10 and in Linux (ubuntu18.04lts).

Cheers.






--
Sent from: http://weka.8497.n7.nabble.com/
_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Reply | Threaded
Open this post in threaded view
|

Re: weka-pyscript error executing by command

Eibe Frank-2
Administrator
This should be fixed in the latest package release.

Cheers,
Eibe

> On 10/05/2018, at 7:11 PM, juanantonio <[hidden email]> wrote:
>
> I have this error in Windows10 and in Linux (ubuntu18.04lts).
>
> Cheers.
>
>
>
>
>
>
> --
> Sent from: http://weka.8497.n7.nabble.com/
> _______________________________________________
> Wekalist mailing list
> Send posts to: [hidden email]
> List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
> List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html