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.

cannot import sfaira

See original GitHub issue

currently, import ing the sfaira package is broken (both on dev and anotation_csv):

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-67a34ea818d4> in <module>
      7 import zipfile
      8 import scipy.io
----> 9 import sfaira #from sfaira.data.interactive import DatasetInteractive
     10 import scarches as sca
     11 

/storage/groups/ml01/code/leander.dony/sfaira/sfaira/__init__.py in <module>
      6 # import sfaira.models
      7 import sfaira.genomes
----> 8 import sfaira.data
      9 import sfaira.consts as consts
     10 import sfaira.versions

/storage/groups/ml01/code/leander.dony/sfaira/sfaira/data/__init__.py in <module>
----> 1 from .base import DatasetBase, DatasetBaseGroupLoadingOneFile, DatasetBaseGroupLoadingManyFiles, \
      2     DatasetGroup, DatasetGroupDirectoryOriented, \
      3     DatasetSuperGroup
      4 from . import dataloaders
      5 from .dataloaders import DatasetSuperGroupSfaira

/storage/groups/ml01/code/leander.dony/sfaira/sfaira/data/base.py in <module>
   2104 
   2105 
-> 2106 class DatasetSuperGroup:
   2107     """
   2108     Container for multiple DatasetGroup instances.

/storage/groups/ml01/code/leander.dony/sfaira/sfaira/data/base.py in DatasetSuperGroup()
   2113     adata: Union[None, anndata.AnnData]
   2114     fn_backed: Union[None, PathLike]
-> 2115     dataset_groups: Union[List[DatasetGroup], List[DatasetSuperGroup]]
   2116 
   2117     def __init__(self, dataset_groups: Union[None, List[DatasetGroup], List[DatasetSuperGroup]]):

NameError: name 'DatasetSuperGroup' is not defined

Can DatasetSuperGroup really take other DatasetSuperGroup as dataset_groups input?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Zethsoncommented, Feb 18, 2021

Funfact: Our CI currently tests against 3.7 and 3.8 only anyways. They are by far the most used versions.

0reactions
le-andercommented, Feb 18, 2021

okay, I guess I’ll have to somehow upgrade my gpu container…strange that tensorflow publishes their official tf containers with such an old python version

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors during installation · Issue #377 · theislab/sfaira - GitHub
Describe the bug Errors during installation caused by unresolvable requirement conflicts. To Reproduce I created a new, separate conda ...
Read more >
sfaira Documentation
import sfaira. Data: data. Data loaders. The sfaira data zoo API. Dataset representing classes used for development:.
Read more >
What can I do about "ImportError: Cannot import name X" or ...
You have circular dependent imports. physics.py is imported from entity before class Ent ... You will get Import Error: ImportError: cannot import name...
Read more >
Terms and Conditions - Sfera Labs
Orders shipped outside the European Union can be subject to custom controls for duties and VAT for import. Sfera Labs Srl cannot be...
Read more >
(PDF) scvi-tools: a library for deep probabilistic analysis of ...
We demonstrate this through a code-efficient reimplementation of Stereoscope for deconvolution of spatial transcriptomics profiles. By catering ...
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