push/pull: missing sshfs dependency on macOS
See original GitHub issueBug Report
Description
Running dvc push returns an error after upgrading to dvc version 2.7.3.:
ERROR: failed to push data to the cloud - URL 'ssh://' is supported but requires these missing dependencies: ['sshfs']. Please report this bug to <https://github.com/iterative/dvc/issues>. Thank you!
Reproduce
- mkdir test
- cd test
- git init .
- dvc init
- dvc remote add storage ssh://host:/storage
- dvc remote default storage
- echo hi > test.txt
- dvc add test.txt
- dvc push test.txt
Expected
I expect the file to be pushed to the remote storage.
Environment information
macOS Big Sur version 11.5.1 running on MacBook Pro Intel DVC installed via Homebrew 3.2.12-18-g2dd3934
Output of dvc doctor:
DVC version: 2.7.3 (brew)
Platform: Python 3.9.7 on macOS-11.5.2-x86_64-i386-64bit Supports: azure (adlfs = 2021.9.1, knack = 0.8.2, azure-identity = 1.6.1), gdrive (pydrive2 = 1.9.3), gs (gcsfs = 2021.8.1), http (aiohttp = 3.7.4.post0, aiohttp-retry = 2.4.5), https (aiohttp = 3.7.4.post0, aiohttp-retry = 2.4.5), s3 (s3fs = 2021.8.1, boto3 = 1.17.106), webdav (webdav4 = 0.9.1), webdavs (webdav4 = 0.9.1) Cache types: reflink, hardlink, symlink Cache directory: apfs on /dev/disk1s5s1 Caches: local Remotes: ssh Workspace directory: apfs on /dev/disk1s5s1 Repo: dvc, git
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:22 (10 by maintainers)

Top Related StackOverflow Question
I finally resolved the issue by downgrading openssl to 1.1.1s and cffi to 1.15.0 in my base-environment. In addition, I changed owner-ship of the base-environment and miniconda-installation to a non-root user. Now sshfs can be properly imported and dvc-ssh works fine.
still facing this issue- same status as @TranThanh96. Are there any solutions / known errors in the env that you suggest looking into @efiop?