Closed Miladiir closed 3 years ago
Thank you for the issue report @Miladiir!
Can you verify if executing the following in the latest version (fekide/volumerize:latest) fixes the problem?
$ pip uninstall PyDrive
$ pip install --upgrade google-api-python-client
$ backup
I am now observing the following error
BackendException: PyDrive backend requires PyDrive installation. Please read the manpage for setup details.
I was able to fix it by issuing pip install PyDrive
.
docker exec -ti volumerize pip install PyDrive
Collecting PyDrive
Downloading PyDrive-1.3.1.tar.gz (987 kB)
|████████████████████████████████| 987 kB 6.3 MB/s
Requirement already satisfied: google-api-python-client>=1.2 in /usr/lib/python3.8/site-packages (from PyDrive) (2.2.0) Requirement already satisfied: oauth2client>=4.0.0 in /usr/lib/python3.8/site-packages (from PyDrive) (4.1.3) Requirement already satisfied: PyYAML>=3.0 in /usr/lib/python3.8/site-packages (from PyDrive) (5.4.1) Requirement already satisfied: google-auth<2dev,>=1.16.0 in /usr/lib/python3.8/site-packages (from google-api-python-client>=1.2->PyDrive) (1.28.0) Requirement already satisfied: google-auth-httplib2>=0.1.0 in /usr/lib/python3.8/site-packages (from google-api-python-client>=1.2->PyDrive) (0.1.0) Requirement already satisfied: six<2dev,>=1.13.0 in /usr/lib/python3.8/site-packages (from google-api-python-client>=1.2->PyDrive) (1.15.0) Requirement already satisfied: uritemplate<4dev,>=3.0.0 in /usr/lib/python3.8/site-packages (from google-api-python-client>=1.2->PyDrive) (3.0.1) Requirement already satisfied: google-api-core<2dev,>=1.21.0 in /usr/lib/python3.8/site-packages (from google-api-python-client>=1.2->PyDrive) (1.26.2) Requirement already satisfied: httplib2<1dev,>=0.15.0 in /usr/lib/python3.8/site-packages (from google-api-python-client>=1.2->PyDrive) (0.19.0)
Requirement already satisfied: googleapis-common-protos<2.0dev,>=1.6.0 in /usr/lib/[47/1928]/site-packages (from google-api-core<2dev,>=1.21.0->google-api-python-client>=1.2->PyDrive) (1.53.0)
Requirement already satisfied: setuptools>=40.3.0 in /usr/lib/python3.8/site-packages (from google-api-core<2dev,>=1.21.0->google-api-python-client>=1.2->PyDrive) (51.3.3)
Requirement already satisfied: protobuf>=3.12.0 in /usr/lib/python3.8/site-packages (from google-api-core<2dev,>=1.21.0->google-api-python-client>=1.2->PyDrive) (3.15.6)
Requirement already satisfied: pytz in /usr/lib/python3.8/site-packages (from google-api-core<2dev,>=1.21.0->google-api-python-client>=1.2->PyDrive) (2021.1)
Requirement already satisfied: requests<3.0.0dev,>=2.18.0 in /usr/lib/python3.8/site-packages (from google-api-core<2dev,>=1.21.0->google-api-python-client>=1.2->PyDrive) (2.25.1)
Requirement already satisfied: packaging>=14.3 in /usr/lib/python3.8/site-packages (from google-api-core<2dev,>=1.21.0->google-api-python-client>=1.2->PyDrive) (20.9)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in /usr/lib/python3.8/site-packages (from google-auth<2dev,>=1.16.0->google-api-python-client>=1.2->PyDrive) (4.2.1)
Requirement already satisfied: rsa<5,>=3.1.4 in /usr/lib/python3.8/site-packages (from google-auth<2dev,>=1.16.0->google-api-python-client>=1.2->PyDrive) (4.7.2)
Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/lib/python3.8/site-packages (from google-auth<2dev,>=1.16.0->google-api-python-client>=1.2->PyDrive) (0.2.8)
Requirement already satisfied: pyparsing<3,>=2.4.2 in /usr/lib/python3.8/site-packages (from httplib2<1dev,>=0.15.0->google-api-python-client>=1.2->PyDrive) (2.4.7)
Requirement already satisfied: pyasn1>=0.1.7 in /usr/lib/python3.8/site-packages (from oauth2client>=4.0.0->PyDrive) (0.4.8)
Requirement already satisfied: chardet<5,>=3.0.2 in /usr/lib/python3.8/site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core<2dev,>=1.21.0->google-api-python-client>=1.2->PyDrive) (4.0.0)
Requirement already satisfied: idna<3.2,>=2.5 in /usr/lib/python3.8/site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core<2dev,>=1.21.0->google-api-python-client>=1.2->PyDrive) (3.1)Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3.8/site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core<2dev,>=1.21.0->google-api-python-client>=1.2->PyDrive) (1.26.2)
Building wheels for collected packages: PyDrive
Building wheel for PyDrive (setup.py) ... done
Created wheel for PyDrive: filename=PyDrive-1.3.1-py3-none-any.whl size=27435 sha256=0bc0c1da254a90055ac89e9863805d39380b6a1ce47818d67ac8921e3d16cf17
Stored in directory: /root/.cache/pip/wheels/c6/14/12/ccdcc5d3b41661f360f9c7d9f7ea9d1879a5f85aa4ecc8cc6f
Successfully built PyDrive
Installing collected packages: PyDrive
Successfully installed PyDrive-1.3.1
Seems to be a well known error. Should be fixed relatively easily by switching versions of the underlying drive library. I confirmed that the image tagged as blacklabelops/volumerize:1.5.1 as of today (d9ddc01511af) is working as expected.
This issue was also posted in: https://github.com/blacklabelops/volumerize/issues/86#issue-852128262