Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

AttributeError: module 'numpy' has no attribute 'int'. #245

Closed
Journeyant opened this issue Dec 14, 2023 · 2 comments
Closed

AttributeError: module 'numpy' has no attribute 'int'. #245

Journeyant opened this issue Dec 14, 2023 · 2 comments

Comments

@Journeyant
Copy link

Hi, Magdoll,
After I installed the cDNA_cupcake, I ran the "collapse_isoforms_by_sam.py", but I'm getting the following error:

Traceback (most recent call last):
File ".../SQANTI3_v5.2/cDNA_Cupcake/cDNA_Cupcake/cupcake/tofu/./collapse_isoforms_by_sam.py", line 31, in
from cupcake.tofu.branch import branch_simple2
File ".../anaconda3/envs/SQANTI3-5.2/lib/python3.10/site-packages/cupcake/tofu/branch/branch_simple2.py", line 6, in
import cupcake.tofu.branch.c_branch as c_branch
File "cupcake/tofu/branch/c_branch.pyx", line 6, in init cupcake.tofu.branch.c_branch
File ".../anaconda3/envs/SQANTI3-5.2/lib/python3.10/site-packages/numpy/init.py", line 324, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'int'.
np.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself. Doing this will not modify any behavior and is safe. When replacing np.int, you may wish to use e.g. np.int64 or np.int32 to specify the precision. If you wish to review your current use, check the release note link for additional information.
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

What should I do?
It would be very helpful if you could help me with this problem. Thank you. @Magdoll
Journeyant

@tky199996
Copy link

I encountered the same problem as you,Have you solved this problem?

@Magdoll
Copy link
Owner

Magdoll commented Mar 20, 2024

Hi @tky199996 - Cupcake is no longer supported. See my other comments.

@Magdoll Magdoll closed this as completed Mar 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants