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 broken? #24

Open
demmeler opened this issue Aug 4, 2021 · 3 comments
Open

Colab broken? #24

demmeler opened this issue Aug 4, 2021 · 3 comments

Comments

@demmeler
Copy link

demmeler commented Aug 4, 2021

Hey together, i just tried to use the Colab notebook with custom images and got the error below, when running the scene cell. Tried it in Chrome on Win and Mac, same error. Should it work atm?

Upload widget is only available when the cell has been executed in the current browser session. Please rerun this cell to enable.
---------------------------------------------------------------------------
MessageError                              Traceback (most recent call last)
<ipython-input-2-8dd6a665c864> in <module>()
     40   display(HTML('<small>*minimum 12 images</small>'))
     41   dir = os.getcwd()
---> 42   uploaded = files.upload()
     43   preupload_datasets = [os.path.join(dir, f) for f in uploaded.keys()]
     44   del uploaded

2 frames
/usr/local/lib/python3.7/dist-packages/google/colab/_message.py in read_reply_from_input(message_id, timeout_sec)
    104         reply.get('colab_msg_id') == message_id):
    105       if 'error' in reply:
--> 106         raise MessageError(reply['error'])
    107       return reply.get('data', None)
    108 

MessageError: TypeError: Cannot read property '_uploadFiles' of undefined
@pureexe
Copy link
Contributor

pureexe commented Aug 5, 2021

Upload custom images are working fine for me.
Maybe you could try again?

Error seems like it occurs on the COLAB side. The COLAB team might already fix it.

image

@demmeler
Copy link
Author

demmeler commented Aug 5, 2021

Okay, I tried another browser and get the button. But now the error is:

PXL_20210804_155805358.jpg(image/jpeg) - 70080 bytes, last modified: n/a - 0% done
 ---------------------------------------------------------------------------
MessageError                              Traceback (most recent call last)
<ipython-input-9-8dd6a665c864> in <module>()
     40   display(HTML('<small>*minimum 12 images</small>'))
     41   dir = os.getcwd()
---> 42   uploaded = files.upload()
     43   preupload_datasets = [os.path.join(dir, f) for f in uploaded.keys()]
     44   del uploaded

2 frames
/usr/local/lib/python3.7/dist-packages/google/colab/_message.py in read_reply_from_input(message_id, timeout_sec)
    104         reply.get('colab_msg_id') == message_id):
    105       if 'error' in reply:
--> 106         raise MessageError(reply['error'])
    107       return reply.get('data', None)
    108 

MessageError: RangeError: Maximum call stack size exceeded.

@TBM13
Copy link

TBM13 commented Aug 5, 2021

MessageError: TypeError: Cannot read property '_uploadFiles' of undefined
Same issue

Edit: I fixed it by disabling "block third-party cookies" in Chrome settings

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