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

scgen Literal deprecation error #88

Open
abuchin opened this issue Oct 5, 2023 · 1 comment
Open

scgen Literal deprecation error #88

abuchin opened this issue Oct 5, 2023 · 1 comment

Comments

@abuchin
Copy link

abuchin commented Oct 5, 2023

In the latest version it of scgen (2.1.0) it shows the following error when trying to import the module.

DeprecationWarning Traceback (most recent call last)
Cell In [1], line 2
1 # scgen
----> 2 import scgen

File /opt/conda/lib/python3.9/site-packages/scgen/init.py:3
1 """ScGen - Predicting single cell perturbations"""
----> 3 from ._scgenvae import SCGENVAE
4 from ._scgen import SCGEN
6 import logging

File /opt/conda/lib/python3.9/site-packages/scgen/_scgenvae.py:4
2 import torch
3 from scvi import REGISTRY_KEYS
----> 4 from scvi._compat import Literal
5 from scvi.module.base import BaseModuleClass, LossRecorder, auto_move_data
6 from scvi.nn import Encoder

File /opt/conda/lib/python3.9/site-packages/scvi/_compat.py:1
----> 1 class Literal:
2 """Shim Literal."""
4 raise DeprecationWarning("This class is deprecated, please import from typing")

File /opt/conda/lib/python3.9/site-packages/scvi/_compat.py:4, in Literal()
1 class Literal:
2 """Shim Literal."""
----> 4 raise DeprecationWarning("This class is deprecated, please import from typing")

DeprecationWarning: This class is deprecated, please import from typing

Testing if different versions do not have this error.

@chAwater
Copy link

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

2 participants