IBM / jupyterlab-s3-browser

A JupyterLab extension for browsing S3-compatible object storage
Apache License 2.0
119 stars 41 forks source link

S3 browser empty UI widget after installation #101

Open paah-scb opened 1 year ago

paah-scb commented 1 year ago

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

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

paah-scb commented 1 year ago

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

KrishnaPG commented 10 months ago

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

octavd commented 9 months ago

@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

antunaesclusa commented 9 months ago

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

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