-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fedora 24 unable to import sonnet #23
Comments
Hi, The second error is expected, as you're trying to import from the source directory, which doesn't have the compiled library available. As for the first, seems like some symbols that Sonnet expects to be present are not. Can you run "nm $file | grep CheckOpMessageBuilder" on the sonnet _resampler.so file, as well as $SITE_PACKAGES_DIR/tensorflow/python/_pywrap_tensorflow.so. For reference, I see the following (on Mac):
ie, the resampler file contains references to a bunch of external symbols, but they are all defined in the main tensorflow static library. I suspect you will see that you don't have those symbols available, which should help us debug further. |
$ nm /usr/lib/python2.7/site-packages/sonnet/python/ops/_resampler.so | grep CheckOpMessageBuilder As for $SITE_PACKAGES_DIR/tensorflow/python/_pywrap_tensorflow.so, the output is a huge list of similarly formatted lines. |
Can you post the full output of |
Hi,
This is output from the command This is the output form command:
|
i have the same error. my environment is Ubuntu16.04. I installed sonnet in virtualenv |
floodsung@floodsung:~/Documents/sonnet$ bazel build --config=opt :install Do you have the same WARNINGs? |
@songrotek : yeah |
I followed the steps described by @roman3017 in issue number #5. Now sonnet is working. Seems to be some lib refences issues between tensorflow 1.0.1 and sonnet:
|
I am having the same problem on Linux Mint 18.1. I followed the proceedure above and the output I get is
|
I also followed the procedure suggested by @sathishreddy for installing TF1.1 (just leaving out --config=cuda). Within the sonnet dir I had the same '_gen_resampler could not be imported' error as before, but outside it was able to successfully run the resampler test. Thanks so much! |
I used pip to upgrade TensorFlow to 1.1 but having an error when trying to configure the headers to bazel build:
I am able to import tensorflow, so is there an option that I'm missing on 'configure'? |
Previous issue was from old bazel version. I upgraded to 0.4.5 -- now having this issue which I cannot make sense.
|
Fedora 24, tensorflow 1.0.1, bazel 0.4.5
Installing sonnet seems to have been successful (Requirement already satisfied: sonnet==1.0.....), including installing jdk8, bazel, sonnet, and the ./configure for tensorflow. But when I try to import sonnet, I get the error below. Any suggestions?
However, works if I switch to the sonnet directory, then import, but then testing it I get an ImportError:
I did uninstall sonnet before installing the whl file.
The text was updated successfully, but these errors were encountered: