Well, what a coincidence⦠I did not see the updates to this thread.
I continued using the version I had.
A few days ago I updated Linux Mint 20.2 to 20.3 (Una), and since then RPD does not launch at all.
# [2022-01-21 17:34] maxg@maxg-pc-mint ~/Downloads $
python3 install.py
/home/maxg/.local/lib/python3.8/site-packages/_distutils_hack/__init__.py:36: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
install.py:119: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
pip_version = StrictVersion(pip.__version__)
install.py:140: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
unknown_version = LooseVersion('0.0')
install.py:2173: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if have_pip and pip_version >= StrictVersion('9.0.0'):
install.py:321: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
return LooseVersion(v)
Detected Linux distribution Linux Mint 20.3
setuptools will be upgraded from version 60.1.0 to version 60.5.0
These Python3 packages will be upgraded for your user (i.e. not system-wide): setuptools, wheel
The following command will be run:
/usr/bin/python3 -m pip install --user --upgrade setuptools wheel --disable-pip-version-check
Requirement already satisfied: setuptools in /home/maxg/.local/lib/python3.8/site-packages (60.1.0)
Collecting setuptools
Downloading setuptools-60.5.0-py3-none-any.whl (958 kB)
|ββββββββββββββββββββββββββββββββ| 958 kB 1.5 MB/s
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.34.2)
Collecting wheel
Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Installing collected packages: wheel, setuptools
Attempting uninstall: setuptools
Found existing installation: setuptools 60.1.0
Uninstalling setuptools-60.1.0:
Successfully uninstalled setuptools-60.1.0
Successfully installed setuptools-60.5.0 wheel-0.37.1
Restarting script using /usr/bin/python3
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
/home/maxg/.local/lib/python3.8/site-packages/_distutils_hack/__init__.py:30: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
install.py:119: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
pip_version = StrictVersion(pip.__version__)
install.py:140: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
unknown_version = LooseVersion('0.0')
install.py:2173: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if have_pip and pip_version >= StrictVersion('9.0.0'):
install.py:321: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
return LooseVersion(v)
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Downloading https://launchpad.net/rapid/pyqt/0.9.28/+download/rapid-photo-downloader-0.9.28.tar.gz (8.44 MB)
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:12
Loading new installer script version 0.3.15
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Traceback (most recent call last):
File "/tmp/tmp1zbuu696/Qhu0LIArpZ", line 14605, in <module>
main()
File "/tmp/tmp1zbuu696/Qhu0LIArpZ", line 4148, in main
packages, local_pip = pip_packages_required(distro_details.distro)
File "/tmp/tmp1zbuu696/Qhu0LIArpZ", line 665, in pip_packages_required
import setuptools
File "/home/maxg/.local/lib/python3.8/site-packages/setuptools/__init__.py", line 8, in <module>
import _distutils_hack.override # noqa: F401
File "/home/maxg/.local/lib/python3.8/site-packages/_distutils_hack/override.py", line 1, in <module>
__import__('_distutils_hack').do_override()
File "/home/maxg/.local/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 71, in do_override
ensure_local_distutils()
File "/home/maxg/.local/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 59, in ensure_local_distutils
assert '_distutils' in core.__file__, core.__file__
AssertionError: /usr/lib/python3.8/distutils/core.py
ran uninstallβ¦
# [2022-01-21 17:34] maxg@maxg-pc-mint ~/Downloads $
python3 install.py --uninstall-including-pip-dependencies
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
/home/maxg/.local/lib/python3.8/site-packages/_distutils_hack/__init__.py:30: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
install.py:119: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
pip_version = StrictVersion(pip.__version__)
install.py:140: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
unknown_version = LooseVersion('0.0')
install.py:2173: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if have_pip and pip_version >= StrictVersion('9.0.0'):
install.py:1489: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if pip_version >= StrictVersion('9.0.0'):
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Found existing installation: rapid-photo-downloader 0.9.26
Uninstalling rapid-photo-downloader-0.9.26:
Successfully uninstalled rapid-photo-downloader-0.9.26
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
install.py:435: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
LooseVersion(platform.python_version()) >= LooseVersion('3.5.0')
install.py:1535: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if version and StrictVersion(version) < StrictVersion('5.11'):
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Found existing installation: gphoto2 2.2.2
Uninstalling gphoto2-2.2.2:
Successfully uninstalled gphoto2-2.2.2
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Found existing installation: rawkit 0.6.0
Uninstalling rawkit-0.6.0:
Successfully uninstalled rawkit-0.6.0
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Found existing installation: PyPrind 2.11.2
Uninstalling PyPrind-2.11.2:
Successfully uninstalled PyPrind-2.11.2
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Found existing installation: easygui 0.97.4
Uninstalling easygui-0.97.4:
Successfully uninstalled easygui-0.97.4
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Found existing installation: colour 0.1.5
Uninstalling colour-0.1.5:
Successfully uninstalled colour-0.1.5
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Found existing installation: pymediainfo 4.2.1
Uninstalling pymediainfo-4.2.1:
Successfully uninstalled pymediainfo-4.2.1
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Found existing installation: pyheif 0.5.1
Uninstalling pyheif-0.5.1:
Successfully uninstalled pyheif-0.5.1
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Found existing installation: PyQt5 5.15.0
Uninstalling PyQt5-5.15.0:
Successfully uninstalled PyQt5-5.15.0
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
The tried to install again
# [2022-01-24 12:28] maxg@maxg-pc-mint ~/Downloads $
python3 install.py
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
/home/maxg/.local/lib/python3.8/site-packages/_distutils_hack/__init__.py:30: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
install.py:119: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
pip_version = StrictVersion(pip.__version__)
install.py:140: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
unknown_version = LooseVersion('0.0')
install.py:2173: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if have_pip and pip_version >= StrictVersion('9.0.0'):
install.py:321: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
return LooseVersion(v)
Detected Linux distribution Linux Mint 20.3
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Downloading https://launchpad.net/rapid/pyqt/0.9.28/+download/rapid-photo-downloader-0.9.28.tar.gz (8.44 MB)
Downloading.... done!
Loading new installer script version 0.3.15
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Traceback (most recent call last):
File "/tmp/tmphco0uoqy/HNvw3pfed8", line 14605, in <module>
main()
File "/tmp/tmphco0uoqy/HNvw3pfed8", line 4148, in main
packages, local_pip = pip_packages_required(distro_details.distro)
File "/tmp/tmphco0uoqy/HNvw3pfed8", line 665, in pip_packages_required
import setuptools
File "/home/maxg/.local/lib/python3.8/site-packages/setuptools/__init__.py", line 8, in <module>
import _distutils_hack.override # noqa: F401
File "/home/maxg/.local/lib/python3.8/site-packages/_distutils_hack/override.py", line 1, in <module>
__import__('_distutils_hack').do_override()
File "/home/maxg/.local/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 71, in do_override
ensure_local_distutils()
File "/home/maxg/.local/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 59, in ensure_local_distutils
assert '_distutils' in core.__file__, core.__file__
AssertionError: /usr/lib/python3.8/distutils/core.py
# [2022-01-24 12:29] maxg@maxg-pc-mint ~/Downloads $
python3 -m venv VirtualPythonEnvironment
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Then ran the pip list
# [2022-01-24 12:33] maxg@maxg-pc-mint ~/Downloads $
python3 -m pip list -v
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Package Version Location Installer
------------------------ -------------------- --------------------------------------------- ---------
ansible 2.9.10 /home/maxg/.local/lib/python3.8/site-packages pip
apt-clone 0.2.1 /usr/lib/python3/dist-packages
apt-xapian-index 0.49 /usr/lib/python3/dist-packages
apturl 0.5.2 /usr/lib/python3/dist-packages
argon2-cffi 20.1.0 /home/maxg/.local/lib/python3.8/site-packages pip
arrow 0.15.5 /usr/lib/python3/dist-packages
async-generator 1.10 /home/maxg/.local/lib/python3.8/site-packages pip
attrs 19.3.0 /usr/lib/python3/dist-packages
Babel 2.6.0 /usr/lib/python3/dist-packages
backcall 0.2.0 /home/maxg/.local/lib/python3.8/site-packages pip
bcrypt 3.1.7 /usr/lib/python3/dist-packages
beautifulsoup4 4.8.2 /usr/lib/python3/dist-packages
bleach 3.2.1 /home/maxg/.local/lib/python3.8/site-packages pip
blinker 1.4 /usr/lib/python3/dist-packages
Brlapi 0.7.0 /usr/lib/python3/dist-packages
bs4 0.0.1 /home/maxg/.local/lib/python3.8/site-packages pip
cached-property 1.5.1 /usr/lib/python3/dist-packages
cairocffi 1.2.0 /home/maxg/.local/lib/python3.8/site-packages pip
CairoSVG 2.5.0 /home/maxg/.local/lib/python3.8/site-packages pip
certifi 2019.11.28 /usr/lib/python3/dist-packages
cffi 1.14.0 /home/maxg/.local/lib/python3.8/site-packages pip
chardet 3.0.4 /usr/lib/python3/dist-packages
Click 7.0 /usr/lib/python3/dist-packages
colorama 0.4.3 /usr/lib/python3/dist-packages
colorlog 4.1.0 /usr/lib/python3/dist-packages
command-not-found 0.3 /usr/lib/python3/dist-packages
configobj 5.0.6 /usr/lib/python3/dist-packages
crudini 0.9.3 /usr/lib/python3/dist-packages
cryptography 2.8 /usr/lib/python3/dist-packages
cssselect2 0.4.1 /home/maxg/.local/lib/python3.8/site-packages pip
cupshelpers 1.0 /usr/lib/python3/dist-packages
cycler 0.10.0 /usr/lib/python3/dist-packages
dbus-python 1.2.16 /usr/lib/python3/dist-packages
decorator 4.4.2 /home/maxg/.local/lib/python3.8/site-packages pip
defer 1.0.6 /usr/lib/python3/dist-packages
defusedxml 0.6.0 /home/maxg/.local/lib/python3.8/site-packages pip
dirspec 13.10 /usr/lib/python3/dist-packages
distro 1.4.0 /usr/lib/python3/dist-packages
dnspython 1.16.0 /usr/lib/python3/dist-packages
docker 4.1.0 /usr/lib/python3/dist-packages
docker-compose 1.25.0 /usr/lib/python3/dist-packages
dockerpty 0.4.1 /usr/lib/python3/dist-packages
docopt 0.6.2 /usr/lib/python3/dist-packages
duplicity 0.8.12.0 /usr/lib/python3/dist-packages
easygui 0.98.1 /usr/lib/python3/dist-packages
entrypoints 0.3 /usr/lib/python3/dist-packages
fasteners 0.14.1 /usr/lib/python3/dist-packages
future 0.18.2 /usr/lib/python3/dist-packages
gps 3.20 /usr/lib/python3/dist-packages
grpcio 1.16.1 /usr/lib/python3/dist-packages
html5lib 1.0.1 /usr/lib/python3/dist-packages
httplib2 0.14.0 /usr/lib/python3/dist-packages
idna 2.8 /usr/lib/python3/dist-packages
ifaddr 0.1.6 /usr/lib/python3/dist-packages
IMDbPY 6.8 /usr/lib/python3/dist-packages
importlib-metadata 1.5.0 /usr/lib/python3/dist-packages
iniparse 0.4 /usr/lib/python3/dist-packages
iotop 0.6 /usr/lib/python3/dist-packages
ipykernel 5.3.4 /home/maxg/.local/lib/python3.8/site-packages pip
ipython 7.19.0 /home/maxg/.local/lib/python3.8/site-packages pip
ipython-genutils 0.2.0 /home/maxg/.local/lib/python3.8/site-packages pip
jedi 0.17.2 /home/maxg/.local/lib/python3.8/site-packages pip
Jinja2 2.11.2 /home/maxg/.local/lib/python3.8/site-packages pip
jsonschema 3.2.0 /usr/lib/python3/dist-packages
jupyter-client 6.1.7 /home/maxg/.local/lib/python3.8/site-packages pip
jupyter-core 4.6.3 /home/maxg/.local/lib/python3.8/site-packages pip
jupyterlab-pygments 0.1.2 /home/maxg/.local/lib/python3.8/site-packages pip
kazam 1.4.5 /usr/lib/python3/dist-packages
keyring 18.0.1 /usr/lib/python3/dist-packages
kiwisolver 1.0.1 /usr/lib/python3/dist-packages
launchpadlib 1.10.13 /usr/lib/python3/dist-packages
lazr.restfulclient 0.14.2 /usr/lib/python3/dist-packages
lazr.uri 1.0.3 /usr/lib/python3/dist-packages
lockfile 0.12.2 /usr/lib/python3/dist-packages
louis 3.12.0 /usr/lib/python3/dist-packages
lxml 4.5.0 /usr/lib/python3/dist-packages
macaroonbakery 1.3.1 /usr/lib/python3/dist-packages
Mako 1.1.0 /usr/lib/python3/dist-packages
Markdown 3.1.1 /usr/lib/python3/dist-packages
MarkupSafe 1.1.0 /usr/lib/python3/dist-packages
matplotlib 3.1.2 /usr/lib/python3/dist-packages
meld 3.20.2 /usr/lib/python3/dist-packages
mistune 0.8.4 /home/maxg/.local/lib/python3.8/site-packages pip
monotonic 1.5 /usr/lib/python3/dist-packages
more-itertools 4.2.0 /usr/lib/python3/dist-packages
nbclient 0.5.1 /home/maxg/.local/lib/python3.8/site-packages pip
nbconvert 6.0.7 /home/maxg/.local/lib/python3.8/site-packages pip
nbformat 5.0.8 /home/maxg/.local/lib/python3.8/site-packages pip
nemo-emblems 5.2.0 /usr/lib/python3.8/dist-packages
nest-asyncio 1.4.3 /home/maxg/.local/lib/python3.8/site-packages pip
netaddr 0.7.19 /usr/lib/python3/dist-packages
netifaces 0.10.4 /usr/lib/python3/dist-packages
nose 1.3.7 /usr/lib/python3/dist-packages
notebook 6.1.5 /home/maxg/.local/lib/python3.8/site-packages pip
numpy 1.17.4 /usr/lib/python3/dist-packages
oauthlib 3.1.0 /usr/lib/python3/dist-packages
oneconf 0.3.9 /usr/lib/python3/dist-packages
packaging 20.3 /usr/lib/python3/dist-packages
PAM 0.4.2 /usr/lib/python3/dist-packages
pandas 1.1.4 /home/maxg/.local/lib/python3.8/site-packages pip
pandocfilters 1.4.3 /home/maxg/.local/lib/python3.8/site-packages pip
paramiko 2.6.0 /usr/lib/python3/dist-packages
parso 0.7.1 /home/maxg/.local/lib/python3.8/site-packages pip
pbr 5.8.0 /home/maxg/.local/lib/python3.8/site-packages pip
pexpect 4.6.0 /usr/lib/python3/dist-packages
pickleshare 0.7.5 /home/maxg/.local/lib/python3.8/site-packages pip
Pillow 7.0.0 /usr/lib/python3/dist-packages
pip 21.3.1 /home/maxg/.local/lib/python3.8/site-packages pip
piston-mini-client 0.7.5 /usr/lib/python3/dist-packages
Pivy 0.6.5 /usr/lib/python3/dist-packages
prometheus-client 0.8.0 /home/maxg/.local/lib/python3.8/site-packages pip
prompt-toolkit 3.0.8 /home/maxg/.local/lib/python3.8/site-packages pip
protobuf 3.6.1 /usr/lib/python3/dist-packages
psutil 5.5.1 /usr/lib/python3/dist-packages
ptyprocess 0.6.0 /home/maxg/.local/lib/python3.8/site-packages pip
pyasn1 0.4.2 /usr/lib/python3/dist-packages
pycairo 1.16.2 /usr/lib/python3/dist-packages
pycparser 2.20 /home/maxg/.local/lib/python3.8/site-packages pip
pycrypto 2.6.1 /usr/lib/python3/dist-packages
pycups 1.9.73 /usr/lib/python3/dist-packages
pycurl 7.43.0.2 /usr/lib/python3/dist-packages
Pygments 2.7.2 /home/maxg/.local/lib/python3.8/site-packages pip
PyGObject 3.36.0 /usr/lib/python3/dist-packages
PyICU 2.4.2 /usr/lib/python3/dist-packages
pyinotify 0.9.6 /usr/lib/python3/dist-packages
PyJWT 1.7.1 /usr/lib/python3/dist-packages
pymacaroons 0.13.0 /usr/lib/python3/dist-packages
PyMySQL 1.0.2 /home/maxg/.local/lib/python3.8/site-packages pip
PyNaCl 1.3.0 /usr/lib/python3/dist-packages
pyparsing 2.4.6 /usr/lib/python3/dist-packages
pyparted 3.11.2 /usr/lib/python3/dist-packages
Pyphen 0.10.0 /home/maxg/.local/lib/python3.8/site-packages pip
PyQt5 5.14.1 /usr/lib/python3/dist-packages pip
PyQt5-sip 12.8.0 /home/maxg/.local/lib/python3.8/site-packages pip
pyRFC3339 1.1 /usr/lib/python3/dist-packages
pyrsistent 0.15.5 /usr/lib/python3/dist-packages
pyserial 3.4 /usr/lib/python3/dist-packages
python-apt 2.0.0+ubuntu0.20.4.6 /usr/lib/python3/dist-packages
python-dateutil 2.7.3 /usr/lib/python3/dist-packages
python-debian 0.1.36ubuntu1 /usr/lib/python3/dist-packages
python-magic 0.4.16 /usr/lib/python3/dist-packages
python-xapp 2.2.1 /usr/lib/python3/dist-packages
python-xlib 0.23 /usr/lib/python3/dist-packages
pytz 2019.3 /usr/lib/python3/dist-packages
pyxattr 0.6.1 /usr/lib/python3/dist-packages
pyxdg 0.26 /usr/lib/python3/dist-packages
PyYAML 5.3.1 /usr/lib/python3/dist-packages
pyzmq 18.1.1 /usr/lib/python3/dist-packages
reportlab 3.5.34 /usr/lib/python3/dist-packages
requests 2.22.0 /usr/lib/python3/dist-packages
requests-file 1.4.3 /usr/lib/python3/dist-packages
requests-unixsocket 0.2.0 /usr/lib/python3/dist-packages
SecretStorage 2.3.1 /usr/lib/python3/dist-packages
Send2Trash 1.5.0 /home/maxg/.local/lib/python3.8/site-packages pip
sessioninstaller 0.0.0 /usr/lib/python3/dist-packages
setproctitle 1.1.10 /usr/lib/python3/dist-packages
setuptools 60.5.0 /home/maxg/.local/lib/python3.8/site-packages pip
simplejson 3.16.0 /usr/lib/python3/dist-packages
sip 4.19.21 /usr/lib/python3/dist-packages pip
six 1.14.0 /usr/lib/python3/dist-packages
sortedcontainers 2.1.0 /usr/lib/python3/dist-packages
soupsieve 1.9.5 /usr/lib/python3/dist-packages
system-service 0.3 /usr/lib/python3/dist-packages
tenacity 6.2.0 /home/maxg/.local/lib/python3.8/site-packages pip
terminado 0.9.1 /home/maxg/.local/lib/python3.8/site-packages pip
testpath 0.4.4 /home/maxg/.local/lib/python3.8/site-packages pip
testresources 2.0.1 /home/maxg/.local/lib/python3.8/site-packages pip
texttable 1.6.2 /usr/lib/python3/dist-packages
thin-client-config-agent 0.8 /usr/lib/python3/dist-packages
tinycss2 1.0.2 /usr/lib/python3/dist-packages
tldextract 2.2.1 /usr/lib/python3/dist-packages
tornado 5.1.1 /usr/lib/python3/dist-packages
traitlets 5.0.5 /home/maxg/.local/lib/python3.8/site-packages pip
ubuntu-advantage-tools 27.5 /usr/lib/python3/dist-packages
ubuntu-drivers-common 0.0.0 /usr/lib/python3/dist-packages
ufw 0.36 /usr/lib/python3/dist-packages
Unidecode 1.1.1 /usr/lib/python3/dist-packages
urllib3 1.25.8 /usr/lib/python3/dist-packages
virtkey 0.63.0 /usr/lib/python3/dist-packages
wadllib 1.3.3 /usr/lib/python3/dist-packages
wcwidth 0.2.5 /home/maxg/.local/lib/python3.8/site-packages pip
WeasyPrint 52.2 /home/maxg/.local/lib/python3.8/site-packages pip
webencodings 0.5.1 /usr/lib/python3/dist-packages
websocket-client 0.53.0 /usr/lib/python3/dist-packages
wheel 0.37.1 /home/maxg/.local/lib/python3.8/site-packages pip
wxPython 4.0.7 /usr/lib/python3/dist-packages
xkit 0.0.0 /usr/lib/python3/dist-packages
xlrd 1.1.0 /usr/lib/python3/dist-packages
youtube-dl 2021.4.26 /usr/lib/python3/dist-packages
zipp 1.0.0 /usr/lib/python3/dist-packages
Then ran the two commands as indicated:
# [2022-01-24 12:35] maxg@maxg-pc-mint ~/Downloads $
python3 -m pip uninstall pip setuptools wheel
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Found existing installation: pip 21.3.1
Uninstalling pip-21.3.1:
Would remove:
/home/maxg/.local/bin/pip
/home/maxg/.local/bin/pip3
/home/maxg/.local/bin/pip3.8
/home/maxg/.local/lib/python3.8/site-packages/pip-21.3.1.dist-info/*
/home/maxg/.local/lib/python3.8/site-packages/pip/*
Proceed (Y/n)?
Successfully uninstalled pip-21.3.1
Found existing installation: setuptools 60.5.0
Uninstalling setuptools-60.5.0:
Would remove:
/home/maxg/.local/lib/python3.8/site-packages/_distutils_hack/*
/home/maxg/.local/lib/python3.8/site-packages/distutils-precedence.pth
/home/maxg/.local/lib/python3.8/site-packages/pkg_resources/*
/home/maxg/.local/lib/python3.8/site-packages/setuptools-60.5.0.dist-info/*
/home/maxg/.local/lib/python3.8/site-packages/setuptools/*
Proceed (Y/n)? y
Successfully uninstalled setuptools-60.5.0
Found existing installation: wheel 0.37.1
Uninstalling wheel-0.37.1:
Would remove:
/home/maxg/.local/bin/wheel
/home/maxg/.local/lib/python3.8/site-packages/wheel-0.37.1.dist-info/*
/home/maxg/.local/lib/python3.8/site-packages/wheel/*
Proceed (Y/n)? y
Successfully uninstalled wheel-0.37.1
β¦ and the second command:
# [2022-01-24 12:36] maxg@maxg-pc-mint ~/Downloads $
sudo apt install python3-pip python3-setuptools python3-wheel
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-setuptools is already the newest version (45.2.0-1).
python3-wheel is already the newest version (0.34.2-1).
python3-pip is already the newest version (20.0.2-5ubuntu1.6).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Then tried another install:
# [2022-01-24 12:36] maxg@maxg-pc-mint ~/Downloads $
python3 install.py
/usr/local/lib/python3.8/dist-packages/_distutils_hack/__init__.py:36: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
install.py:119: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
pip_version = StrictVersion(pip.__version__)
install.py:140: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
unknown_version = LooseVersion('0.0')
install.py:2173: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if have_pip and pip_version >= StrictVersion('9.0.0'):
install.py:321: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
return LooseVersion(v)
Detected Linux distribution Linux Mint 20.3
setuptools will be upgraded from version 60.1.0 to version 60.5.0
These Python3 packages will be upgraded for your user (i.e. not system-wide): pip, setuptools, wheel
The following command will be run:
/usr/bin/python3 -m pip install --user --upgrade pip setuptools wheel --disable-pip-version-check
Collecting pip
Using cached pip-21.3.1-py3-none-any.whl (1.7 MB)
Collecting setuptools
Using cached setuptools-60.5.0-py3-none-any.whl (958 kB)
Collecting wheel
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Installing collected packages: pip, setuptools, wheel
Successfully installed pip-21.3.1 setuptools-60.5.0 wheel-0.37.1
Restarting script using /usr/bin/python3
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
/home/maxg/.local/lib/python3.8/site-packages/_distutils_hack/__init__.py:30: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
install.py:119: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
pip_version = StrictVersion(pip.__version__)
install.py:140: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
unknown_version = LooseVersion('0.0')
install.py:2173: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if have_pip and pip_version >= StrictVersion('9.0.0'):
install.py:321: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
return LooseVersion(v)
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Downloading https://launchpad.net/rapid/pyqt/0.9.28/+download/rapid-photo-downloader-0.9.28.tar.gz (8.44 MB)
Downloading.... done!
Loading new installer script version 0.3.15
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Traceback (most recent call last):
File "/tmp/tmpowa40qno/f3ucB5EwiC", line 14605, in <module>
main()
File "/tmp/tmpowa40qno/f3ucB5EwiC", line 4148, in main
packages, local_pip = pip_packages_required(distro_details.distro)
File "/tmp/tmpowa40qno/f3ucB5EwiC", line 665, in pip_packages_required
import setuptools
File "/home/maxg/.local/lib/python3.8/site-packages/setuptools/__init__.py", line 8, in <module>
import _distutils_hack.override # noqa: F401
File "/home/maxg/.local/lib/python3.8/site-packages/_distutils_hack/override.py", line 1, in <module>
__import__('_distutils_hack').do_override()
File "/home/maxg/.local/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 71, in do_override
ensure_local_distutils()
File "/home/maxg/.local/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 59, in ensure_local_distutils
assert '_distutils' in core.__file__, core.__file__
AssertionError: /usr/lib/python3.8/distutils/core.py
# [2022-01-24 12:37] maxg@maxg-pc-mint ~/Downloads $
I would not know where to look to figure this out.
I then thought maybe this virtual environment works:
# [2022-01-24 12:53] maxg@maxg-pc-mint ~/Downloads $
python3 -m venv VirtualPythonEnvironment
Error processing line 1 of /usr/local/lib/python3.8/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
β¦ which did not work either.