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.

lab@matrix4:~/lyz$ git clone https://github.com/bxshi/ConMask.git
Cloning into 'ConMask'...
remote: Counting objects: 117, done.
remote: Total 117 (delta 0), reused 0 (delta 0), pack-reused 117
Receiving objects: 100% (117/117), 85.09 KiB | 49.00 KiB/s, done.
Resolving deltas: 100% (49/49), done.
Checking connectivity... done.
lab@matrix4:~/lyz$ cd ConMask/
lab@matrix4:~/lyz/ConMask$ ls
ndkgc  README.md  tools
lab@matrix4:~/lyz/ConMask$ mkdir data
lab@matrix4:~/lyz/ConMask$ ls
data  ndkgc  README.md  tools
lab@matrix4:~/lyz/ConMask$ cd ../
lab@matrix4:~/lyz$ mv dbpedia50 dbpedia500 ./ConMask/data
lab@matrix4:~/lyz$ mv checkpoint_db50_v2_dr_uniweight_2 ./ConMask/
lab@matrix4:~/lyz$ cd ConMask/
lab@matrix4:~/lyz/ConMask$ ls
checkpoint_db50_v2_dr_uniweight_2  data  ndkgc  README.md  tools
lab@matrix4:~/lyz/ConMask$ cd ndkgc/
lab@matrix4:~/lyz/ConMask/ndkgc$ cd ops/
lab@matrix4:~/lyz/ConMask/ndkgc/ops$ ls
content.py     __init__.py  multigpu.py  sampling.py
corruption.py  lookup.py    __sampling
lab@matrix4:~/lyz/ConMask/ndkgc/ops$ cd __sampling/
lab@matrix4:~/lyz/ConMask/ndkgc/ops/__sampling$ ls
CMakeLists.txt  pairwise_sampler.cpp
lab@matrix4:~/lyz/ConMask/ndkgc/ops/__sampling$ cmake .
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- OS Type: Linux
-- TensorFlow include dir: /home/lab/anaconda3/lib/python3.6/site-packages/tensorflow/include
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lab/lyz/ConMask/ndkgc/ops/__sampling
lab@matrix4:~/lyz/ConMask/ndkgc/ops/__sampling$ cmake --build .
Scanning dependencies of target sampling
[ 50%] Building CXX object CMakeFiles/sampling.dir/pairwise_sampler.cpp.o
[100%] Linking CXX shared library libsampling.so
[100%] Built target sampling
lab@matrix4:~/lyz/ConMask/ndkgc/ops/__sampling$ cd ../../
lab@matrix4:~/lyz/ConMask/ndkgc$ cd ../
lab@matrix4:~/lyz/ConMask$ source activate root
(base) lab@matrix4:~/lyz/ConMask$ python3 -m ndkgc.models.fcn_model_v2 checkpoint_db50_v2_dr_uniweight_2 data/dbpedia50 --force_eval --layer 3 --conv 2 --lr 1e-2 --keep_prob 0.5 --max_content 512 --pos 1 --neg 4 --open --neval 5000 --eval --filter
Traceback (most recent call last):
  File "/home/lab/anaconda3/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/lab/anaconda3/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/lab/lyz/ConMask/ndkgc/models/fcn_model_v2.py", line 6, in <module>
    from ndkgc.models.content_model import ContentModel
  File "/home/lab/lyz/ConMask/ndkgc/models/content_model.py", line 6, in <module>
    from ndkgc.ops import *
  File "/home/lab/lyz/ConMask/ndkgc/ops/__init__.py", line 1, in <module>
    from ndkgc.ops.corruption import *
  File "/home/lab/lyz/ConMask/ndkgc/ops/corruption.py", line 6, in <module>
    from ndkgc.ops.sampling import single_negative_sampling, multiple_negative_sampling
  File "/home/lab/lyz/ConMask/ndkgc/ops/sampling.py", line 5, in <module>
    __lib = tf.load_op_library(os.path.join(__so_dir, './__sampling/libsampling.so'))
  File "/home/lab/anaconda3/lib/python3.6/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/lab/lyz/ConMask/ndkgc/ops/./__sampling/libsampling.so: undefined symbol: _ZN10tensorflow7strings6StrCatB5cxx11ERKNS0_8AlphaNumE

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
lmlyzxiaopcommented, Apr 25, 2018

this command solve my problem , g++ -g -std=c++11 -I ‘/home/lab/anaconda3/envs/py3/lib/python3.4/site-packages/tensorflow/include’ -D_GLIBCXX_USE_CXX11_ABI=0 pairwise_sampler.cpp -fPIC -shared -pthread -O2 -o libsampling.so

0reactions
bxshicommented, Apr 25, 2018

Good to know, and thanks for posting your solution here!

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does it mean when toy get a code in your world cup ...
Discover short videos related to What does it mean when toy get a code in your world cup stucker on TikTok. Videos.
Read more >
World cup album stucker promo code | TikTok Search
World cup album stucker promo code. 7.5M views. Discover short videos related to World cup album stucker promo code on TikTok.
Read more >
Corinne Stucker | Papers With Code
Papers by Corinne Stucker with links to code and results. ... Search Results for author: Corinne Stucker. Found 3 papers, 3 papers with...
Read more >
ImpliCity: City Modeling from Satellite Images with Deep ...
This repository provides the code to train and evaluate ImpliCity: a method that ... Corinne Stucker, Bingxin Ke, Yuanwen Yue, Shengyu Huang, Iro...
Read more >
stuckernew13.pdf - Utah Property Rights Ombudsman
Steve STUCKER and Michelle Stucker, Plaintiffs and Appellants, ... The Stuckers purchased Lot 225 of the ... Summit County (1977 Code), which controlled....
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