Closed MayankGoel28 closed 4 years ago
I think prepare.py
expects a file. Why do you try to pass a directory into it? Where did you get this command?
On running
python prepare.py
The output is:
Arguments error. Usage:
python prepare.py data
This is directly from the code in prepare.py, here:
if len(sys.argv) != 2:
sys.stderr.write('Arguments error. Usage:\n')
sys.stderr.write('\tpython prepare.py data\n')
sys.exit(1)
Running it as
python prepare.py data.xml
does not work, as data.xml does not exist to begin with, as referenced in https://github.com/iterative/dataset-registry/issues/5
Yep, may be we can improve the Usage
section - like data
-> data-file
. But it expects a file, not a directory.
As I mentioned in #5 this is by definition, since data.xml
is DVC-tracked. dvc get
failed because of the wrong copy-paste.
Closing this, since it does not look like an error. We can create a separate ticket to improve prepare.py
a bit.
I get this error:
When I run
python3 prepare.py data
as suggested if no argument is enteredThis is also in reference to another issue https://github.com/iterative/dataset-registry/issues/5, as data.xml does not exist