OK, well, I gave up. Everytime I tracked down and included a dependency (via PYTHONPATH), I'd just get another failure from another missing dependency.
So I decided that if I was going to spend that much time on it, I might as well just start fresh with the current version, following the instructions here:
It seems to have installed OK, except for an error with pip3 install -r requirements.txt:
Collecting cryptography>=2.1.4 (from azure-storage-blob->-r requirements.txt (line 18))
Using cached https://files.pythonhosted.org/packages/fa/f3/f4b8c175ea9a1de650b0085858059050b7953a93d66c97ed89b93b232996/cryptography-39.0.2.tar.gz
Complete output from command python setup.py egg_info:
If you are seeing an error here please try the following to
successfully install cryptography:
Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-g7v1tzdv/cryptography/setup.py", line 18, in <module>
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-g7v1tzdv/cryptography/
Upgrading pip as suggested didn't do anything:
xxxxxx@xxxx2 [~/duplicity-main]# python3 -m pip install --upgrade pip
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /usr/local/python3.8/lib/python3.8/site-packages (23.0.1)
Finally when I try to run a backup script, I get what I think are some boto errors:
Attempt of list Nr. 1 failed. ClientError: An error occurred (403) when calling the HeadBucket operation: Forbidden
Attempt of list Nr. 2 failed. AttributeError: 'NoneType' object has no attribute 'objects'
Attempt of list Nr. 3 failed. AttributeError: 'NoneType' object has no attribute 'objects'
Attempt of list Nr. 4 failed. AttributeError: 'NoneType' object has no attribute 'objects'
Giving up after 5 attempts. AttributeError: 'NoneType' object has no attribute 'objects'