Skip to content

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

@tzeriver

Description

@tzeriver

Is there an existing issue for this?

  • I have searched the existing issues

Bug description

deeplabcut.analyze_videos() stops with the following error:

Traceback (most recent call last):
File "", line 1, in
File "/home/fenglab/anaconda3/envs/DLC_2.3.5/lib/python3.8/site-packages/deeplabcut/pose_estimation_tensorflow/predict_videos.py", line 640, in analyze_videos
convert_detections2tracklets(
File "/home/fenglab/anaconda3/envs/DLC_2.3.5/lib/python3.8/site-packages/deeplabcut/pose_estimation_tensorflow/predict_videos.py", line 1873, in convert_detections2tracklets
trackingutils.fill_tracklets(
File "/home/fenglab/anaconda3/envs/DLC_2.3.5/lib/python3.8/site-packages/deeplabcut/pose_estimation_tensorflow/lib/trackingutils.py", line 761, in fill_tracklets
tracklet_id, pred_id = content[-2:].astype(np.int)
File "/home/fenglab/anaconda3/envs/DLC_2.3.5/lib/python3.8/site-packages/numpy/init.py", line 305, 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

Operating System

Ubuntu 20.04

DeepLabCut version

2.3.5

DeepLabCut mode

multi animal

Device type

RTX 3080

Steps To Reproduce

No response

Relevant log output

No response

Anything else?

No response

Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions