failed to install swig_decoders
hi!
when i run 'models/deep_speech_2/setup.sh'
it always says ''module' object has no attribute 'ccompiler'' and failed to install swig_decoders

my env: centos:7.3 python:2.7.5 gcc: 4.8.5
also: when i run 'python setup.py install --num_processes 4' in 'models/deep_speech_2/decoders/swig'
the following error comes:

anyone can help me! very thanks!
Could you provide the version of your distutils package?
thanks very much for your reply!

Can you import ccompiler from terminal?
Sorry for this error. It seems that ccompiler is deprecated in newer version of distutils. Our test environment is python 2.7.3 and will find some solutions.
@kuke cannot import ccompiler @pkuyym thanks and i will try python 2.7.3 later!
I just found that python2.7.10 contains distutils.ccompiler.CCompiler.compile. Please make sure after importing from setuptools import setup, Extension, distutils, distutils.ccompiler.CCompiler.compile can be found. Maybe some dependencies are missing like one of setup, Extension
@pkuyym distutils.ccompilser.CCompiler.compile can be found with python 2.7.13
but still flailed to install swig_decoders

Please goto decoders/swig to run sh setup.sh and you will see more detailed information.
here is the output log after run 'sh setup.sh' log.txt
Seems that you have installed swig_decoders successfully
@kuke I rebuild paddle with python 2.7.10, and re-setup deep_speech_2, but still have this issue


@kuke when I run 'swig -python -c++ ./decoders.i'
swig version:2.0.10
error occurs!

thanks you all @pkuyym @kuke this issue is relevant to swig, after upgrade from 2.0.10 to 3.0.12, everything goes well
@zhaifly how were you able to change the swig version from 2.0.10 to 3.0.12
I have downloaded the swig 3.0.12 from this link http://www.swig.org/download.html and the followed the below process to install which is given in this link http://swig.org/svn.html
even after it successfully installed it gives the below output
[root@redhat-7 test120]# swig -version
bash: /bin/swig: No such file or directory
@rituraj17 I install successfully following the README file in the download from this link http://www.swig.org/download.html