Hi David,

Thanks for the help. I did:

export VERSIONER_PYTHON_PREFER_32_BIT=yes
make -B 

and that solved the problem. I was successful in loading the module. BTW, I 
previously had set BUILD_ARCH to i386. So, it was only the 
VERSIONER_PYTHON_PREFER_32_BIT=yes I needed.

Kind regards,
Cynthia



On Nov 29, 2009, at 9:52 AM, David Bender wrote:

> 
> A Google search for 
> 
> "mach-o, but wrong architecture" python importerror 
> 
> shows a lot of results, so it seems this is a common issue with Snow Leopard. 
>  The following link (reply #28)  talks about forcing Python to run in 32-bit 
> mode: 
> 
> http://cd34.com/blog/programming/python/mysql-python-and-snow-leopard/
> 
> Can you try this and see if it resolves the problem? 
>   
> Also, are you explicitly setting BUILD_ARCH, or using the default?  From the 
> STAF Developer's Guide: 
> macosx
> i386 - Specifies to build for Mac OS X Intel.
> ppc - Specifies to build for Mac OS X PowerPC 32-bit.
> ppc64 - Specifies to build for Mac OS X PowerPC 64-bit.
> Note: If the BUILD_ARCH environment variable is not specified when building 
> STAF for Mac OS X, it defaults to the architecture of the machine the build 
> runs on. 
> 
> Thanks, 
> David
> 
> David Bender 
> STAF/STAX Development 
> IBM Software Group, WPLC 
>       11501 Burnet Rd. 
> Bldg. 903-5B002 
> Austin, TX 78758-3400 
>       Phone (T/L): 1-512-286-5315 (363-5315) 
> ITN: 23635315 
> Email: bda...@us.ibm.com 
>  
> 
> 
> 
> 
> 
> Cynthia Sadler <cynthia.sad...@unboundid.com>
> 11/23/2009 02:20 PM
> 
> To
> David Bender/Austin/i...@ibmus
> cc
> staf-users@lists.sourceforge.net
> Subject
> Re: [staf-users] Errors building STAF Python on Mac OS X
> 
> 
> 
> 
> 
> Hi David,
> 
> I was able to build the project with the changes you mentioned.
> 
> I then reinstalled STAF to latest version (3.3.5), copied 
> staf/rel/macosx/staf/retail/lib to /Library/staf/lib, and 
> staf/rel/macosx/staf/retail/lib/python26/PYSTAF.so to /Library/staf/lib, and 
> export PYTHONPATH=/Library/staf/lib.
> 
> However when I run the src/staf/lang/python/TestPython.py script, I get the 
> following error:
> 
> office-dhcp-217:python admin$ python TestPython.py 
> Traceback (most recent call last):
>  File "TestPython.py", line 9, in <module>
>    from PySTAF import *
>  File "/Users/admin/Documents/staf/src/staf/lang/python/PySTAF.py", line 9, 
> in <module>
>    import PYSTAF
> ImportError: dlopen(/Library/staf/lib/PYSTAF.so, 2): no suitable image found. 
>  Did find:
>        /Library/staf/lib/PYSTAF.so: mach-o, but wrong architecture
> 
> I'm hoping there is some simple environment problem that can be easily 
> resolved. Any suggestions? Thanks.
> 
> Kind regards,
> Cynthia
> 
> 
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  
> http://p.sf.net/sfu/bobj-july_______________________________________________
> staf-users mailing list
> staf-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/staf-users
> 
> <smime.p7s>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to