Dear all,
I am unable to get Pycharm to work as external IDE für SPSS Statistics 27.
I tried to follow the instructions for Running IBM SPSS Statistics from an External Python Process – Mac Users in Python Reference Guide for IBM SPSS Statistics for Version 27 (p. 10). I am not really sure what I am doing there, though. I hope the following questions are the right ones. Any insight is gratefully appreciated, as I've spent way too much time trying.
1. Does the whole configuration process aim at enabling the system wide (non SPSS provided) Python 3.8 instance to access the spss specific modules stored in subfolders of /Applications/IBM SPSS Statistics 27 ?
2. Does the sitecustomize.py file go into /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages ? If not: where else does it go?
3. Regarding the text of sitecustomize.py: After replacing
<INSTALLDIR> with
/Applications/IBM SPSS Statistics 27
and replacing
<SPSS_HOME> with
/Applications/IBM SPSS Statistics 27/SPSS Statistics.app/Contents
my sitecustomize.py file so far contains (# commented lines not included)
# begin sitecustomize.py
import sys
sys.path.insert(0,'/Applications/IBM SPSS Statistics 27/Python3/lib/python3.8/site-packages')
export
DYLD_LIBRARY_PATH=/Applications/IBM SPSS Statistics 27/SPSS Statistics.app/Contents/lib:/Applications/IBM SPSS Statistics 27/SPSS Statistics.app/Contents/Library/Frameworks/Sentinel.framework/Versions/A:
/Applications/IBM SPSS Statistics 27/SPSS Statistics.app/Contents/Library/Frameworks/SuperPro.framework/Versions/A
export PYTHONHOME=<PYTHON_HOME>
#end sitecustomize.py
Is this done the right way, so far?
4. What am I supposed to replace <PYTHON_HOME> with?
Would that be /Library/Frameworks/Python.framework/Versions/3.8 ? With or without quotes around it?
5. In /Applications/IBM SPSS Statistics 27/SPSS Statistics.app/Contents/Library/ there are ony two subdirectories, namely QuickLook/ and Spotlight/
There is no frameworks subdirectory, let alone the subfolders appearing to be referenced in the value of DYLD_LIBRARY_PATH . Do I wonder if this can be correct.
7. Are all the line breaks and quotations marks in the right places?
--
SPSS Statistics 27.0.1.0 (no fixes applied)
Python 3.10
PyCharm 2021.2.3 (Professional Edition)
------------------------------
Frank Watzl
------------------------------
#SPSSStatistics