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

Tutorial Notebooks and Installations do not work #1279

Closed
teshnizi opened this issue Feb 8, 2021 · 4 comments
Closed

Tutorial Notebooks and Installations do not work #1279

teshnizi opened this issue Feb 8, 2021 · 4 comments

Comments

@teshnizi
Copy link

teshnizi commented Feb 8, 2021

Describe the bug
Hi,

I have been trying a handful of the example notebooks. None of them is working properly on Google Colab, resulting in this error:
AttributeError: module 'jiant' has no attribute 'tasks'
Screenshot from 2021-02-08 15-39-03

To Reproduce

Simply go to any of the example notebooks (The picture is from this one), copy and paste the commands into Google Colab and try executing them). The Colab instance you have shared also seems not to be working.

@zphang
Copy link
Collaborator

zphang commented Feb 9, 2021

Hi @teshnizi, just to confirm, are you running the above cells before running the cell you've highlighting, as well as the cell modifying the sys.path right before?

@teshnizi
Copy link
Author

teshnizi commented Feb 9, 2021

Hi @zphang,
Yes. I run the following cells:

screencapture-colab-research-google-drive-10u4n-HIFOL02QeeHuLucSCZlemvuEXPC-2021-02-09-11_33_15

I am not modifying the syspath line though, as /content/jiant/ seems like to be the right path when I'm using Colab. Moreover, the second cell is not generating the /content/tasks/ folder, however I think that's only for downloading some datasets and has nothing to do with the error. I do not face this problem when I use pip for installation.

@zphang
Copy link
Collaborator

zphang commented Feb 10, 2021

Hi @teshnizi, can you try running it again now? I've pushed an update to the code (#1282). Basically, the issue was some circular imports that aren't handled properly in Python 3.6.9 (#1167).

@teshnizi
Copy link
Author

It seems to be working now. Thank you!

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

2 participants