Nix bash # python spyder - spyder-4.1.4/bin/.spyder3-wrapped: Argument list too long

How to “fix”/manipulate the bash limit ?


With a advanced environment

  • Jupyter works (normally)
  • but spyder (version 4.x) fails with bash error
spyder3
/nix/store/iz3a3225jy7vhhbz8f91r8aypszss07d-python3.8-spyder-4.1.4/bin/spyder3: line 3: /nix/store/iz3a3225jy7vhhbz8f91r8aypszss07d-python3.8-spyder-4.1.4/bin/.spyder3-wrapped: Argument list too long

/nix/store/iz3a3225jy7vhhbz8f91r8aypszss07d-python3.8-spyder-4.1.4/bin/.spyder3-wrapped:


#! /nix/store/a3fc4zqaiak11jks9zd579mz5v0li8bg-bash-4.4-p23/bin/bash -e

export PATH='/nix/store/v72cj06nk69cynckz2s12rhar25k1h7v-python3-3.8.5/bin:/nix/store/iz3a3225jy7vhhbz8f91r8aypszss07d-python3.8-spyder-4.1.4/bin:/nix/store/63v85pyhi91bwfybv8ddjcy45qiqi696-python3.8-pycodestyle-2.6.0/bin:/nix/store/ibi1i899yyasihbbr0l4xmps8b8077ia-python3.8-pyflakes-2.2.0/bin:/nix/store/grglcz451q7027fjh0pmypb63hkc59cr-python3.8-numpy-1.19.1/bin:/nix/store/pml24684ad5a8a7n10m8s6xkchncxkyd-freetype-2.10.2-dev/bin:/nix/store/szfj0xvd2qh071dgvh9klw08w035igjz-bzip2-1.0.6.0.1-bin/bin:/nix/store/qxdg8yznqjx3bbv3llc2kv7klnpb9yj7-libpng-apng-1.6.37-dev/bin:/nix/store/990s0fvsbl4fii039pf2d7lj9ssppy68-python3.8-pbr-5.4.5/bin:/nix/store/1m7mq4llm0af70w041645yx06839cwz5-tcl-8.6.9/bin:/nix/store/0sqz41cdx1z5y7fd4ndh645vkm46f1h5-fontconfig-2.13.92-bin/bin:/nix/store/xlayziv3dinshi1kq13y356awwyf3agx-tk-8.6.9/bin:/nix/store/5h4piaivmmzmvpkmag9498k1d2vrsxzr-python3.8-pylint-2.5.3/bin:/nix/store/j979cr3bga3vf85da3dgxiwfxysnq7ic-python3.8-isort-4.3.21/bin:/nix/store/y7a5rsd9g4nkxizd8mnrmr19z0q67k8x-python3.8-setuptools-47.3.1/bin:/nix/store/y2v31jhcw6d00mz8ji0nybw327x2h1j0-python3.8-keyring-21.3.1/bin:/nix/store/p8ff260i4ijq3phqmpvd7h7zj0n5xm1m-python3.8-sphinx-3.0.3/bin:/nix/store/l3yibf8ypl0h5p7rh9kig33g0rcbb74h-python3.8-docutils-0.16/bin:/nix/store/7qc9p9c2k943kwjijpgyy7vvfkbzp4mh-python3.8-Pygments-2.6.1/bin:/nix/store/di36rxzg58z9wnfgf14indb2zm4l0glm-python3.8-Babel-2.7.0/bin:/nix/store/hh21rlpjnj57qij71q42h53bfx7fyj9y-python3.8-chardet-3.0.4/bin:/nix/store/g7daa49dm0csf5cwpigbwqa1jpi0l5sf-python3.8-qtconsole-4.7.6/bin:/nix/store/8v4ydkn33wwi84s6z57v8xf2bq8nccqs-python3.8-jupyter_core-4.6.3/bin:/nix/store/s4h3sfas9k1ji6bwy51kpqpq4q27rjby-python3.8-ipython-7.17.0/bin:/nix/store/g3c3dfgpwq00as36yw26i0vpqdib34c8-python3.8-jupyter_client-6.1.7/bin:/nix/store/ic56chm81h4hmrd9rxsl28bpplkbx5wk-python3.8-PyQt5.sip-4.19.24/bin:/nix/store/ip9zw8s8w19v4bggkmwfkr5rpfz88ff1-qtdeclarative-5.15.0-bin/bin:/nix/store/xy0a0gxhhj2qiwm877gcppijhnb5b87h-python3.8-PyQt5-5.15.1/bin:/nix/store/h8a82if34wwb62wd87f14gqcm6g6d4gg-python3.8-QtAwesome-0.7.2/bin:/nix/store/3bh8kq5jcf6wscpm8hrp74m7qq2va3is-python3.8-nbconvert-5.6.1/bin:/nix/store/8500p9hkqnm2szmk0iw3aywn4rzhck3f-python3.8-nbformat-5.0.7/bin:/nix/store/yk93sam9i74cdp4jy0mx3ilalmlyfwvq-python3.8-jsonschema-3.2.0/bin:/nix/store/vqlx0ysmnx11dbrwmr1dj20mz9hginzv-qtwebengine-5.15.0-bin/bin:/nix/store/dddjb1dwnr49y062i5ww2f0nr1j7qqvl-python3.8-qdarkstyle-2.8.1/bin:/nix/store/y3i51p3nw4kvivkb2p1dixmfwjm38cjh-python3.8-helpdev-0.7.1/bin:/nix/store/401bh0frx76l4dflrn04laa6s66jkjlk-python3.8-watchdog-0.10.3/bin:/nix/store/ckk8zlbl2z89v0zm2rk0irynmy5bg6k2-python3.8-python-language-server-0.34.1/bin:/nix/store/lvksfab43b1ikkxnx154jwprp7lxw825-python3.8-future-0.18.2/bin:/nix/store/gp9k9jlhnmcc3a1c4r6r6c43fz2dxby4-python3.8-flake8-3.8.3/bin:/nix/store/g473h8p0g6qia5q02r3n4xj62v1wnlb2-python3.8-autopep8-1.5.4/bin:/nix/store/grvzsbdprncrs4f59gwm69hk7jckdlnx-python3.8-pydocstyle-5.0.2/bin:/nix/store/r1jp8xbb4lzmf69x31z9a5cml9c78w0s-python3.8-yapf-0.30.0/bin'${PATH:+':'}$PATH

export PYTHONNOUSERSITE='true'

export QT_PLUGIN_PATH='/nix/store/fl7g5dqfbxa52c5dmcg98cb6p701hgzn-qtbase-5.15.0-bin/lib/qt-5.15.0/plugins'${QT_PLUGIN_PATH:+':'}$QT_PLUGIN_PATH

export QT_PLUGIN_PATH='/nix/store/jk2jk6vyxymx3znp25yapd2zznfaniwi-qtsvg-5.15.0-bin/lib/qt-5.15.0/plugins'${QT_PLUGIN_PATH:+':'}$QT_PLUGIN_PATH

export QT_PLUGIN_PATH='/nix/store/ip9zw8s8w19v4bggkmwfkr5rpfz88ff1-qtdeclarative-5.15.0-bin/lib/qt-5.15.0/plugins'${QT_PLUGIN_PATH:+':'}$QT_PLUGIN_PATH

export QML2_IMPORT_PATH='/nix/store/ip9zw8s8w19v4bggkmwfkr5rpfz88ff1-qtdeclarative-5.15.0-bin/lib/qt-5.15.0/qml'${QML2_IMPORT_PATH:+':'}$QML2_IMPORT_PATH

export QML2_IMPORT_PATH='/nix/store/jzlzm464kh6sb4x92hs4qh7qh4rsg7qp-qtquickcontrols-5.15.0/lib/qt-5.15.0/qml'${QML2_IMPORT_PATH:+':'}$QML2_IMPORT_PATH

export QT_PLUGIN_PATH='/nix/store/2pdwh4j5qzjhk0zkzib3xs15ry3nsqxl-qtwayland-5.15.0-bin/lib/qt-5.15.0/plugins'${QT_PLUGIN_PATH:+':'}$QT_PLUGIN_PATH

export QML2_IMPORT_PATH='/nix/store/2pdwh4j5qzjhk0zkzib3xs15ry3nsqxl-qtwayland-5.15.0-bin/lib/qt-5.15.0/qml'${QML2_IMPORT_PATH:+':'}$QML2_IMPORT_PATH

export XDG_DATA_DIRS='/nix/store/iz3a3225jy7vhhbz8f91r8aypszss07d-python3.8-spyder-4.1.4/share'${XDG_DATA_DIRS:+':'}$XDG_DATA_DIRS

exec -a "$0" "/nix/store/iz3a3225jy7vhhbz8f91r8aypszss07d-python3.8-spyder-4.1.4/bin/..spyder3-wrapped-wrapped" "$@"