Skip to content

ERROR: unexpected error - cannot import name 'BaseRemoteTree' #4306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shawnlee103 opened this issue Jul 30, 2020 · 2 comments
Closed

ERROR: unexpected error - cannot import name 'BaseRemoteTree' #4306

shawnlee103 opened this issue Jul 30, 2020 · 2 comments
Labels
awaiting response we are waiting for your reply, please respond! :)

Comments

@shawnlee103
Copy link

shawnlee103 commented Jul 30, 2020

Bug Report

Please provide information about your setup

dvc==1.2.2
dvc version --verbose

2020-07-30 16:20:51,008 ERROR: unexpected error - cannot import name 'BaseRemoteTree'
------------------------------------------------------------
Traceback (most recent call last):
  File "/home/XXX/.local/lib/python3.6/site-packages/dvc/main.py", line 53, in main
    ret = cmd.run()
  File "/home/XXX/.local/lib/python3.6/site-packages/dvc/command/version.py", line 40, in run
    repo = Repo()
  File "/home/XXX/.local/lib/python3.6/site-packages/dvc/repo/__init__.py", line 74, in __init__
    from dvc.data_cloud import DataCloud
  File "/home/XXX/.local/lib/python3.6/site-packages/dvc/data_cloud.py", line 6, in <module>
    from dvc.remote import get_remote
  File "/home/XXX/.local/lib/python3.6/site-packages/dvc/remote/__init__.py", line 4, in <module>
    from .ssh import SSHRemote
  File "/home/XXX/.local/lib/python3.6/site-packages/dvc/remote/ssh/__init__.py", line 17, in <module>
    from dvc.remote.base import BaseRemoteTree, Remote
ImportError: cannot import name 'BaseRemoteTree'
------------------------------------------------------------

Thanks.

@ghost ghost added the triage Needs to be triaged label Jul 30, 2020
@pmrowla
Copy link
Contributor

pmrowla commented Jul 30, 2020

@shawnlee103 it looks like there is something wrong going on with your DVC installation, as the file /dvc/remote/ssh/__init__.py should not exist in DVC 1.2.2 (but it did exist in older versions): https://github.com/iterative/dvc/tree/1.2.2/dvc/remote

Could you try uninstalling and then reinstalling DVC and see if that fixes your issue?

@pmrowla pmrowla added the awaiting response we are waiting for your reply, please respond! :) label Jul 30, 2020
@ghost ghost removed the triage Needs to be triaged label Jul 30, 2020
@shawnlee103
Copy link
Author

after pip install dvc[ssh]. It works. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response we are waiting for your reply, please respond! :)
Projects
None yet
Development

No branches or pull requests

2 participants