SPSS Statistics

 View Only
  • 1.  PLS analysis

    Posted 4 days ago

    PLS analysis in SPSS v29 is not working, I keep getting the error:

    File "C:\Users\jazin\AppData\Roaming\IBM\SPSS Statistics\one\extensions\PLS.py", line 120, in Run 
        plsArgs.parseArguments() 
      File "C:\Users\AppData\Roaming\IBM\SPSS Statistics\one\extensions\PLS.py", line 248, in parseArguments 
        self.parseVariables() 
      File "C:\Users\AppData\Roaming\IBM\SPSS Statistics\one\extensions\PLS.py", line 305, in parseVariables 
        varlist = tokenList[:min(byindex, withindex)] 
      File "C:\Users\AppData\Roaming\IBM\SPSS Statistics\one\Python310\Lib\site-packages\numpy\_core\fromnumeric.py", line 3042, in min 
        return _wrapreduction(a, np.minimum, 'min', axis, None, out, 
      File "C:\Users\AppData\Roaming\IBM\SPSS Statistics\one\Python310\Lib\site-packages\numpy\_core\fromnumeric.py", line 86, in _wrapreduction 
        return ufunc.reduce(obj, axis, dtype, out, **passkwargs) 
    numpy.exceptions.AxisError: axis 28 is out of bounds for array of dimension

    It seems like it has something to do with  the python but that is the version included in the PLS extension. It is so frustrating.

    Any suggestion?

    Thanks



    ------------------------------
    May Jazinizadeh
    ------------------------------


  • 2.  RE: PLS analysis

    IBM Champion
    Posted 4 days ago
    The authors of the numpy module released a major incompatible update just a few days ago, and this has broken PLS.  Even with the recently updated PLS module in preparation for this incompatible release, the scipy package, which is also used by PLS seems to be incompatible with the new numpy package.

    We are investigating.

    --





  • 3.  RE: PLS analysis

    IBM Champion
    Posted yesterday

    We have a solution for this problem.  It will roll back the numpy and scipy libraries to versions compatible with PLS and other procedures that use these libraries.

    • Install or update the STATS PACKAGE INSTALL extension command via the SPSS Extension Hub (Extensions > Extension Hub)
    • run STATS PACKAGE INSTALL /UNINSTALL numpy scipy.  in a syntax window
    • run STATS PACKAGE INSTALL PYTHON=numpy scipy "1.24.0" "1.10.0". 
      This is supported in the PACKAGE INSTALL dialog box, too.
    • If a package has been used in the current SPSS session, restart SPSS before running the PACKAGE INSTALL commands.  Please report any issues that you encounter.  Note that the uninstall might not completely remove these packages, but this process should be sufficient to get the older versions of the libraries used.


    ------------------------------
    Jon Peck
    ------------------------------