Skip to content

NumPy Deprecation Issues and Installation Failures in scikit-video #388

@CHRISmorang

Description

@CHRISmorang

In Google Colab, the scikit-video package currently faces compatibility issues with newer versions of NumPy, leading to deprecation warnings and installation failures.

Additionally, attempting to downgrade NumPy (e.g., numpy==1.16.0) fails with the following error:

Building wheels for collected packages: numpy  
  error: subprocess-exited-with-error  

  × python setup.py bdist_wheel did not run successfully.  
  │ exit code: 1  

This prevents users from forcing an older NumPy version as a workaround.


Steps to Reproduce

1️⃣Install an older version of NumPy in Google Colab

!pip3 install numpy==1.16.0

Error:

Building wheels for collected packages: numpy  
error: subprocess-exited-with-error  

× python setup.py bdist_wheel did not run successfully.  
│ exit code: 1  

2️⃣ Install scikit-video

!pip install scikit-video

Error: NumPy deprecation warnings due to usage of np.float, np.int, np.bool.

3️⃣ Run a script using scikit-video

import skvideo.io  
video_data = skvideo.io.vread("sample.mp4")

Warning Output:

DeprecationWarning: `np.float` is a deprecated alias for the built-in `float`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions