Weka KnowledgeFlow CSVLoader “No source has been specified”

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

Weka KnowledgeFlow CSVLoader “No source has been specified”

scorpdaddy.ch
The following snippet of the *.kf file works on some machines but not others. Weka 3.8.3. Win10 boxes. Java 1.8.

{
    "flow_name" : "model_generation_v0.1.0",
    "steps" : [
        {
            "class" : "weka.knowledgeflow.steps.Loader",
            "properties" : {
                "loader" : {
                    "type" : "loader",
                    "class" : "weka.core.converters.CSVLoader",
                    "filePath" : "C:/Users/XXXX/YYYY/Weka/rawdata/rawdata.csv",
                    "useRelativePath" : false,
                    "options" : "-format \"yyyy-MM-dd\\'T\\'HH:mm:ss\" -M ? -B 100 -E \"\\\",\\'\" -F ,"
                },
                "name" : "CSVLoader"
            },
            "connections" : {
                "dataSet" : [
                    "NumericToNominal"
                ]
            },
            "coordinates" : "6,433"
        },



The complaint from Weka on the machines that don't work is:

21:03:47: [ERROR] CSVLoader$633561431|-format "yyyy-MM-dd\'T\'HH:mm:ss" -M ? -B 100 -E "\",\'" -F ,|No source has been specified

weka.core.WekaException: No source has been specified

               at weka.knowledgeflow.steps.Loader.start(Loader.java:178)

               at weka.knowledgeflow.StepManagerImpl.startStep(StepManagerImpl.java:1035)

               at weka.knowledgeflow.BaseExecutionEnvironment$3.run(BaseExecutionEnvironment.java:440)

               at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

               at java.util.concurrent.FutureTask.run(Unknown Source)

               at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

               at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

               at java.lang.Thread.run(Unknown Source)

Caused by: java.io.IOException: No source has been specified

               at weka.core.converters.CSVLoader.getDataSet(CSVLoader.java:867)

               at weka.knowledgeflow.steps.Loader.start(Loader.java:172)

               ... 7 more


Obviously the source is specified by the "filePath" value.  So what's the problem?
_______________________________________________
Wekalist mailing list -- [hidden email]
Send posts to: To unsubscribe send an email to [hidden email]
To subscribe, unsubscribe, etc., visit
https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Reply | Threaded
Open this post in threaded view
|

Re: Weka KnowledgeFlow CSVLoader “No source has been specified”

Mark Hall
I admit that the error message is not that informative. Almost certainly it is because the specified file does not exist on the machines that you are seeing the error for. There is no souce because the file path does not exist.

Cheers,
Mark.

On 29/11/19, 10:12 AM, "[hidden email]" <[hidden email]> wrote:

    The following snippet of the *.kf file works on some machines but not others. Weka 3.8.3. Win10 boxes. Java 1.8.
   
    {
        "flow_name" : "model_generation_v0.1.0",
        "steps" : [
            {
                "class" : "weka.knowledgeflow.steps.Loader",
                "properties" : {
                    "loader" : {
                        "type" : "loader",
                        "class" : "weka.core.converters.CSVLoader",
                        "filePath" : "C:/Users/XXXX/YYYY/Weka/rawdata/rawdata.csv",
                        "useRelativePath" : false,
                        "options" : "-format \"yyyy-MM-dd\\'T\\'HH:mm:ss\" -M ? -B 100 -E \"\\\",\\'\" -F ,"
                    },
                    "name" : "CSVLoader"
                },
                "connections" : {
                    "dataSet" : [
                        "NumericToNominal"
                    ]
                },
                "coordinates" : "6,433"
            },
   
   
   
    The complaint from Weka on the machines that don't work is:
   
    21:03:47: [ERROR] CSVLoader$633561431|-format "yyyy-MM-dd\'T\'HH:mm:ss" -M ? -B 100 -E "\",\'" -F ,|No source has been specified
   
    weka.core.WekaException: No source has been specified
   
                   at weka.knowledgeflow.steps.Loader.start(Loader.java:178)
   
                   at weka.knowledgeflow.StepManagerImpl.startStep(StepManagerImpl.java:1035)
   
                   at weka.knowledgeflow.BaseExecutionEnvironment$3.run(BaseExecutionEnvironment.java:440)
   
                   at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
   
                   at java.util.concurrent.FutureTask.run(Unknown Source)
   
                   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   
                   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   
                   at java.lang.Thread.run(Unknown Source)
   
    Caused by: java.io.IOException: No source has been specified
   
                   at weka.core.converters.CSVLoader.getDataSet(CSVLoader.java:867)
   
                   at weka.knowledgeflow.steps.Loader.start(Loader.java:172)
   
                   ... 7 more
   
   
    Obviously the source is specified by the "filePath" value.  So what's the problem?
    _______________________________________________
    Wekalist mailing list -- [hidden email]
    Send posts to: To unsubscribe send an email to [hidden email]
    To subscribe, unsubscribe, etc., visit
    https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
    List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
   
_______________________________________________
Wekalist mailing list -- [hidden email]
Send posts to: To unsubscribe send an email to [hidden email]
To subscribe, unsubscribe, etc., visit
https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html