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
Unable to upload local files: google.colab.__files is undefined #51
Comments
I can't seem to reproduce this -- does this always happen, or only sometimes? If you open the chrome JS console (ctrl-shift-j or cmd-shift-j on a mac), do you have any errors there? |
Which browser is this occurring in? If Chrome, are you seeing a warning when initially opening the document? |
I am using Firefox 58.0.1 (64 bit) on Ubuntu 17.10 with lxqt env |
I'm working on a fix for this, in the meantime I would recommend using Chrome. This is specifically running into https://bugzilla.mozilla.org/show_bug.cgi?id=1279406. |
I'm also experiencing the same issue on Safari 11.0.3. I guess I'll stick to Chrome. |
Safari's Service Worker implementation is available in the preview version, though we haven't had a chance to test them yet. See https://webkit.org/status/#specification-service-workers. |
I am adding some context for other people because I found a link to this issue from an stackoverflow answer. Shortly: Chrome works if third-party cookies are enabled in settings. No easy or complicated solution exists currently for Firefox (that say posts above) I wrote some summary about |
It would be nice to customize the message
and replace the words "Please rerun this cell to enable." by "This browser is probably not supported for upload." if detected by some simple whitelist or blacklist. This will help very much temporarily. (question "I rerun the cell but it doesn't work...") It also helps to get more complete questions or issue reports because all four questions at stackoverflow that I found (and fixed little) were without information about the browser and sometimes neither considered it in answers. (like "I have no problem.") |
It is also happening in google chrome. |
There is a new file upload UI in the notebook sidebar, alongside the table of contents. |
You can also just reimport all your packages |
@chez8990 could I ask you to file a new issue and include (1) info about what browser you're using and (2) whether it works in an incognito window? |
@chez8990 Could you please tell me on which browser have you been having this issue? If it's firefox, I had a fix for mine. |
@myaouri I'm running into this issue on Firefox, sharing the solution would be appreciated. |
@ankur-bohra Under 'Cookies and Site Data' I simply unchecked 'Delete cookies and site data when Firefox is closed' from Privacy and Security from firefox preferences. My Firefox version : 91.4.1es r |
hi thanks.......I tried it with chrome and got the result |
Using the file upload code snippet on both python3 and python2 I get the error message:
The text was updated successfully, but these errors were encountered: