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

can not execute script/run.sh #6

Open
super-rookie-i opened this issue Jul 16, 2020 · 2 comments
Open

can not execute script/run.sh #6

super-rookie-i opened this issue Jul 16, 2020 · 2 comments

Comments

@super-rookie-i
Copy link

Hello giulbia,
Can I run the program only by getting the Docker image docker pull mikkl/rpi2-babycry:squashed?
I cloned the repo to the folder as required,put the .egg to lib,and put the model.pkl in model.but I ran into this problem

pi@raspberrypi:/opt/baby_cry_rpi/script $ ./run.sh
docker: unknown server OS: .
See 'docker run --help'.

@crobertsbmw
Copy link

I'm having the same issue. I don't know much about docker. Do you have to generate a docker container or something and then run it from inside docker somehow? I feel like there is a missing instruction in between:

Get the Docker image docker pull mikkl/rpi2-babycry:squashed
Put model.pkl generated by baby_cry_detection in folder model
Put the egg file baby_cry_detection-1.1-py2.7.egg generated by baby_cry_detection in folder lib

and
Execute script/run.sh from /opt/baby_cry_rpi

@crobertsbmw
Copy link

HA! I figured it out. It's a permissions issue.
So I installed docker using sudo, and with the installation script. So I needed to run the script using sudo as well. Once I did that, it worked. Maybe @super-rookie-i did the same? Try running sudo script/run.sh from the /opt/baby_cry_rpi/ directory (running run.sh from /opt/baby_cry_rpi/script also gave an error, so move up a directory).

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