Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README Example not working? #15

Closed
nils-wisiol opened this issue Feb 21, 2022 · 2 comments
Closed

README Example not working? #15

nils-wisiol opened this issue Feb 21, 2022 · 2 comments

Comments

@nils-wisiol
Copy link

I run the latest docker image () on my computer and copied the example from the README:

docker run -it dnsgt/groot

# First try with literally what I copied from GitHub
groot@177a7eb9e05c:~/groot$ .~/groot/build/bin/groot ~/groot/test/TestFiles/cc.il.us/zone_files --jobs=~/groot/test/TestFiles/cc.il.us/jobs.json --output=output.json
bash: .~/groot/build/bin/groot: No such file or directory

# First attempt at fixing
groot@177a7eb9e05c:~/groot$ . ~/groot/build/bin/groot ~/groot/test/TestFiles/cc.il.us/zone_files --jobs=~/groot/test/TestFiles/cc.il.us/jobs.json --output=output.json
bash: .: /home/groot/groot/build/bin/groot: cannot execute binary file

# Second attempt at fixing
groot@177a7eb9e05c:~/groot$ ~/groot/build/bin/groot ~/groot/test/TestFiles/cc.il.us/zone_files --jobs=~/groot/test/TestFiles/cc.il.us/jobs.json --output=output.json
Exception:- [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal

Sorry if I'm overlooking something obvious!

Groot itself seems to be working:

groot@177a7eb9e05c:~/groot$ ./build/bin/groot 
Arguments did not match expected patterns
groot 1.0
[...]

Also, the JSON seems to check out:

groot@177a7eb9e05c:~/groot$ python3
Python 3.8.10 (default, Sep 28 2021, 16:10:42) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import json
>>> json.load(open("/home/groot/groot/test/TestFiles/cc.il.us/jobs.json"))
[{'Domain': 'child.richland.cc.il.us.', [...]
SivaKesava1 added a commit that referenced this issue Feb 21, 2022
@SivaKesava1
Copy link
Member

Thanks for checking out GRoot, @nils-wisiol. I have updated the README; it should work now.

@nils-wisiol
Copy link
Author

Thanks, this fixed it for me! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants