Code Monkey home page Code Monkey logo

Comments (14)

normanheckscher avatar normanheckscher commented on August 19, 2024 3

Builds on local ubuntu 16.04 LTS after applying #6

from sonnet.

cgarciae avatar cgarciae commented on August 19, 2024

Same here on Ubuntu 16.10.

from sonnet.

johnnogent avatar johnnogent commented on August 19, 2024

same on Ubuntu 14.04 LTS

from sonnet.

leesunfreshing avatar leesunfreshing commented on August 19, 2024

same here. Ubuntu 16.04 LTS

from sonnet.

leesunfreshing avatar leesunfreshing commented on August 19, 2024

@normanheckscher problem solved, thx

from sonnet.

malcolmreynolds avatar malcolmreynolds commented on August 19, 2024

@normanheckscher thanks for the fix - we'll get it in ASAP, and I'll close this issue once the changes are pushed back out to GitHub.

from sonnet.

malcolmreynolds avatar malcolmreynolds commented on August 19, 2024

@normanheckscher @leesunfreshing @johnnogent @cgarciae We have pushed a fix, please can you try and build again?

from sonnet.

normanheckscher avatar normanheckscher commented on August 19, 2024

@malcolmreynolds It builds, I just can't import it. I'll try and look a little further into it sometime over the next few days when I get more time.

Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import sonnet as snt
Traceback (most recent call last):
File "", line 1, in
File "/home/norman/.virtualenvs/tf/local/lib/python2.7/site-packages/sonnet/init.py", line 102, in
from sonnet.python.ops.resampler import resampler
File "/home/norman/.virtualenvs/tf/local/lib/python2.7/site-packages/sonnet/python/ops/resampler.py", line 33, in
tf.resource_loader.get_path_to_datafile("_resampler.so"))
File "/home/norman/.virtualenvs/tf/local/lib/python2.7/site-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: /home/norman/.virtualenvs/tf/local/lib/python2.7/site-packages/sonnet/python/ops/_resampler.so: undefined symbol: ZN10tensorflow15shape_inference16InferenceContext15WithRankAtLeastENS0_11ShapeHandleEiPS2

from sonnet.

normanheckscher avatar normanheckscher commented on August 19, 2024

Managed to get it to work.
My separately installed tensorflow version (outside the sonnet directory) was originally form the head and a version of 1.1.0rc2. I changed this tensorflow version with git, recompiled and installed the resultant tensorflow-1.1.0rc1-cp27-cp27mu-linux_x86_64.whl. After this, sonnet build, installs and runs as expected.

cd ~/workspace/tensorflow
git checkout r1.1
./configure
bazel build -c opt --copt=-mavx --copt=-mfpmath=both --copt=-msse4.2 --copt=-msse4.1 --config=cuda -k //tensorflow/tools/pip_package:build_pip_package --verbose_failures
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp//tensorflow_pkg/
pip install --upgrade /tmp/tensorflow_pkg/tensorflow-1.1.0rc1-cp27-cp27mu-linux_x86_64.whl
cd ~/workspace
git clone --recursive https://github.com/deepmind/sonnet
etc etc etc from the sonnet instructions

from sonnet.

tmke8 avatar tmke8 commented on August 19, 2024

I have the same error as @normanheckscher ("undefined symbol: ZN10tensorflow...") but my tensorflow is simply 1.0.1 from pip and I'm using Python3. So whatever @normanheckscher thinks was the problem, can't be the problem.

from sonnet.

normanheckscher avatar normanheckscher commented on August 19, 2024

@thomkeh I managed to get it working by being very particular with my tensorflow install. I'm guessing that the issue lies somewhere around interoperability with Tensorflow as I've played with differing versions of TensorFlow in both the sonnet directory and in my workstation environment (using virtualenv).

After building and installing an older version of Tensorflow I have been able to get Sonnet running. I'd suggest using git to build tensorflow @ 36a47f2, as this is the version which Sonnet is linked against. I'm currently using it to bang out multi-cpu models with mnist... variable success (recursive pun intended)... so yeah, it does work.

Is python 3 supported?

from sonnet.

tmke8 avatar tmke8 commented on August 19, 2024

@normanheckscher Ok, I see. Thanks for the response! I makes sense that you should use the tensorflow version that this repository links against.

Python3 is not officially supported but #10 made it sound like compatibility is just some small code changes away.

from sonnet.

adeze avatar adeze commented on August 19, 2024
	sudo apt-get dist-upgrade

fixed it for me on ubuntu 14.04 LTS

i found the bazel error fix elsewhere and it was stated it was an earlier version kernel issue
bazelbuild/bazel#1972

from sonnet.

adria-p avatar adria-p commented on August 19, 2024

@thomkeh python 3 is supported now :)

Regarding the compilation issues, marking this as duplicate of #25 to follow progress there.

from sonnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.