You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from pyscenic.prune import prune2df, df2regulons
/project/xyang2/software-packages/env/velocity_2022.05_xy/lib/python3.11/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 "", line 1, in
File "/project/xyang2/software-packages/env/velocity_2022.05_xy/lib/python3.11/site-packages/pyscenic/prune.py", line 27, in
from .transform import (
File "/project/xyang2/software-packages/env/velocity_2022.05_xy/lib/python3.11/site-packages/pyscenic/transform.py", line 42, in
("Enrichment", COLUMN_NAME_ANNOTATION): np.object,
^^^^^^^^^
File "/project/xyang2/software-packages/env/velocity_2022.05_xy/lib/python3.11/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_'?
from pyscenic.transform import df2regulons
/project/xyang2/software-packages/env/velocity_2022.05_xy/lib/python3.11/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 "", line 1, in
File "/project/xyang2/software-packages/env/velocity_2022.05_xy/lib/python3.11/site-packages/pyscenic/transform.py", line 42, in
("Enrichment", COLUMN_NAME_ANNOTATION): np.object,
^^^^^^^^^
File "/project/xyang2/software-packages/env/velocity_2022.05_xy/lib/python3.11/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_'?
Problem solved by rebuilding a conda environment build fr python 3.8 with numpy 1.24.4.
It's not useful. Numpy deleted np.object in 1.20. The only way right now is change the code in pyscenic/transform.py. Change all np.object to object can call out the help page.
module 'numpy' has no attribute 'object'
I install pyscenic under my conda environment of Python 3.11.7
Then, I followed the tutorial at https://pyscenic.readthedocs.io/en/latest/tutorial.html
step by step.
The error cam when I called:
Similarly, when I try to follow the notebook at https://github.com/aertslab/SCENICprotocol/blob/master/notebooks/SCENIC%20Protocol%20-%20Case%20study%20-%20Mouse%20brain%20data%20set.ipynb
The similar error came at:
The package versions are:
Thank you for suggestions.
Holly
The text was updated successfully, but these errors were encountered: