Skip to content

Missing trapz in Numpy 2.4.1 #1159

@hawkbren

Description

@hawkbren

Numpy 2.4.1 does not have trapz
AttributeError: module 'numpy' has no attribute 'trapz'. Did you mean: 'trace'?

To Reproduce
Built new conda environment with numpy 2.4.1 and all dependencies

mamba install numpy=2.4.1

(C:\BITrusted\test) C:\Users\hawkbren>mamba env export -n test
name: test
channels:

  • conda-forge
    dependencies:
  • bzip2=1.0.8=h0ad9c76_8
  • ca-certificates=2026.1.4=h4c7d964_0
  • icu=78.2=h637d24d_0
  • libblas=3.11.0=5_hf2e6a31_mkl
  • libcblas=3.11.0=5_h2a3cdd5_mkl
  • libexpat=2.7.3=hac47afa_0
  • libffi=3.5.2=h3d046cb_0
  • libhwloc=2.12.2=default_h4379cf1_1000
  • libiconv=1.18=hc1393d2_2
  • liblapack=3.11.0=5_hf9ab0e9_mkl
  • liblzma=5.8.2=hfd05255_0
  • libmpdec=4.0.0=hfd05255_1
  • libsqlite=3.51.2=hf5d6505_0
  • libwinpthread=12.0.0.r4.gg4f2fc60ca=h57928b3_10
  • libxml2=2.15.1=h779ef1b_1
  • libxml2-16=2.15.1=h3cfd58e_1
  • libzlib=1.3.1=h2466b09_2
  • llvm-openmp=21.1.8=h4fa8253_0
  • mkl=2025.3.0=hac47afa_455
  • numpy=2.4.1=py314h06c3c77_0
  • openssl=3.6.1=hf411b9b_1
  • pip=26.0=pyh145f28c_0
  • python=3.14.2=h4b44e0e_101_cp314
  • python_abi=3.14=8_cp314
  • tbb=2022.3.0=h3155e25_2
  • tk=8.6.13=h6ed50ae_3
  • tzdata=2025c=hc9c84f9_1
  • ucrt=10.0.26100.0=h57928b3_0
  • vc=14.3=h41ae7f8_34
  • vc14_runtime=14.44.35208=h818238b_34
  • vcomp14=14.44.35208=h818238b_34
  • zstd=1.5.7=h534d264_6
    prefix: C:\BITrusted\test

Started python
import numpy as np
np.trapz()
AttributeError: module 'numpy' has no attribute 'trapz'. Did you mean: 'trace'?

Expected behaviour
It should have a description of the needed input parameters.

Screenshots

Image

System Specifications

  • OS: Windows (WindowsPE 64bit)

  • Python: 3.14.2

  • NeuroKit2: 0.2.10

  • NumPy: 2.4.1

  • Pandas: 3.0.0

  • SciPy: 1.17.0

  • sklearn: 1.8.0

  • matplotlib: 3.10.8

(base) PS C:\Users\hawkbren> Get-ComputerInfo (with redactions)

CsProcessors                                            : {AMD Ryzen Threadripper PRO 5955WX 16-Cores     }
CsSystemFamily                                          : ThinkStation P620
CsSystemType                                            : x64-based PC
OsName                                                  : Microsoft Windows 11 Enterprise
OsVersion                                               : 10.0.22631
OsBuildNumber                                           : 22631
OsHotFixes                                              : {KB5066133, KB5027397, KB5073455, KB5071963}
OsBuildType                                             : Multiprocessor Free
OsTotalVisibleMemorySize                                : 268282908
OsFreePhysicalMemory                                    : 222484548
OsArchitecture                                          : 64-bit

Nvidia RTX A5000

Metadata

Metadata

Assignees

No one assigned

    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