{"id":2119,"date":"2012-02-16T22:47:03","date_gmt":"2012-02-17T03:47:03","guid":{"rendered":"http:\/\/www.thejuliagroup.com\/blog\/?p=2119"},"modified":"2012-02-16T22:47:03","modified_gmt":"2012-02-17T03:47:03","slug":"1000-ways-not-to-get-spss-fuzzy-to-work","status":"publish","type":"post","link":"https:\/\/www.thejuliagroup.com\/blog\/1000-ways-not-to-get-spss-fuzzy-to-work\/","title":{"rendered":"1,000 Ways Not to Get SPSS Fuzzy to Work"},"content":{"rendered":"<p>I thought my day today would be easy. There is a FUZZY module that goes with the SPSS integration for Python. \u00a0All I needed to do was install the SPSS Python Integration technologies, then, maybe install the fuzzy plug in and it would all work.<\/p>\n<p>Both the rocket scientist and I worked on this most of the afternoon, using three different computers, a Mac with SPSS 20, a Windows 7 machine with SPSS 20 and a Mac with SPSS 18. As of now, when we are about to give up temporarily and go out for some well-deserved wine, having already worked through sushi at sunset at Casa del Mar, we haven&#8217;t gotten it to work on anything, although we have gotten a whole bunch of interesting different errors.<\/p>\n<p>First, there is FINDING the download for SPSS integration.<\/p>\n<p>Go here and click on the link at the very end of the sentence<\/p>\n<p><a href=\"https:\/\/www.ibm.com\/developerworks\/mydeveloperworks\/wikis\/home\/wiki\/We70df3195ec8_4f95_9773_42e448fa9029\/page\/Downloads%20for%20IBM%C2%AE%20SPSS%C2%AE%20Statistics?lang=en\">The Essentials and Plugins for IBM SPSS Statistics\u00a0<strong>Version 20<\/strong>\u00a0for\u00a0<strong>Python\u00a0<\/strong>and\u00a0<strong>.NET<\/strong>\u00a0are available<\/a>\u00a0<a href=\"https:\/\/www.ibm.com\/developerworks\/mydeveloperworks\/files\/app?lang=en#\/collection\/0c39f1d0-c6ba-44f8-bffc-c8f0bb97e1f6\">here<\/a>.<\/p>\n<p>I don&#8217;t see very well so when the only indication that is the link is a faint color on the last word, it is tough for me, but that&#8217;s just me. Okay, I download it. I install it. I am using a Mac so Python is already installed. No problem, right? I open the terminal window and verify that Python 2.5, 2.6 and 2.7 are all installed in usr\/lib \u00a0right where SPSS thinks they should be.<\/p>\n<p>I go to UTILITIES &gt; EXTENSION BUNDLES &gt; VIEW INSTALLED EXTENSION BUNDLES and it gives me the nice little screen below that tells me all of this stuff is installed, including FUZZY.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2012\/02\/installedextension.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2122\" title=\"installedextension\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2012\/02\/installedextension.jpg\" alt=\"Installed Extensions Screen\" width=\"527\" height=\"327\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2012\/02\/installedextension.jpg 527w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2012\/02\/installedextension-300x186.jpg 300w\" sizes=\"auto, (max-width: 527px) 100vw, 527px\" \/><\/a><\/p>\n<p>So, I type in this little program and get the following output. So, in short, it appears that the Python call is working but the module named FUZZY can&#8217;t be found.<\/p>\n<p>BEGIN\u00a0PROGRAM\u00a0PYTHON.<br \/>\nimport\u00a0spss<br \/>\nprint\u00a0&#8220;Hello,\u00a0World!&#8221;<br \/>\nEND\u00a0PROGRAM.<br \/>\nHello,\u00a0World!<br \/>\nBEGIN\u00a0PROGRAM\u00a0PYTHON.<br \/>\nimport\u00a0FUZZY<br \/>\nprint\u00a0FUZZY<br \/>\nEND\u00a0PROGRAM.<br \/>\nTraceback\u00a0(most\u00a0recent\u00a0call\u00a0last):<br \/>\nFile\u00a0&#8220;&lt;string&gt;&#8221;,\u00a0line\u00a02,\u00a0in\u00a0&lt;module&gt;<br \/>\nImportError:\u00a0No\u00a0module\u00a0named\u00a0FUZZY<\/p>\n<p>I try using both upper case and lower case fuzzy and it doesn&#8217;t work either way.<\/p>\n<p>So, I decide to download and install the fuzzy plug in separately and install it. I go to UTILITIES &gt; EXTENSION BUNDLES &gt; INSTALL EXTENSION BUNDLE and get this message that \u00a0tells me that this extension requires the Integration Plug-In which is not installed even though I installed it, I accepted all the defaults, there were no errors and the (admittedly minor) Python program above appears to run.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2012\/02\/missingintegration.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2123\" title=\"missingintegration\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2012\/02\/missingintegration.jpg\" alt=\"Missing Integration technologies.\" width=\"401\" height=\"171\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2012\/02\/missingintegration.jpg 401w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2012\/02\/missingintegration-300x127.jpg 300w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><\/a><\/p>\n<p>I try installing the plug in anyway. The FIRST time when I did this, it seemed to install, SPSS could find the FUZZY module, but nothing ran, as in I got an error on the first word. So, that was when I uninstalled and re-installed the plug-in. It still didn&#8217;t work, so I went ahead and tried installing the FUZZY.spe again.<\/p>\n<p>At that point, I get a message saying that components of this extension are already installed.<\/p>\n<p>Hey, I think, maybe I will try it on the Windows 7 machine instead. \u00a0First, I need to get the rocket scientist to install Python 2.7 in the directory expected by SPSS, because it is not already installed on this machine. He does that while I uninstall and re-install the Python Integration Plug-in for SPSS on the Mac with no better results.<\/p>\n<p>I try installing the Integration Plug-In for Python on the Windows computer, it appears to work and yet when I look under installed extensions, it shows nothing. I try my little test program above, just for the hell of it and it finds neither Python nor the fuzzy module.<\/p>\n<p>I think maybe it is because both copies of SPSS 20 \u00a0I have are the 14-day trial and maybe it won&#8217;t work with that. There is no reason I could think of that it wouldn&#8217;t, but maybe not.<\/p>\n<p>So, I try it on my Macbook Pro, running SPSS 18 which is an honest-to-God paid for license. It doesn&#8217;t work on that, either, giving me a message about not finding the spss.pth.<\/p>\n<p>I ask the rocket scientist to take a look at that while I try to get it to work on Lion. (SPSS 18 does not run on Lion, which is why I do not have a real licensed SPSS on my desktop.) He tries the thing men always do when they want to get out of something, asking stupid questions until you give up and decide it would be less trouble to do it yourself. (Men: We women are on to you. We have secret meetings where we compare notes.)<\/p>\n<p>He helpfully suggests,<\/p>\n<blockquote><p>&#8220;Did you try looking up that error on Google?&#8221;<\/p>\n<p>&#8220;Google? No, never heard of it. How do you spell that? What the fuck do you think I did? I checked that Python was installed, checked the path, read the first six links for this specific error &#8230;. &#8220;<\/p><\/blockquote>\n<p>By the sound of sighing coming from upstairs, I can conclude that it is still not working.<\/p>\n<p>So &#8230; for now we are going to go out to dinner, drink wine, talk it over and come back with a plan B. I suspect Plan B will entail him reading through a couple hundred pages of documentation on Python and SPSS while I work on the other project I need to have done by next week.<\/p>\n<p>Actually, I&#8217;d like to trade places with him, but unfortunately, that&#8217;s not an option.<\/p>\n<p>My take away point so far- getting Python integration plug in installed on anything is a pain in the ass.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I thought my day today would be easy. There is a FUZZY module that goes with the SPSS integration for Python. \u00a0All I needed to do was install the SPSS Python Integration technologies, then, maybe install the fuzzy plug in and it would all work. Both the rocket scientist and I worked on this most&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9,8],"tags":[],"class_list":["post-2119","post","type-post","status-publish","format-standard","hentry","category-software","category-technology"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/2119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/comments?post=2119"}],"version-history":[{"count":3,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/2119\/revisions"}],"predecessor-version":[{"id":2124,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/2119\/revisions\/2124"}],"wp:attachment":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/media?parent=2119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/categories?post=2119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/tags?post=2119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}