TabError when running LefSe

Hello everybody!

I'm sorry I bring this topic alive again. I'm trying to follow steps indicating here, but I'm receiving still the same error mesage:

line 109
return int(a[u] > b[u])*2-1
^
TabError: inconsistent use of tabs and spaces in indentation
File "/.conda/envs/lefse/bin/run_lefse.py", line 25
parser.add_argument('-r',dest="rank_tec", metavar='str', choices=['lda','svm'], type=str, default='lda',

About my LEfSe Conda environment, it looks like this:

_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
_r-mutex                  1.0.0               anacondar_1    r
backports                 1.1                pyhd3eb1b0_0
backports.functools_lru_cache 1.6.4              pyhd3eb1b0_0
backports_abc             0.5                        py_1
binutils_impl_linux-64    2.31.1               h6176602_1
binutils_linux-64         2.31.1               h6176602_9
biom-format               2.1.7                    py27_0    bioconda
blas                      1.0                         mkl
bwidget                   1.9.16               h9eba36c_0
bzip2                     1.0.8                h5eee18b_5
c-ares                    1.19.1               h5eee18b_0
ca-certificates           2023.12.12           h06a4308_0
cairo                     1.14.12              h8948797_3
certifi                   2020.6.20          pyhd3eb1b0_3
click                     7.1.2              pyhd3eb1b0_0
curl                      7.76.1               h979ede3_1    conda-forge
cycler                    0.10.0                   py27_0
dbus                      1.13.18              hb2f20db_0
expat                     2.5.0                h6a678d5_0
fontconfig                2.14.1               h52c9d5c_1
freetype                  2.12.1               h4a9f257_0
fribidi                   1.0.10               h7b6447c_0
functools32               3.2.3.2                    py_3    conda-forge
future                    0.18.2                   py27_0
futures                   3.3.0            py27h8c360ce_1    conda-forge
gcc_impl_linux-64         7.3.0                habb00fd_1
gcc_linux-64              7.3.0                h553295d_9
gfortran_impl_linux-64    7.3.0                hdf63c60_1
gfortran_linux-64         7.3.0                h553295d_9
glib                      2.63.1               h5a9c865_0
graphite2                 1.3.14               h295c915_1
gsl                       2.4                  h14c3975_4
gst-plugins-base          1.14.0               hbbd80ab_1
gstreamer                 1.14.0               hb453b48_1
gxx_impl_linux-64         7.3.0                hdf63c60_1
gxx_linux-64              7.3.0                h553295d_9
h5py                      2.9.0            py27h7918eee_0
harfbuzz                  1.8.8                hffaf4a1_0
hdf5                      1.10.4               hb1b8bf9_0
icu                       58.2                 he6710b0_3
intel-openmp              2022.1.0          h9e868ea_3769
jpeg                      9e                   h0b41bf4_3    conda-forge
kiwisolver                1.1.0            py27he6710b0_0
krb5                      1.17.2               h926e7f8_0    conda-forge
lefse                     1.0.8.post1              py27_1    bioconda
lerc                      3.0                  h295c915_0
libcurl                   7.76.1               hc4aaa36_1    conda-forge
libdeflate                1.17                 h5eee18b_1
libedit                   3.1.20230828         h5eee18b_0
libev                     4.33                 h7f8727e_1
libffi                    3.2.1             he1b5a44_1007    conda-forge
libgcc-ng                 13.2.0               h807b86a_5    conda-forge
libgfortran-ng            7.5.0               h14aa051_20    conda-forge
libgfortran4              7.5.0               h14aa051_20    conda-forge
libgomp                   13.2.0               h807b86a_5    conda-forge
libnghttp2                1.52.0               ha637b67_1
libpng                    1.6.39               h5eee18b_0
libsqlite                 3.45.2               h2797004_0    conda-forge
libssh2                   1.10.0               h37d81fd_2
libstdcxx-ng              13.2.0               h7e041cc_5    conda-forge
libtiff                   4.5.1                h6a678d5_0
libuuid                   1.41.5               h5eee18b_0
libwebp-base              1.3.2                h5eee18b_0
libxcb                    1.15                 h7f8727e_0
libxml2                   2.9.14               h74e7548_0
libzlib                   1.2.13               hd590300_5    conda-forge
linecache2                1.0.0                      py_1
lz4-c                     1.9.4                h6a678d5_0
make                      4.3                  hd18ef5c_1    conda-forge
matplotlib                2.2.3            py27hb69df0a_0
mkl                       2020.2                      256
mkl-service               2.3.0            py27he904b0f_0
mkl_fft                   1.0.15           py27ha843d7b_0
mkl_random                1.1.0            py27hd6b4f25_0
ncurses                   6.4                  h59595ed_2    conda-forge
numpy                     1.16.6           py27hbc911f0_0
numpy-base                1.16.6           py27hde5b4d6_0
openssl                   1.1.1w               h7f8727e_0
pandas                    0.24.2           py27he6710b0_0
pango                     1.42.4               h049681c_0
pcre                      8.45                 h295c915_0
pip                       20.1.1             pyh9f0ad1d_0    conda-forge
pixman                    0.40.0               h7f8727e_1
pyparsing                 2.4.7              pyhd3eb1b0_0
pyqi                      0.3.2                      py_0    conda-forge
pyqt                      5.9.2            py27h05f1152_2
python                    2.7.15            h5a48372_1009    conda-forge
python-dateutil           2.8.1              pyhd3eb1b0_0
python_abi                2.7                    1_cp27mu    conda-forge
pytz                      2020.1                     py_0
qt                        5.9.7                h5867ecd_1
r-base                    3.5.3                h26b83e4_0
r-codetools               0.2_16          r35h6115d3f_1001    conda-forge
r-coin                    1.3_1             r35hcdcec82_0    conda-forge
r-lattice                 0.20_41           r35hcdcec82_1    conda-forge
r-libcoin                 1.0_5             r35hcdcec82_0    conda-forge
r-mass                    7.3_51.6          r35hcdcec82_1    conda-forge
r-matrix                  1.2_18            r35hcdcec82_0    conda-forge
r-matrixstats             0.56.0            r35hcdcec82_0    conda-forge
r-modeltools              0.2_23            r35h6115d3f_0    conda-forge
r-multcomp                1.4_13            r35h6115d3f_0    conda-forge
r-mvtnorm                 1.1_0             r35h9bbef5b_0    conda-forge
r-sandwich                2.5_1             r35h6115d3f_1    conda-forge
r-survival                3.1_12            r35hcdcec82_0    conda-forge
r-th.data                 1.0_10            r35h6115d3f_1    conda-forge
r-zoo                     1.8_7             r35hcdcec82_0    conda-forge
readline                  8.2                  h8228510_1    conda-forge
rpy2                      2.8.6           py27r35hd767a1f_2    conda-forge
scipy                     1.2.1            py27h7c811a0_0
setuptools                44.0.0                   py27_0    conda-forge
singledispatch            3.7.0           pyhd3eb1b0_1001
sip                       4.19.8           py27hf484d3e_0
six                       1.16.0             pyhd3eb1b0_1
sqlite                    3.33.0               h62c20be_0
subprocess32              3.5.4            py27h7b6447c_0
tk                        8.6.13          noxft_h4845f30_101    conda-forge
tktable                   2.10                 h3d55465_1
tornado                   5.1.1            py27h7b6447c_0
traceback2                1.4.0                    py27_0
unittest2                 1.1.0                    py27_0
wheel                     0.37.1             pyhd8ed1ab_0    conda-forge
xz                        5.4.6                h5eee18b_0
zlib                      1.2.13               hd590300_5    conda-forge
zstd                      1.5.5                hc292b87_0

Any suggestions? Please @sbslee

Hello Martin,

Welcome to the forums! :qiime2:

I'm not sure if @.sbslee is offering support for Dokdo anymore, so I've split your question into a new thread so other folks can see it.

The good news is that this looks like a common error:

TabError: inconsistent use of tabs and spaces in indentation

Doing indentation with a mix of tabs and spaces will confuse programs. Check all your input files, clean them up, and hopefully this problem will be solved. :card_file_box: :broom: