Skip to content
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

colab fatal: reference is not a tree #38

Closed
jawadatgithub opened this issue Dec 2, 2022 · 5 comments
Closed

colab fatal: reference is not a tree #38

jawadatgithub opened this issue Dec 2, 2022 · 5 comments

Comments

@jawadatgithub
Copy link

In the notebook espnet2_new_task_tutorial_CMU_11751_18781_Fall2022.ipynb

!git clone --depth 5 -b 2022fall_new_task_tutorial https://github.com/espnet/espnet

# We use a specific commit just for reproducibility.
%cd /content/espnet
!git checkout 9cff98a78ceaa4d85843be0a50b369ec826b27f6

output:
Cloning into 'espnet'...
remote: Enumerating objects: 5496, done.
remote: Counting objects: 100% (5496/5496), done.
remote: Compressing objects: 100% (3863/3863), done.
remote: Total 5496 (delta 1794), reused 3294 (delta 981), pack-reused 0
Receiving objects: 100% (5496/5496), 6.83 MiB | 22.72 MiB/s, done.
Resolving deltas: 100% (1794/1794), done.
/content/espnet
fatal: reference is not a tree: 9cff98a78ceaa4d85843be0a50b369ec826b27f6

@sw005320
Copy link
Contributor

sw005320 commented Dec 2, 2022

Thanks for the report.
@pyf98, can you fix it?

Actually, I encountered the same issue, but in my case, the following steps were executed smoothly regardless of this error.

@pyf98
Copy link

pyf98 commented Dec 2, 2022

Hi @jawadatgithub @sw005320 May I know where you ran this notebook? I tested this code block locally and on Colab, but didn't see this error.

Cloning into 'espnet'...
remote: Enumerating objects: 5496, done.
remote: Counting objects: 100% (5496/5496), done.
remote: Compressing objects: 100% (3886/3886), done.
remote: Total 5496 (delta 1789), reused 3292 (delta 958), pack-reused 0
Receiving objects: 100% (5496/5496), 6.83 MiB | 9.29 MiB/s, done.
Resolving deltas: 100% (1789/1789), done.
/content/espnet
Note: checking out '9cff98a78ceaa4d85843be0a50b369ec826b27f6'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 9cff98a update minor bugs

@jawadatgithub
Copy link
Author

jawadatgithub commented Dec 4, 2022

The error happened in Colab:
https://colab.research.google.com/github/espnet/notebook/blob/master/espnet2_recipe_tutorial_CMU_11751_18781_Fall2022.ipynb#scrollTo=St7lke2P0GUP

@sw005320 Yes next steps executes but Espnet building fails, hence nothing of more later steps will work.

I just retest again and I am not able to get into what @pyf98 getting:

Cloning into 'espnet'...
remote: Enumerating objects: 5997, done.
remote: Counting objects: 100% (5997/5997), done.
remote: Compressing objects: 100% (4240/4240), done.
remote: Total 5997 (delta 2095), reused 3481 (delta 1064), pack-reused 0
Receiving objects: 100% (5997/5997), 7.04 MiB | 19.17 MiB/s, done.
Resolving deltas: 100% (2095/2095), done.
/content/espnet
fatal: reference is not a tree: 3a22d1584317ae59974aad62feab8719c003ae05

The notebook originally can be found in:
https://github.com/espnet/notebook/blob/master/espnet2_recipe_tutorial_CMU_11751_18781_Fall2022.ipynb

Note that I also test without "--depth 5", but didn't work. Also I checked the commits tree and tried many which belongs to the branch 2022fall_new_task_tutorial , and all failed.

@pyf98
Copy link

pyf98 commented Dec 4, 2022

@jawadatgithub There are two notebooks: one for the recipe and the other for the new task. Your first post was using the new task one, but the latest post is about the recipe one.

For the recipe tutorial, I think any later commit should work. It is pretty straightforward.

The new task tutorial uses a separate branch which should work without this error, as shown in my previous post.

@jawadatgithub
Copy link
Author

Thanks for the help, the issue caused by Colab not being able to save changes since the notebook belong to github repo, hence I had to make a copy into my google drive "this done automatically by clicking on "can't save changes" appears on top in Colab UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants