pySCENIC icon indicating copy to clipboard operation
pySCENIC copied to clipboard

[BUG] Installation error

Open as7a5 opened this issue 8 months ago • 3 comments

Describe the bug pyscenic -h errors out after fresh installation via conda. Seems numpy new version does not include np.object. Only object is there:
Following steps of installation on anaconda3 (2022.10):

(pyscenic) [root@gn-0012 site-packages]$ pyscenic -h /gpfs/share/apps/anaconda3/gpu/2022.10/envs/pyscenic/lib/python3.10/site-packages/pyscenic/transform.py:42: FutureWarning: In the future np.object will be defined as the corresponding NumPy scalar. ("Enrichment", COLUMN_NAME_ANNOTATION): np.object, Traceback (most recent call last): File "/gpfs/share/apps/anaconda3/gpu/2022.10/envs/pyscenic/bin/pyscenic", line 5, in from pyscenic.cli.pyscenic import main File "/gpfs/share/apps/anaconda3/gpu/2022.10/envs/pyscenic/lib/python3.10/site-packages/pyscenic/cli/pyscenic.py", line 26, in from pyscenic.prune import prepare_client, find_features, prune2df File "/gpfs/share/apps/anaconda3/gpu/2022.10/envs/pyscenic/lib/python3.10/site-packages/pyscenic/prune.py", line 27, in from .transform import ( File "/gpfs/share/apps/anaconda3/gpu/2022.10/envs/pyscenic/lib/python3.10/site-packages/pyscenic/transform.py", line 42, in ("Enrichment", COLUMN_NAME_ANNOTATION): np.object, File "/gpfs/share/apps/anaconda3/gpu/2022.10/envs/pyscenic/lib/python3.10/site-packages/numpy/init.py", line 324, in getattr raise AttributeError(former_attrs[attr]) AttributeError: module 'numpy' has no attribute 'object'. np.object was a deprecated alias for the builtin object. To avoid this error in existing code, use object by itself. Doing this will not modify any behavior and is safe. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'object'?

Steps to reproduce the behavior

  1. Command run when the error occurred:
...
  1. Error encountered:
...

Expected behavior A clear and concise description of what you expected to happen.

Please complete the following information:

  • pySCENIC version: [e.g. 0.10.0, use pyscenic -h at the command line]
  • Installation method: [e.g. Conda, Pip, Docker, Singularity]
  • Run environment: [e.g. Jupyter notebook, CLI, Nextflow, HPC script]
  • OS: [e.g. Ubuntu]
  • Package versions: [obtain using pip freeze, conda list, or skip this if using Docker/Singularity]:
...

as7a5 avatar Dec 01 '23 22:12 as7a5