Skip to content

[BUG] fail to find proper version on windows #799

@Manon-56

Description

@Manon-56

Is there an existing issue for this?

  • I have searched the existing issues

Operating system

  • Linux
  • Mac
  • Windows

Operating system version

Windows 10 professionnel
Version 10.0.19044 Build 19044

SPM 12 version

  • 7771
  • 7487
  • 7219

Platform

  • MATLAB
  • Octave

Platform version

Matlab 2021 b.

bidspm version

v2.1.0

bidspm branch / commit number

- main 29b689dd
- dev 1bda0162

Expected Behavior

To find the proper version

Current Behavior

See error below

Error message

Saving job in:
	C:/Users/chateaux.m/Documents/MATLAB/bidspm/demos/MoAE/outputs/derivatives/bidspm-preproc/jobs/auditoryIndex exceeds the number of array elements. Index must
not exceed 1.

Error in getEnvInfo>getOsNameAndVersion (line 100)
    OS.version = tokens{2}(1:end - 2);

Error in getEnvInfo (line 38)
  OS = getOsNameAndVersion(OS);

Error in saveMatlabBatch (line 65)
  [OS, GeneratedBy] = getEnvInfo(opt);

Error in saveAndRunWorkflow (line 34)
    saveMatlabBatch(matlabbatch, batchName, opt, subLabel);

Error in bidsSpatialPrepro (line 129)
    saveAndRunWorkflow(matlabbatch, batchName, opt, subLabel);

Error in bidspm>preprocess (line 302)
  bidsSpatialPrepro(opt);

Error in bidspm (line 110)
      preprocess(args);

Error in moae_01_bids_app (line 122)
bidspm(bids_dir, output_dir, 'subject', ...

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions