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.

ERROR: missing temporal_convolution_tbc, run `python setup.py install`

See original GitHub issue

Hello,I am a green hand.when i use CUDA_VISIBLE_DEVICES=6 python train.py data-bin/iwslt14.tokenized.de-en --lr 0.25 --clip-norm 0.1 --dropout 0.2 --max-tokens 4000 --arch fconv_iwslt_de_en --save-dir checkpoints/fconv

I meet a error .

ERROR: missing temporal_convolution_tbc, run python setup.py install Traceback (most recent call last): File “train.py”, line 14, in <module> from fairseq import bleu, data, options, utils File “/home/hfyu/fairseq16/fairseq-py-master/fairseq/options.py”, line 11, in <module> from fairseq import models File “/home/hfyu/fairseq16/fairseq-py-master/fairseq/models/init.py”, line 9, in <module> from . import fconv File “/home/hfyu/fairseq16/fairseq-py-master/fairseq/models/fconv.py”, line 14, in <module> from fairseq.modules import BeamableMM, LinearizedConvolution File “/home/hfyu/fairseq16/fairseq-py-master/fairseq/modules/init.py”, line 10, in <module> from .conv_tbc import ConvTBC File “/home/hfyu/fairseq16/fairseq-py-master/fairseq/modules/conv_tbc.py”, line 18, in <module> raise e File “/home/hfyu/fairseq16/fairseq-py-master/fairseq/modules/conv_tbc.py”, line 14, in <module> from fairseq import temporal_convolution_tbc File “/home/hfyu/fairseq16/fairseq-py-master/fairseq/temporal_convolution_tbc/init.py”, line 3, in <module> from ._temporal_convolution_tbc import lib as _lib, ffi as _ffi ImportError: /home/hfyu/fairseq16/fairseq-py-master/fairseq/temporal_convolution_tbc/_temporal_convolution_tbc.so: undefined symbol: _ZNK2at4Type4copyERKNS_6TensorERS1

I donnot know how to deal with it ,Could you help me?Thankyou.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
myleottcommented, Oct 18, 2017

You need to run python setup.py build followed by python setup.py develop.

0reactions
renhongkaicommented, Feb 5, 2018
  • mkdir -p models/mlconv/model1000/
  • PYTHONPATH=/home/renhongkai/project/mlconvgec2018/software/fairseq-py:
  • CUDA_VISIBLE_DEVICES=0,1,2
  • python3.5 /home/renhongkai/project/mlconvgec2018/software/fairseq-py/train.py --save-dir models/mlconv/model1000/ --encoder-embed-dim 500 --decoder-embed-dim 500 --decoder-out-embed-dim 500 --dropout 0.2 --clip-norm 0.1 --lr 0.25 --min-lr 1e-4 --encoder-layers ‘[(1024,3)] * 7’ --decoder-layers ‘[(1024,3)] * 7’ --momentum 0.99 --max-epoch 100 --batch-size 32 --no-progress-bar --seed 1000 processed/bin Traceback (most recent call last): File “/home/renhongkai/project/mlconvgec2018/software/fairseq-py/train.py”, line 15, in <module> from fairseq import data, options, utils File “/home/renhongkai/project/mlconvgec2018/software/fairseq-py/fairseq/options.py”, line 11, in <module> from fairseq import models File “/home/renhongkai/project/mlconvgec2018/software/fairseq-py/fairseq/models/init.py”, line 14, in <module> from . import fconv, lstm File “/home/renhongkai/project/mlconvgec2018/software/fairseq-py/fairseq/models/fconv.py”, line 16, in <module> from fairseq.modules import BeamableMM, GradMultiply, LearnedPositionalEmbedding, LinearizedConvolution File “/home/renhongkai/project/mlconvgec2018/software/fairseq-py/fairseq/modules/init.py”, line 10, in <module> from .conv_tbc import ConvTBC File “/home/renhongkai/project/mlconvgec2018/software/fairseq-py/fairseq/modules/conv_tbc.py”, line 13, in <module> from fairseq import utils File “/home/renhongkai/project/mlconvgec2018/software/fairseq-py/fairseq/utils.py”, line 19, in <module> from fairseq import criterions, progress_bar, tokenizer File “/home/renhongkai/project/mlconvgec2018/software/fairseq-py/fairseq/progress_bar.py”, line 17, in <module> from tqdm import tqdm ImportError: No module named ‘tqdm’ (python3.6_env) [renhongkai@xxkx-gpu1 training]# python Python 3.6.3 (default, Oct 6 2017, 08:44:35) [GCC 5.4.0 20160609] on linux Type “help”, “copyright”, “credits” or “license” for more information.

import tqdm

exit() (python3.6_env) [renhongkai@xxkx-gpu1 training]# when i run train.py ,I encountered this problem:ImportError: No module named ‘tqdm’,but i have pip install tqdm.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: No module... After python setup.py install
Now, after installing this successfully with sudo python setup.py install , I run mypackage and get an import error: No module named ...
Read more >
Installing Python Modules (Legacy version) — Python 3.11.1 ...
Running setup.py install builds and installs all modules in one run. If you prefer to work incrementally—especially useful if you want to customize...
Read more >
How to Package Python dependencies with PIP setuptools
When pip runs setup.py, it will install all of the dependencies listed in install_requires. For example, if your project includes matplotlib, ...
Read more >
Handling of setup.py — catkin 0.6.19 documentation
If your ROS package contains python modules and scripts to install, ... catkin will execute setup.py with a hot-patched version of distutils to...
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