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

Problem using native client library + python bindings #836

Closed
dsouza95 opened this issue Sep 18, 2017 · 5 comments
Closed

Problem using native client library + python bindings #836

dsouza95 opened this issue Sep 18, 2017 · 5 comments

Comments

@dsouza95
Copy link

Hello,

I have just updated my branch in order to get the new improvements that came with #805. Prior to #805, I never used the native client, and I am somehow struggling to use it. I tried using the pre-compiled libraries provided, but I face the problem seen in image 1. Other than that, I tried compiling the libraries from the tensorflow sources, and not using conda environments, but got the same results.
I am using Anaconda for Python 2.7. Tried compiling with both g++-4.8 and g++-5.0. I copied all .so files inside native_client while keeping the permissions to /usr/lib, a path defined in LD_LIBRARY_PATH.
I feel this is somehow related to where the deepspeech pip package is installed, but I am not really sure. Any ideas?
Thank you in advance :)

Daniel

Image 1:
image

@lissyx
Copy link
Collaborator

lissyx commented Sep 18, 2017

I just verified, the libtensorflow_cc.so bundled in the latest native_client.tar.xz (from https://queue.taskcluster.net/v1/task/Mx3r25BbRaO45KdXZXToPQ/runs/0/artifacts/public/native_client.tar.xz) does have that symbol properly defined:

$ objdump -tT libtensorflow_cc.so |grep shape_inference16InferenceContext8WithRankENS0
00000000039f7600 g     F .text	0000000000000183              _ZN10tensorflow15shape_inference16InferenceContext8WithRankENS0_11ShapeHandleExPS2_
00000000039f7600 g    DF .text	0000000000000183  Base        _ZN10tensorflow15shape_inference16InferenceContext8WithRankENS0_11ShapeHandleExPS2_

Please make sure that you don't have a mess of previously installed libraries somewhere in /usr/lib or /usr/local/lib.

@lissyx
Copy link
Collaborator

lissyx commented Sep 18, 2017

@dsouza95 We need more context, you don't give us the LD_LIBRARY_PATH value that you are defining, nor where libtensorflow_cc.so lives. Also, you should not be using run-tc-ldc93s1.sh, that's only for TaskCluster.

@lissyx
Copy link
Collaborator

lissyx commented Sep 18, 2017

Under the proper LD_LIBRARY_PATH context, we would also need the output of ldd /usr/lib/libctc_decoder_with_kenlm.so. Also, it would help a lot @dsouza95 if you could copy/paste properly formatted text rather than images :)

@dsouza95
Copy link
Author

Hello,
Thanks for the quick reply! I'm sorry I won't be able to show some logs of my situation from yesterday. My Mint just decided it wouldn't boot anymore, to which I decided to make a clean install. As it turns out, everything works like a charm now :) I probably messed up somewhere along the setup or afterwards.

Keep up the good work!
Daniel

@lissyx lissyx closed this as completed Sep 19, 2017
@lock
Copy link

lock bot commented Jan 3, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Jan 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants