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

docker build neuroscout fails #745

Closed
bpinsard opened this issue Mar 27, 2020 · 1 comment · Fixed by #746
Closed

docker build neuroscout fails #745

bpinsard opened this issue Mar 27, 2020 · 1 comment · Fixed by #746

Comments

@bpinsard
Copy link
Contributor

When I try to start the whole neuroscout stack using docker-compose, there is an error regarding missing tensorflow during the build of neuroscout image.

$docker-compose up -d

..
..
..

Step 10/31 : RUN python -m pliers.support.setup_yamnet
 ---> Running in 8614270feab6
	Downloading model repository...

Model repository downloaded at /root/pliers_data/yamnet , size: 4096 bytes

Model file downloaded.

/root/pliers_data/yamnet
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/src/app/src/pliers/pliers/support/setup_yamnet.py", line 43, in <module>
    setup_yamnet()
  File "/usr/src/app/src/pliers/pliers/support/setup_yamnet.py", line 40, in setup_yamnet
    runpy.run_path(str(test_path), run_name='__main__')
  File "/usr/local/lib/python3.6/runpy.py", line 263, in run_path
    pkg_name=pkg_name, script_name=fname)
  File "/usr/local/lib/python3.6/runpy.py", line 96, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
  File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/root/pliers_data/yamnet/yamnet_test.py", line 19, in <module>
    import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow'
ERROR: Service 'neuroscout' failed to build: The command '/bin/sh -c python -m pliers.support.setup_yamnet' returned a non-zero code: 1
@adelavega
Copy link
Collaborator

Thanks. That should be easily fixed by adding tensorflow as a dependency. Unfortunately, travis-ci doesn't catch these sort of issues as they are related to the docker build.

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

Successfully merging a pull request may close this issue.

2 participants