Skip to content

Python Error: ValueError: Internal work array size computation failed: -10 #32

@nikiita013

Description

@nikiita013

Hi,

I am am running fooof on linux (ubuntu) with 2024a MATLAB. When I execute the fooof.m script it gives following error: (It gives error specifically when fm.fit() is called.

` fm.fit(freqs, power_spectrum, f_range)

FOOOF WARNING: Lower-bound peak width limit is < or ~= the frequency resolution: 0.50 <= 0.98
Lower bounds below frequency-resolution have no effect (effective lower bound is the frequency resolution).
Too low a limit may lead to overfitting noise as small bandwidth peaks.
We recommend a lower bound of approximately 2x the frequency resolution.

Warning: Unable to load Python object. Saving (serializing) Python objects into a MAT-file is not supported.
Error using lapack>_compute_lwork (line 1004)
Python Error: ValueError: Internal work array size computation failed: -10

Error in _decomp_svd>svd (line 123)

Error in trf>trf_bounds (line 301)

Error in trf (line 123)

Error in least_squares (line 938)

Error in _minpack_py>curve_fit (line 974)

Error in fit>_fit_peak_guess (line 1161)

Error in fit>_fit_peaks (line 1111)

Error in fit (line 488)
`

Following is the py env in MATLAB:

`pyenv

ans =

PythonEnvironment with properties:

      Version: "3.10"
   Executable: "/usr/bin/python3"
      Library: "libpython3.10.so.1.0"
         Home: "/usr"
       Status: Loaded
ExecutionMode: InProcess
    ProcessID: "4119304"
  ProcessName: "MATLAB"

`

Any help is very much appreciated!

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