Hi guys,
desperately looking for help! I just wanted to update all my software (Dietpi, Sonarr, Sabnzbd) - because it’s a new year and all - and I have failed miserably.
When trying to install Sabnzbd (I uninstalled it earlier when I tried a “fix”) I get this error:
- Command: python3 ./get-pip.py │
│ - Exit code: 1 │
│ - DietPi version: v7.9.3 (MichaIng/master) | HW_MODEL: 4 | HW_ARCH: 2 | DISTRO: 5 │
│ - Image creator: DietPi Core Team │
│ - Pre-image: Raspberry Pi OS (32-bit) Lite │
│ - Error log: │
│ /usr/local/lib/python3.7/dist-packages/_distutils_hack/__init__.py:25: UserWarning: Distutils was imported before │
│ Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to │
│ undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is │
│ installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always │
│ imported before distutils. │
│ "Distutils was imported before Setuptools, but importing Setuptools " │
│ /usr/local/lib/python3.7/dist-packages/_distutils_hack/__init__.py:36: UserWarning: Setuptools is replacing │
│ distutils. │
│ warnings.warn("Setuptools is replacing distutils.") │
│ Traceback (most recent call last): │
│ File "./get-pip.py", line 27081, in <module> │
│ main() │
│ File "./get-pip.py", line 139, in main │
│ bootstrap(tmpdir=tmpdir) │
│ File "./get-pip.py", line 120, in bootstrap │
│ args = determine_pip_install_arguments() │
│ File "./get-pip.py", line 65, in determine_pip_install_arguments │
│ import setuptools # noqa │
│ File "/usr/local/lib/python3.7/dist-packages/setuptools/__init__.py", line 8, in <module> │
│ import _distutils_hack.override # noqa: F401 │
│ File "/usr/local/lib/python3.7/dist-packages/_distutils_hack/override.py", line 1, in <module> │
│ __import__('_distutils_hack').do_override() │
│ File "/usr/local/lib/python3.7/dist-packages/_distutils_hack/__init__.py", line 73, in do_override │
│ ensure_local_distutils() │
│ File "/usr/local/lib/python3.7/dist-packages/_distutils_hack/__init__.py", line 61, in ensure_local_distutils │
│ assert '_distutils' in core.__file__, core.__file__ │
│ AssertionError: /usr/lib/python3.7/distutils/core.py
I think I upgraded Python and stuff but…I am honestly pretty lost by now…
If you need any additional information, please let me know how to provide it as well. I am fairly wonky when it comes to everything related to Linux…obviously…