dvc: push/pull: missing sshfs dependency on macOS
Bug 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
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 22 (11 by maintainers)
Commits related to this issue
- dvc: replace paramiko with sshfs Fixes https://github.com/iterative/dvc/issues/6629 — committed to efiop/homebrew-core by efiop 3 years ago
- dvc: replace paramiko with sshfs Fixes https://github.com/iterative/dvc/issues/6629 — committed to efiop/homebrew-core by efiop 3 years ago
- dvc: replace paramiko with sshfs Fixes https://github.com/iterative/dvc/issues/6629 Closes #85356. Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: BrewTestB... — committed to Homebrew/homebrew-core by efiop 3 years ago
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?
Hi, I am using DVC on Linux, and still get that error ? any new updates ?
Thank you! It is working now again.