ODM2 / ODM2StreamingDataLoader

A program for streaming continuous sensor data into an instance of Version 2 of the Observations Data Model (ODM2)
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Executable is not running #79

Closed AmberSJones closed 7 years ago

AmberSJones commented 7 years ago

I've been unable to get the executable to run via the Windows task scheduler or manually. This error flashes on and off, but I was able to capture it with a screenshot.

screen shot 2017-04-13 at 8 19 10 am
farrieta9 commented 7 years ago

capture

If you double click on the StreamDataLoaderWizard.exe you'll get that error and it's because it expects an input file. Try running the file from the command line. From the command line navigate to it and then run a command like the one below.

./StreamingDataLoader.exe -c C:\Users\Francisco\Desktop\SDL Folder\LoadTest.yaml

I gave it a yaml file as an argument.

sreeder commented 7 years ago

@AmberSJones @horsburgh this is more a question of functionality, do we want a default location that the code looks for a setup file if none is sent in as a parameter? Other than that I think it is just an issue of figuring out how to send in command line arguments when running from the windows task scheduler. Here is a link to an issue where they show how to add arguments.

screen shot 2017-06-14 at 3 25 59 pm
horsburgh commented 7 years ago

I think the default location to look for a setup file should be the same folder as the code. The command line parameter should be capable of using any setup file from any path, but if one is not specified, look in the folder where the code is located. If there's not one there, throw an error.

kwuz commented 7 years ago

"base case" of searching for a default yaml file in the current working directory if no arguments are provided is added. Executable will still fail if no yaml file is present, and does not check if yaml file is the correct configuration for the program to run.

kwuz commented 7 years ago

Ready for testing, branch issue_79