title: Installing psyco for python on Snow Leopard
body: <p>I'm having some trouble installing psyco on my Macbook pro running Snow Leopard with python 2.6.1.</p>
  
  <p>I've been trying to force python to run in 32-bit mode using the command</p>
  
  <pre><code>defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
  </code></pre>
  
  <p>Further, I have tried the Macport py26-psyco, which seems to finish but the module cannot be found when compiling.</p>
  
  <blockquote>
    <p>$ sudo python setup.py install<br>
    PROCESSOR = 'ivm'<br>
    running install<br>
    running build<br>
    running build_py<br>
    running build_ext<br>
    building 'psyco._psyco' extension<br>
    gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -DALL_STATIC=1 -Ic/ivm -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c c/psyco.c -o build/temp.macosx-10.6-universal-2.6/c/psyco.o<br>
    In file included from c/initialize.h:48,<br>
                     from c/psyco.c:14:<br>
    c/psyfunc.c: In function ‘psycofunction_call’:<br>
    c/psyfunc.c:801: warning: passing argument 2 of ‘PyDict_Next’ from incompatible pointer type<br>
    In file included from c/initialize.h:49,<br>
                     from c/psyco.c:14:<br>
    c/stats.c: In function ‘psyco_stats_reset’:<br>
    c/stats.c:260: warning: passing argument 2 of ‘PyDict_Next’ from incompatible pointer type<br>
    c/stats.c: In function ‘psyco_stats_dump’:<br>
    c/stats.c:298: warning: passing argument 2 of ‘PyDict_Next’ from incompatible pointer type<br>
    c/stats.c: In function ‘psyco_stats_top’:<br>
    c/stats.c:326: warning: passing argument 2 of ‘PyDict_Next’ from incompatible pointer type<br>
    In file included from c/initialize.h:75,<br>
                     from c/psyco.c:14:<br>
    c/Objects/pstructmember.c: In function ‘PsycoMember_GetOne’:<br>
    c/Objects/pstructmember.c:16: warning: unused variable ‘w2’<br>
    c/psyco.c: At top level:<br>
    c/codegen.c:748: warning: ‘integer_lshift’ defined but not used<br>
    c/ivm/prolog/insns-igen.i:175: warning: ‘psyco_insn_assertdepth’ defined but not used<br>
    c/ivm/prolog/insns-igen.i:197: warning: ‘psyco_insn_dynamicfreq’ defined but not used<br>
    c/codegen.c:66: warning: ‘cc_from_vsource’ defined but not used<br>
    c/Objects/plongobject.c:20: warning: ‘PsycoLong_AsDouble’ defined but not used<br>
    c/Objects/plistobject.c:116: warning: ‘PsycoList_SingletonNew’ defined but not used<br>
    c/codegen.c: In function ‘psyco_generic_call’:<br>
    c/codegen.c:423: warning: ‘_arg’ may be used uninitialized in this function<br>
    /usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed<br>
    Installed assemblers are:<br>
    /usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64<br>
    /usr/bin/../libexec/gcc/darwin/i386/as for architecture i386<br>
    In file included from c/initialize.h:48,<br>
                     from c/psyco.c:14:<br>
    c/psyfunc.c: In function ‘psycofunction_call’:<br>
    c/psyfunc.c:801: warning: passing argument 2 of ‘PyDict_Next’ from incompatible pointer type<br>
    In file included from c/initialize.h:49,<br>
                     from c/psyco.c:14:<br>
    c/stats.c: In function ‘psyco_stats_reset’:<br>
    c/stats.c:260: warning: passing argument 2 of ‘PyDict_Next’ from incompatible pointer type<br>
    c/stats.c: In function ‘psyco_stats_dump’:<br>
    c/stats.c:298: warning: passing argument 2 of ‘PyDict_Next’ from incompatible pointer type<br>
    c/stats.c: In function ‘psyco_stats_top’:<br>
    c/stats.c:326: warning: passing argument 2 of ‘PyDict_Next’ from incompatible pointer type<br>
    In file included from c/initialize.h:75,<br>
                     from c/psyco.c:14:<br>
    c/Objects/pstructmember.c: In function ‘PsycoMember_GetOne’:<br>
    c/Objects/pstructmember.c:16: warning: unused variable ‘w2’<br>
    c/psyco.c: At top level:<br>
    c/codegen.c:748: warning: ‘integer_lshift’ defined but not used<br>
    c/ivm/prolog/insns-igen.i:175: warning: ‘psyco_insn_assertdepth’ defined but not used<br>
    c/ivm/prolog/insns-igen.i:197: warning: ‘psyco_insn_dynamicfreq’ defined but not used<br>
    c/codegen.c:66: warning: ‘cc_from_vsource’ defined but not used<br>
    c/Objects/plongobject.c:20: warning: ‘PsycoLong_AsDouble’ defined but not used<br>
    c/Objects/plistobject.c:116: warning: ‘PsycoList_SingletonNew’ defined but not used<br>
    c/codegen.c: In function ‘psyco_generic_call’:<br>
    c/codegen.c:423: warning: ‘_arg’ may be used uninitialized in this function<br>
    c/psyco.c: At top level:<br>
    c/psyco.c:1064: fatal error: error writing to -: Broken pipe<br>
    compilation terminated.<br>
    In file included from c/psyco.c:1:<br>
    c/psyco.h:13:3: error: #error "64-bit systems not supported at all.  See help on psyco.sf.net"<br>
    In file included from c/dispatcher.h:10,<br>
                     from c/codemanager.h:10,<br>
                     from c/psyco.c:3:<br>
    c/vcompiler.h: In function ‘PsycoObject_New’:<br>
    c/vcompiler.h:743: warning: comparison is always false due to limited range of data type<br>
    c/vcompiler.h: In function ‘PsycoObject_Resize’:<br>
    c/vcompiler.h:757: warning: comparison is always false due to limited range of data type<br>
    In file included from c/dispatcher.h:12,<br>
                     from c/codemanager.h:10,<br>
                     from c/psyco.c:3:<br>
    c/codegen.h:15:3: error: #error "-----------------------------------------------------"<br>
    c/codegen.h:16:3: error: #error "Sorry, non-32-bit platforms are not supported at all."<br>
    c/codegen.h:17:3: error: #error "You may try with a Python compiled in 32-bit         "<br>
    c/codegen.h:18:3: error: #error "compatibility mode.  Note that Psyco will probably   "<br>
    c/codegen.h:19:3: error: #error "never support non-32-bit platforms, as it is no      "<br>
    c/codegen.h:20:3: error: #error "longer actively developed.  Instead, the PyPy group  "<br>
    c/codegen.h:21:3: error: #error "plans to replace it with a more flexible and easily  "<br>
    c/codegen.h:22:3: error: #error "retargettable Psyco-for-PyPy during the year 2006.   "<br>
    c/codegen.h:23:3: error: #error "See <a href="http://codespeak.net/pypy/">http://codespeak.net/pypy/</a>                       "<br>
    c/codegen.h:24:3: error: #error "-----------------------------------------------------"<br>
    In file included from c/ivm/iinitialize.h:12,<br>
                     from c/initialize.h:42,<br>
                     from c/psyco.c:14:<br>
    c/ivm/idispatcher.c: In function ‘psyco_unify’:<br>
    c/ivm/idispatcher.c:202: warning: comparison is always false due to limited range of data type<br>
    In file included from c/initialize.h:46,<br>
                     from c/psyco.c:14:<br>
    c/dispatcher.c: In function ‘fz_internal_copy’:<br>
    c/dispatcher.c:131: warning: comparison is always false due to limited range of data type<br>
    c/dispatcher.c: In function ‘fz_compress’:<br>
    c/dispatcher.c:233: warning: cast from pointer to integer of different size<br>
    c/dispatcher.c:239: warning: cast to pointer from integer of different size<br>
    In file included from c/initialize.h:48,<br>
                     from c/psyco.c:14:<br>
    c/psyfunc.c: In function ‘psycofunction_call’:<br>
    c/psyfunc.c:801: warning: passing argument 2 of ‘PyDict_Next’ from incompatible pointer type<br>
    In file included from c/initialize.h:49,<br>
                     from c/psyco.c:14:<br>
    c/stats.c: In function ‘psyco_stats_reset’:<br>
    c/stats.c:260: warning: passing argument 2 of ‘PyDict_Next’ from incompatible pointer type<br>
    c/stats.c: In function ‘psyco_stats_dump’:<br>
    c/stats.c:298: warning: passing argument 2 of ‘PyDict_Next’ from incompatible pointer type<br>
    c/stats.c: In function ‘psyco_stats_top’:<br>
    c/stats.c:326: warning: passing argument 2 of ‘PyDict_Next’ from incompatible pointer type<br>
    In file included from c/initialize.h:53,<br>
                     from c/psyco.c:14:<br>
    c/codemanager.c: In function ‘psyco_shrink_code_buffer’:<br>
    c/codemanager.c:235: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’<br>
    In file included from c/initialize.h:60,<br>
                     from c/psyco.c:14:<br>
    c/Objects/pobject.c: In function ‘getdictoffset’:<br>
    c/Objects/pobject.c:257: error: ‘SIZE_OF_LONG_BITS’ undeclared (first use in this function)<br>
    c/Objects/pobject.c:257: error: (Each undeclared identifier is reported only once<br>
    c/Objects/pobject.c:257: error: for each function it appears in.)<br>
    In file included from c/initialize.h:61,<br>
                     from c/psyco.c:14:<br>
    c/Objects/pabstract.c:723:3: error: #error "omitted code from Python 2.3 here"<br>
    In file included from c/initialize.h:75,<br>
                     from c/psyco.c:14:<br>
    c/Objects/pstructmember.c: In function ‘PsycoMember_GetOne’:<br>
    c/Objects/pstructmember.c:16: warning: unused variable ‘w2’<br>
    lipo: can't open input file: /var/tmp//ccjHgyCU.out (No such file or directory)<br>
    error: command 'gcc-4.2' failed with exit status  </p>
  </blockquote>