DenVdmj / xdelta

Automatically exported from code.google.com/p/xdelta (actual: https://github.com/jmacd/xdelta-devel/)
0 stars 0 forks source link

Unable to import xdelta3 in Python/Mac, wrong architecture #122

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. extract archive on OS X 10.6.6
2. make all-py
3. start a python shell and do 'import xdelta3'

What is the expected output? What do you see instead?

Should import; instead:

ImportError: dlopen(/usr/local/lib/python2.6/site-packages/xdelta3module.so, 
2): no suitable image found.  Did find:
    /usr/local/lib/python2.6/site-packages/xdelta3module.so: mach-o, but wrong architecture

What version of the product are you using? On what operating system?

xdelta-3.0.0 on Mac OS X 10.6.6 with Python 2.6.1

Please provide any additional information below.

I've tried to tweak the makefile for the xdelta3module.so step, either to 
generate all 3 archs, only i386 etc to no avail.

Full `make` output available at: http://cl.ly/4ki8

Created files have the following architectures:

quicksilver:xdelta3.0.0 alexandru$ file 
/usr/lib/python2.6/site-packages/xdelta3m*
/usr/lib/python2.6/site-packages/xdelta3main-3.0.0-py2.6.egg-info: ASCII text
/usr/lib/python2.6/site-packages/xdelta3main.so:                   Mach-O 
universal binary with 3 architectures
/usr/lib/python2.6/site-packages/xdelta3main.so (for architecture i386):    Mach-O 
bundle i386
/usr/lib/python2.6/site-packages/xdelta3main.so (for architecture 
ppc7400):   Mach-O bundle ppc
/usr/lib/python2.6/site-packages/xdelta3main.so (for architecture 
x86_64):    Mach-O 64-bit bundle x86_64
/usr/lib/python2.6/site-packages/xdelta3module.so:                 Mach-O 
64-bit bundle x86_64

Thanks in advance.

Original issue reported on code.google.com by alex.tot...@gmail.com on 21 Feb 2011 at 9:58

GoogleCodeExporter commented 9 years ago
I believe this is fixed in 3.0.1.

Although, I had a little trouble with automake / autoconf and the builtin 
Python on my OS X box, because it uses package_dir = /usr/bin and EXEC_PREFIX = 
/System/Library/...

Also, I've removed "xdelta3main", use "xdelta3" (the SWIG library) instead.

Original comment by josh.mac...@gmail.com on 17 Jun 2012 at 12:19