question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors running tutorials

See original GitHub issue
  1. data_loader.ipynb For context, I am setting basedir = '/Users/soeren.becker/repos/sfaira/sfaira/data'. The first thing that I noticed is that, in contrast to the notebook from the github repository, print(ds.adata) returns None. This is not an error but maybe it helps explaining some errors downstream.
  • This is because the data was not downloaded, see below. [download statement added to tutorial notebook]
  • Running ds.datasets['mouse_pancreas_2019_10xsequencing_thompson_004_10.1016/j.cmet.2019.01.021'].annotatedthrows an error: KeyError: 'mouse_pancreas_2019_10xsequencing_thompson_004_10.1016/j.cmet.2019.01.021'. My guess is that the name somehow changed as ds.datasets['mouse_pancreas_2019_10x3v2_thompson_004_10.1016/j.cmet.2019.01.021'].annotated runs and returns True.
  • Yes indeed the data set key changed as we updated technology versions. This ID will stay fixed now and we can update the key in the tutorial. [switched the datasets used in this notebook to a fully public dataset with an up-to-date id]
  • In the next cell, ds.datasets['mouse_pancreas_2019_10xsequencing_thompson_004_10.1016/j.cmet.2019.01.021'].load() again throws a key error. However, ds.datasets['mouse_pancreas_2019_10x3v2_thompson_004_10.1016/j.cmet.2019.01.021'].load()also throws an error: FileNotFoundError: [Errno 2] No such file or directory: '/Users/soeren.becker/repos/sfaira/sfaira/data/raw/GSE117770_RAW.tar' This error I could not resolve so far so I haven’t run the rest of the tutorial yet.
  • This dataset is not downloaded yet. We need to add a download statement from the universe instance at the top of that notebook? Maybe also switch to a data set that does not have private meta data. [download statement added and dataset switched - see above]
  1. user_interface.ipynb
  • ui.data.obsm throws an error: AttributeError: 'DatasetInteractive' object has no attribute 'obsm' .

  • This is trying to access adata.obsm I assume, this would be ui.data.adata.obsm, ui.data is a Dataset. [updated in tutorial notebook]

  • KeyError: 'organism' from calling ui.load_model_embedding()

  • AssertionError: did not find variable names from genome container in store from calling ui.load_model_embedding()

  • There are also errors downstream from there, but they might just be the result of this error, I think.

I think so too.

  1. pbmc3k.ipynb
  • (I think this first error is unrelated to sfaira as I also get this error when just running the corresponding scanpy_tutorial; just mentioning it for completion: In the final pre-sfaira cell (for me cell [31]), sc.pl.umap(adata, color='leiden', legend_loc='on data', title='', frameon=False) results in an error: AttributeError: 'Float64Index' object has no attribute 'add_categories' .)

  • I think the issue is that leiden in obs is float, we could address this in the tutorial by redefining that in the adata that is given to the DatasetInteractive.

  • When running ui = sfaira.ui.UserInterface( custom_repo=os.path.join(model_dir_sfaira), sfaira_repo=False ), I get the following error: ValueError: No model weights found in ../../sfaira/sfaira/models/ Weights need to have .h5 or .data-00000-of-00001 extensionto be recognised. This is indeed true, there are no such files under …/…/sfaira/sfaira/models/ .
  • I think there is either an explicit download missing or a defaulting to download of weights missing. This is because you do not have any weights in the local model repository which you provided. I have removed the local model repository in the tutorial.

I am wondering whether this error occurs as I did not complete the other tutorials before? Also, in case there is an intended order in which the tutorials should be carried out (as they depend on each other’s output?), it might be worthwhile to mention this here: https://sfaira.readthedocs.io/en/latest/tutorials.html

Thanks for the issue, @soerenab!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
le-andercommented, Sep 28, 2021

All errors mentioned in this issue are now addressed in the latest version of the notebooks. Some of the fixes required changen sfaira code. Version 0.3.7 will contain all the necessary changes that will allow error-free execution of the notebooks. To already get these changes now, you can install the fix_tutorials dev branch of sfaira until version 0.3.7 is released.

Thank you very much for the bug reports!

0reactions
bitcometzcommented, Sep 29, 2021

Thanks for your help, it is the problem of my internet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compile errors running "tutorials/eve/alice_esd_split.C" - ROOT
I get the following errors when running the example. Any ideas of what I may be missing? Thank you. -Pietro root alice_esd_split.
Read more >
Errors in running a CFDEM Tutorials
I am getting this error while running a CFDEM tutorial . Not able to find out . Unable to open document “file:///home/vivek/CFDEM/CFDEMcoupling- ...
Read more >
How To Troubleshoot Common HTTP Error Codes
General Troubleshooting Tips · When using a web browser to test a web server, refresh the browser after making server changes · Check...
Read more >
[BEGINNER] Problems running tutorials (incompressible) in ...
I have been trying all incompressible tutorials and got many problems (errors, usually runtime errors). Sometimes there is lack of file, ...
Read more >
Tutorial: Handling Errors - The Quorum Programming Language
Instead of causing the program to fail, we could detect the error, let the user know about the problem, and set the divisor...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found