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

Name of the package confused with python-magic package #218

Open
Rohit-Satyam opened this issue Jul 2, 2023 · 0 comments
Open

Name of the package confused with python-magic package #218

Rohit-Satyam opened this issue Jul 2, 2023 · 0 comments
Labels

Comments

@Rohit-Satyam
Copy link

Describe the bug

AttributeError                            Traceback (most recent call last)
Cell In[37], line 4
      1 import magic
      3 # Apply MAGIC for PCA data denoising
----> 4 magic_op = magic.MAGIC(random_state=random_seed, solver='approximate', n_pca=n_comps)
      5 X_magic = magic_op.fit_transform(data.X, genes='pca_only')
      6 data.obsm['X_magic_pca'] = X_magic

AttributeError: module 'magic' has no attribute 'MAGIC'

The error module 'magic' has no attribute 'MAGIC' is due to the fact that magic-impute is imported as magic and also python-magic is also imported in a similar fashion. I thought uninstalling python-magic would fix the issue but the issue persists. Can you improve the naming so that it does not conflict with the magic package for images?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant