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

Directory not found "hdf:" #29

Open
caviri opened this issue Feb 19, 2020 · 10 comments
Open

Directory not found "hdf:" #29

caviri opened this issue Feb 19, 2020 · 10 comments

Comments

@caviri
Copy link

caviri commented Feb 19, 2020

Hello,

I try to open some .h5 files in Jupyterlab 1.2.5 and jupyterlabhdf 0.3.0 but this error appears:

Directory not found "hdf:"

I have jupyterhub running remotely in a linux machine.

Thanks in advance!

@caviri
Copy link
Author

caviri commented Feb 21, 2020

Ok, is due to the extension. It seems is only accepting files with .hdf5 format.

@caviri caviri closed this as completed Feb 21, 2020
@loichuder
Copy link
Collaborator

In fact, I get the same error (Jupyterlab 1.2.6, jupyterlab-hdf5 0.4.0) whatever the extension of the file... Maybe the issue is not solved yet ?

@StanczakDominik
Copy link

I also have this issue in Jupyterlab 2.2.8, with jupyterlab-hdf-0.4.1. I think this one needs reopening :(

@183amir
Copy link

183amir commented Sep 21, 2020

I have the same issue. Could you please reopen this issue?

@Migelo
Copy link

Migelo commented Oct 19, 2021

Happened just today with jupyterlab 3.1.18 and jupyterlab-hdf 1.0.0. I can't get the extension to show any files, it just shows that anytime I click on it on the side.

image

@loichuder
Copy link
Collaborator

This is usually due to the server extension not enabled/installed.

Could you see if jupyterlab_hdf is present and activated (OK) when running jupyter serverextension list ?

@loichuder loichuder reopened this Oct 19, 2021
@Migelo
Copy link

Migelo commented Oct 19, 2021

It is activated and OK.

$ jupyter serverextension list
config dir: /homedir/.jupyter
    jupyter_nbextensions_configurator  enabled
    - Validating...
      jupyter_nbextensions_configurator 0.4.1 OK
config dir: /path/to/config/dir
    jupyter_resource_usage  enabled
    - Validating...
      jupyter_resource_usage  OK
    jupyterlab  enabled
    - Validating...
      jupyterlab 3.1.18 OK
    jupyterlab_git  enabled
    - Validating...
      jupyterlab_git 0.33.0 OK
    jupyterlab_hdf  enabled
    - Validating...
      jupyterlab_hdf 1.0.0 OK
    nbdime  enabled
    - Validating...
      nbdime 3.1.0 OK
    jupyter_nbextensions_configurator  enabled
    - Validating...
      jupyter_nbextensions_configurator 0.4.1 OK

@loichuder
Copy link
Collaborator

  • Can you try import jupyterlab_hdf in a Python console to see if it works ?
  • How did you install the extension ? Can you try in a fresh virtual environment to see the problem persists ?
  • What kind of file are you trying to open ?

@Migelo
Copy link

Migelo commented Oct 20, 2021

  • nothing happens after I import it, so I guess that means it works :)
  • I installed with pip. On a fresh installation I tried to open a file /u/username/pyslurm/historical.hdf5and got this error in the jupyterlab terminal. For some reason the leading / missing in the 2nd line.
[E 2021-10-20 10:12:14.704 ServerApp] The request specified a file that does not exist.
    relfpath: u/username/pyslurm/historical.hdf5, uri: /, min_ndim: None, ixs
[historicalbackup.zip](https://github.com/jupyterlab/jupyterlab-hdf5/files/7379388/historicalbackup.zip)
tr: None, subixstr: None, attr_keys: None
[W 2021-10-20 10:12:14.705 ServerApp] 403 GET /hdf/contents/u/username/pyslurm/historical.hdf5?uri=%2F&1634717534675 (130.183.86.36) 21.11ms referer=https://localhost:50125/lab/workspaces/auto-L

@loichuder
Copy link
Collaborator

* nothing happens after I import it, so I guess that means it works :)

Yeah, sorry I should have told you to also try to print jupyterlab_hdf.__version__ in the console for clearer troubleshooting.

* I installed with `pip`. On a fresh installation I tried to open a file `/u/username/pyslurm/historical.hdf5`and got  this error in the jupyterlab terminal. For some reason the leading `/` missing in the 2nd line.
[E 2021-10-20 10:12:14.704 ServerApp] The request specified a file that does not exist.
    relfpath: u/username/pyslurm/historical.hdf5, uri: /, min_ndim: None, ixs
[historicalbackup.zip](https://github.com/jupyterlab/jupyterlab-hdf5/files/7379388/historicalbackup.zip)
tr: None, subixstr: None, attr_keys: None
[W 2021-10-20 10:12:14.705 ServerApp] 403 GET /hdf/contents/u/username/pyslurm/historical.hdf5?uri=%2F&1634717534675 (130.183.86.36) 21.11ms referer=https://localhost:50125/lab/workspaces/auto-L

The / is not missing: jupyterlab-hdf works with paths relative to the directory where jupyter lab was launched. Is the path correct with respect to the path where you launched JLab ?

Good sign the Hdf: error does not appear in a fresh env.

To fix it on your former env, you can try the following procedure:

  • Uninstall both the labextension with jupyter labextension uninstall and the serverextenstion with pip uninstall jupyterlab_hdf.
  • Clear the cache of pip and jlpm (pip cache purge and jlpm cache clean)
  • Rebuild JupyterLab (jupyter lab build) and check that both the labextension and the serverextension were uninstalled.
  • Reinstall the labextension and the serverextension and rebuild JupyterLab
  • Check if the problem is fixed
* a file containing the historical usage of our HPC cluster
  [historicalbackup.zip](https://github.com/jupyterlab/jupyterlab-hdf5/files/7379400/historicalbackup.zip)

If the path is correct, the file should open in the extension: I managed to open it without trouble

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

5 participants