I've finally migrated to python 3. This causes issues when I am using user
defined functions though with SPSSINC TRANS -- it apparently pulls from the Python2 environment, not Python3. Is there a simple way to edit the extension to pull from the Python3 environment? Like change the languange option in the XML to Python3? https://github.com/IBMPredictiveAnalytics/SPSSINC_TRANS/blob/master/src/SPSSINC_TRANS.xml (and then make a new command, say PY3 TRANS)? Is there any more general docs on extensions? I couldn't find anything here, http://www-01.ibm.com/support/docview.wss?uid=swg27049428 ----- Andy W [hidden email] http://andrewpwheeler.wordpress.com/ -- Sent from: http://spssx-discussion.1045642.n5.nabble.com/ ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
Andy, You can't mix Python 2 and Python 3 code in the same process. SPSSINC TRANS is currently a Python 2 code, so it requires Python 2 plugin functions. However, I have converted SPSSINC TRANS to Python3 and named it SPSSINC TRANS3 to avoid confusion. The changes are to the .py and .xml files. I have only tested this lightly, so it isn't ready for prime time. It seems to work, except that functions defined in the main session can't be accessed. You need to put them in a .py module and reference that in SPSSINC TRANS3. I will send you the two files that have changed separately. Let me know if you find any problems other than the in-stream function definition issue. On Tue, Jan 22, 2019 at 8:50 AM Andy W <[hidden email]> wrote: I've finally migrated to python 3. This causes issues when I am using user |
Free forum by Nabble | Edit this page |