jupyterlab-s3-browser icon indicating copy to clipboard operation
jupyterlab-s3-browser copied to clipboard

S3 browser empty UI widget after installation

Open paah-scb opened this issue 2 years ago • 4 comments

Describe the bug Running the elyra/elyra:3.14.3 image on docker and having installed the jupyterlab-s3-browser using the guide in the readme-file I get an empty widget.

  1. Install container on docker: docker run -p 8888:8888 elyra/elyra:3.14.3
  2. Open elyra on localhost http://127.0.0.1:8888/lab
  3. Open a terminal in the elyra interface.
  4. Install browser plugin with pip install jupyterlab-s3-browser
  5. enable browser plugin with jupyter serverextension enable --py jupyterlab_s3_browser
  6. Reload page

I get an empty widget instead of the bucket config UI i expected. image

In the container i can see the following lines:

[W 2023-03-14 14:31:39.683 ServerApp] 404 GET /api/me?1678804299678 (192.168.255.1) 2.07ms referer=http://127.0.0.1:8888/lab
[W 2023-03-14 14:31:40.833 ServerApp] 404 GET /jupyterlab_s3_browser/auth?1678804300830 (192.168.255.1) 1.54ms referer=http://127.0.0.1:8888/lab
[W 2023-03-14 14:31:40.877 ServerApp] 404 GET /jupyterlab_s3_browser/files?1678804300848 (192.168.255.1) 7.58ms referer=http://127.0.0.1:8888/lab

Expected behavior A UI letting me put in credentials for bucket storage.

**Desktop **

  • OS: Windows 10
  • Browser chrome / edge
  • Version of jupyterlab-s3-browser extension: 0.10.0

Has there been a breaking change version regarding the elyra/jupyter api?

paah-scb avatar Mar 14 '23 15:03 paah-scb

After some research it looks like one of the jupyterlab-s3-browser dependencies has a breaking change. Cryptography has removed the method OpenSSL_add_all_algorithms in the 39.0.0 version. https://cryptography.io/en/latest/changelog/#v39-0-0

I fixed this by installing cryptography 38.0.4 with

RUN  pip install cryptography==38.0.4
RUN  pip install jupyterlab-s3-browser 
RUN  jupyter serverextension enable --py jupyterlab_s3_browser

OR, probably prefered solution

RUN  pip install pyopenssl --upgrade
RUN  pip install jupyterlab-s3-browser 
RUN  jupyter serverextension enable --py jupyterlab_s3_browser

Hope that helps.

/P

paah-scb avatar Mar 16 '23 13:03 paah-scb

@paah-scb Tried your suggestion (jupyterLab Version 3.0.16). Still no result. Continues to show empty widget.

KrishnaPG avatar Sep 15 '23 08:09 KrishnaPG

@KrishnaPG ,

Try to install this version of the exntension

jupyterlab-s3-browser==0.11.1

and in case the problem still persists, add this version of boto3 -> boto3==1.17.106

octavd avatar Sep 28 '23 13:09 octavd

Seeing this same issue when trying to use the jupyterlab-s3-browser (v0.12.0) extension in JupyterLab (v4.0.3)

  1. Installed JupyterHub in Kubernetes using the Zero to JupyterHub Helm charts helm install hub jupyterhub/jupyterhub -f config.yaml
  2. Opened JupyterLab on localhost http://localhost/user/edgardo%20antuna/lab
  3. Opened Terminal in JupyterLab interface
  4. Install browser plugin with pip install jupyterlab-s3-browser
  5. Enable browser plugin with jupyter serverextension enable --py jupyterlab_s3_browser
  6. Reload page

I am also getting an empty widget instead of the expected widget contents

image

When inspecting the network console I am also seeing the 404 HTTP Errors image

I tried the suggestions in this thread, like downgrading the cryptography==38.0.4 and jupyterlab-s3-browser==0.11.1 versions, but no luck. Getting the same result.

pip install cryptography==38.0.4
pip install jupyterlab-s3-browser 
jupyter serverextension enable --py jupyterlab_s3_browser

pip install jupyterlab-s3-browser==0.11.1
jupyter serverextension enable --py jupyterlab_s3_browser

Expected behavior The "Object Storage Browser" shows the expected contents shown in the README file.

Environment

  • Tested both in AWS EKS and local desktop Minikube Kubernetes
  • OS: Red Hat Enterprise Linux
  • JupyterLab Version 4.0.3
  • Browser Chrome version 118.0.5993.71 (Official Build) (64-bit)
  • Version of jupyterlab-s3-browser extension: 0.12.0 & 0.11.1

Is this issue due to an incompatibility between the latest jupyterlab-s3-browser extension (v0.12.0) and JupyterLab (v4.0.3)?

antunaesclusa avatar Oct 16 '23 20:10 antunaesclusa