Skip to content

Basic docker image with jupyter notebook#7

Closed
davemssavage wants to merge 6 commits intogoogle-deepmind:masterfrom
davemssavage:docker-image
Closed

Basic docker image with jupyter notebook#7
davemssavage wants to merge 6 commits intogoogle-deepmind:masterfrom
davemssavage:docker-image

Conversation

@davemssavage
Copy link

Currently includes this bug fix

#6

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@davemssavage
Copy link
Author

davemssavage commented Apr 8, 2017

However even with compile fix from @roman3017 sonnet is not working, I see this error message when running the basic sanity check

$ cd ~/
$ python
>>> import sonnet as snt
>>> import tensorflow as tf
>>> snt.resampler(tf.constant([0.]), tf.constant([0.]))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/sonnet/python/ops/resampler.py", line 62, in resampler
    raise ImportError("_gen_resampler could not be imported.")
ImportError: _gen_resampler could not be imported.

Digging in a bit further to resampler.py it appears the _resampler.so file has some errors

$ python
>>> import sonnet as snt
>>> import tensorflow as tf
>>> _gen_resampler = tf.load_op_library(tf.resource_loader.get_path_to_datafile("/usr/local/lib/python2.7/dist-packages/sonnet/python/ops/_resampler.so"))
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/load_library.py", line 64, in load_op_library
    None, None, error_msg, error_code)
tensorflow.python.framework.errors_impl.NotFoundError: /usr/local/lib/python2.7/dist-packages/sonnet/python/ops/_resampler.so: undefined symbol: _ZN10tensorflow8internal21CheckOpMessageBuilder9NewStringB5cxx11Ev

@davemssavage
Copy link
Author

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

@davemssavage davemssavage changed the title WIP: Basic docker image with jupyter notebook Basic docker image with jupyter notebook Apr 27, 2017
@@ -0,0 +1,50 @@
FROM tensorflow/tensorflow:1.0.1
Copy link
Author

@davemssavage davemssavage Apr 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried updating to 1.1 but this results in a runtime error when importing sonnet

import sonnet as snt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/sonnet/__init__.py", line 102, in <module>
    from sonnet.python.ops.resampler import resampler
  File "/usr/local/lib/python2.7/dist-packages/sonnet/python/ops/resampler.py", line 33, in <module>
    tf.resource_loader.get_path_to_datafile("_resampler.so"))
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/load_library.py", line 64, in load_op_library
    None, None, error_msg, error_code)
tensorflow.python.framework.errors_impl.NotFoundError: /usr/local/lib/python2.7/dist-packages/sonnet/python/ops/_resampler.so: undefined symbol: _ZN10tensorflow8internal21CheckOpMessageBuilder9NewStringB5cxx11Ev

updating to 1.1 would remove the need to import the ppa:openjdk-r/ppa repo

Happy to update this patch if a workaround for that can be found.

@tomhennigan
Copy link
Collaborator

Hi @davemssavage sorry we didn't get back to you here. Development on Sonnet has switched from V1 to V2 and we're closing out old PRs and issues related to V1.

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 this pull request may close these issues.

5 participants