Closed playertr closed 5 months ago
Here's your problem.
#7 35.12 Attempting uninstall: cryptography
#7 35.12 Found existing installation: cryptography 2.8
#7 35.12 Not uninstalling cryptography at /usr/lib/python3/dist-packages, outside environment /usr
#7 35.12 Can't uninstall 'cryptography'. No files were found to uninstall.
You are installing an older version of cryptography with python3-openssl
, but some dependency of dvc
require new version.
Try adding sudo pip3 uninstall cryptography before installing dvc and see? Or, install a latest version of
python3-opensslthrough
pip`.
There's nothing to do on dvc side. Closing.
Bug Report
Description
On Ubuntu focal systems that have the
python3-openssl
package installed via apt, runningpip3 install dvc
uninstalls thecryptography
package, which breaks pip.This error has caused my team some grief because it is tough to reinstall pip and retain other packages installed on a system. I haven't been able to narrow this bug down to a single improperly-specified DVC dependency yet. I'm willing to contribute a PR but figured I'd file a bug report for more insight from the (greatly appreciated) maintainers.
Reproduce
To reproduce this error, you can build this Dockerfile that fails on the last line. I built the Dockerfile with
docker build . -f dvc.Dockerfile -t dvctest
.Expected
I would expect the final
pip install
command to succeed, leading to the image being successfully built. Instead, I get the AttributeError above. (See fulldocker build
output in attached out.txt).Environment information
Output of
dvc doctor
: