question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build fails on Ubuntu 16.04.1

See original GitHub issue

I followed the instructions, and got this error when building:

ubuntu@BorisGPUMP2 [ /tmp/sonnet ]  (master)
[18:35]: bazel build --config=opt :install
zsh: correct 'build' to 'BUILD' [nyae]? n
.............
WARNING: Config values are not defined in any .rc file: opt
WARNING: /home/ubuntu/.cache/bazel/_bazel_ubuntu/73ef796d701fb86018fd94fe895372e2/external/org_tensorflow/tensorflow/workspace.bzl:72:5: tf_repo_name was specified to tf_workspace but is no longer used and will be removed in the future.
INFO: Found 1 target...
ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/73ef796d701fb86018fd94fe895372e2/external/protobuf/BUILD:241:1: C++ compilation of rule '@protobuf//:js_embed' failed: Process exited with status 1 [sandboxed].
src/main/tools/linux-sandbox-pid1.cc:257: "mount(/tmp/sonnet, tmp/sonnet, NULL, MS_BIND, NULL)": No such file or directory
Use --strategy=CppCompile=standalone to disable sandboxing for the failing actions.
Target //:install failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/73ef796d701fb86018fd94fe895372e2/external/org_tensorflow/tensorflow/core/BUILD:190:1 C++ compilation of rule '@protobuf//:js_embed' failed: Process exited with status 1 [sandboxed].
INFO: Elapsed time: 8.429s, Critical Path: 0.18s
[18:39]: lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
schanicommented, Apr 13, 2017

This, together with #6, made the build succeed, but after installing the wheel file, it seems like it can’t find the native library:

[17:41]: python
Python 2.7.13 |Continuum Analytics, Inc.| (default, Dec 20 2016, 23:09:15)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> 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 "/home/ubuntu/anaconda3/envs/p27-tf1/lib/python2.7/site-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.

The wheel file also doesn’t contain a native library:

[17:44]: unzip -l ./sonnet-install/sonnet-1.0-py2-none-any.whl  | less
Archive:  ./sonnet-install/sonnet-1.0-py2-none-any.whl
  Length      Date    Time    Name
---------  ---------- -----   ----
     4817  2017-04-13 17:41   sonnet/__init__.py
     8064  2017-04-13 17:41   sonnet/examples/dataset_shakespeare.py
      809  2017-04-13 17:41   sonnet/examples/__init__.py
    11702  2017-04-13 17:41   sonnet/examples/rnn_shakespeare.py
     3751  2017-04-13 17:41   sonnet/examples/module_with_build_args.py
   892315  2017-04-13 17:41   sonnet/examples/data/ts.train.txt
   111539  2017-04-13 17:41   sonnet/examples/data/ts.valid.txt
   111540  2017-04-13 17:41   sonnet/examples/data/ts.test.txt
      844  2017-04-13 17:41   sonnet/python/__init__.py
     5452  2017-04-13 17:41   sonnet/python/modules/experimental.py
    15044  2017-04-13 17:41   sonnet/python/modules/base.py
     7712  2017-04-13 17:41   sonnet/python/modules/pondering_rnn.py
    13392  2017-04-13 17:41   sonnet/python/modules/rnn_core.py
    20102  2017-04-13 17:41   sonnet/python/modules/batch_norm.py
     7109  2017-04-13 17:41   sonnet/python/modules/embed.py
    12396  2017-04-13 17:41   sonnet/python/modules/util.py
      829  2017-04-13 17:41   sonnet/python/modules/__init__.py
     7812  2017-04-13 17:41   sonnet/python/modules/block_matrix.py
     7402  2017-04-13 17:41   sonnet/python/modules/attention.py
     2053  2017-04-13 17:41   sonnet/python/modules/clip_gradient.py
   105355  2017-04-13 17:41   sonnet/python/modules/conv.py
     2044  2017-04-13 17:41   sonnet/python/modules/scale_gradient.py
    34392  2017-04-13 17:41   sonnet/python/modules/gated_rnn.py
    19266  2017-04-13 17:41   sonnet/python/modules/basic_rnn.py
    23212  2017-04-13 17:41   sonnet/python/modules/spatial_transformer.py
     3510  2017-04-13 17:41   sonnet/python/modules/sequential.py
    43211  2017-04-13 17:41   sonnet/python/modules/basic.py
    21282  2017-04-13 17:41   sonnet/python/modules/nets/convnet.py
    10619  2017-04-13 17:41   sonnet/python/modules/nets/alexnet.py
     1301  2017-04-13 17:41   sonnet/python/modules/nets/__init__.py
     8110  2017-04-13 17:41   sonnet/python/modules/nets/mlp.py
    13456  2017-04-13 17:41   sonnet/python/modules/nets/dilation.py
   264952  2017-04-13 17:41   sonnet/python/ops/_resampler.so
    10734  2017-04-13 17:41   sonnet/python/ops/nest.py
      833  2017-04-13 17:41   sonnet/python/ops/__init__.py
     3377  2017-04-13 17:41   sonnet/python/ops/initializers.py
     2860  2017-04-13 17:41   sonnet/python/ops/resampler.py
       10  2017-04-13 17:41   sonnet-1.0.dist-info/DESCRIPTION.rst
     1134  2017-04-13 17:41   sonnet-1.0.dist-info/metadata.json
        7  2017-04-13 17:41   sonnet-1.0.dist-info/top_level.txt
       92  2017-04-13 17:41   sonnet-1.0.dist-info/WHEEL
      888  2017-04-13 17:41   sonnet-1.0.dist-info/METADATA
     3867  2017-04-13 17:41   sonnet-1.0.dist-info/RECORD
---------                     -------
  1819196                     43 files
0reactions
adria-pcommented, May 25, 2017

Duplicate of #25 . Also, as pointed out, please move out of the sonnet to import it, as you might be importing only the python dependencies (a fix for this use case is coming in the following days).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build fails on Ubuntu 16.04 · Issue #1 - GitHub
The default compiler on Xenial (gcc 5.4.0) does not enable c++11 features by default, therefore the build fails.
Read more >
Error building Sagemath8.1 on ubuntu 16.04 while installing
I am having Ubuntu 16.04lts running on intel i3 5th generation. I tried installing sagemath from source but keep receiving error msg:.
Read more >
Install Ruby On Rails on Ubuntu 16.04 Xenial Xerus - GoRails
A guide to setting up a Ruby on Rails development environment on Ubuntu 16.04 Xenial Xerus with Git, MySQL, and PostgreSQL.
Read more >
XenialXerus/ReleaseNotes/ChangeSummary/16.04.7
This is a brief summary of bugs fixed between Ubuntu 16.04.6 and 16.04.7. This summary covers only changes to packages in main and ......
Read more >
docker build fails RUN command at Ubuntu 16.04 but not ...
docker build fails RUN command at Ubuntu 16.04 but not 18.04 with same Docker verison · FROM arm32v7/openjdk:8-jdk-slim WORKDIR /app COPY qemu- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found